-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathorglist.php
34 lines (32 loc) · 833 Bytes
/
orglist.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
session_start();
require_once('database.php');
include('header.php');
?>
<div class="container">
<ol class="breadcrumb">
<li><a href="index.php">AalborgEvents</a></li>
<li class="active">Arrangører</li>
</ol>
<div class="row">
<div class="col-md-12">
<h1>Arrangører</h1>
<ul class="event-list-small">
<?php
$q = "SELECT * FROM Brugere WHERE brugerstatus = 1";
$orgs = $DBH->query($q);
$orgs->execute();
foreach ($orgs as $org) {
?>
<li>
<img alt="<?=$org['navn'];?>" src="img/brugerpic/<?=(empty($org['profilbanner'])) ? "default.png" : $org['profilbanner']?>" />
<div class="info">
<h1><a href="profil.php?profilid=<?=$org['ID'];?>"><?=$org['navn'];?></a></h1>
</div>
</li>
<?php } ?>
</ul>
</div>
</div>
</div>
<?php include('footer.php'); ?>