-
Notifications
You must be signed in to change notification settings - Fork 0
/
indexadmin.php
78 lines (69 loc) · 1.77 KB
/
indexadmin.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<?php
include("header.php");
?>
<div class="ui container">
<?php
include_once("config.php");
$sql = "SELECT * FROM pdotrial1";
$stmt = $pdo->prepare($sql);
$stmt->execute();
$users = $stmt->fetchAll();
?>
<table class="ui celled table">
<thead>
<tr>
<th>Institute</th>
<th>Name</th>
<th>Designation</th>
<th>Academic Year</th>
<th>E-mail</th>
<th>Phone</th>
<th>Events</th>
<!-- <th>Action</th> -->
</tr>
</thead>
<tbody>
<?php
foreach ($users as $user) {
echo "<tr>";
echo "<td>$user->institute</td>";
echo "<td>$user->name</td>";
echo "<td>$user->designation</td>";
echo "<td>$user->acad_year</td>";
echo "<td>$user->email</td>";
echo "<td>$user->phone</td>";
echo "<td>$user->events</td>";
// echo "<td><a href = 'update.php?id={$user->id}'><button class='ui small button'>Update</button></a><a href = 'delete.php?id={$user->id}'><button class='ui small red button'>Delete</button></a></td>";
echo "</tr>";
}
?>
</tbody>
<tfoot>
<tr><th colspan="3">
</th>
</tr></tfoot>
</table>
<!-- <a href = 'add.php'><button class="ui button basic green">Add</button></a> -->
<a href = 'register.html'><button class="ui button basic green">Register</button></a>
</div>
<!-- <table class="ui celled table">
<thead>
<tr><th>Name</th>
<th>E-mail</th>
<th>Action</th>
</tr></thead>
<tbody>
<tr>
<td>name1</td>
<td>email1</td>
<td>action1</td>
</tr>
</tbody>
<tfoot>
<tr><th colspan="3">
</th>
</tr></tfoot>
</table> -->
<?php
include("footer.php");
?>