-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathadmin.php
More file actions
36 lines (30 loc) · 762 Bytes
/
admin.php
File metadata and controls
36 lines (30 loc) · 762 Bytes
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
35
36
<?php
include("functions.php");
verifyLogin();
include("header.php");
$rows = getResults();
?>
<div class="container admin">
<div class="admin-header">
<a href="logout.php" class="btn btn-primary pull-right"><span class="glyphicon glyphicon-log-out"></span> Logout</a>
<a href="export.php" class="btn btn-success pull-lrft"><span class="glyphicon glyphicon-download"></span> Export to Excel csv</a>
</div>
<h1>Contacts</h1>
<table class="table table-striped">
<tr>
<th>Id</th>
<th>E-mail</th>
<th>Contact Type</th>
</tr>
<?php
foreach($rows as $row){
echo "<tr>";
foreach($row as $col){
echo "<td>".$col."</td>";
}
echo "</tr>";
}
?>
</table>
</div><!-- container -->
<?php include("footer.php"); ?>