-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathattendees.php
82 lines (78 loc) · 4.07 KB
/
attendees.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
79
80
81
82
<?php
//include both the dbconnect and sescheck files
require('./conf/dbconnect.php');
require('./conf/sescheck.php');
$qry = 'SELECT * FROM users';
$sql = mysqli_query($conn, $qry) or die("Error connecting to database.");
?>
<html>
<head>
<title>Attendees ~ HackPanel</title>
<link rel="stylesheet" href="./css/main.css">
<link rel="shortcut icon" href="./img/favicon.png" type="image/x-icon">
<script defer src="https://code.getmdl.io/1.3.0/material.min.js"></script>
</head>
<body>
<div class="mdl-layout mdl-js-layout">
<header class="mdl-layout__header">
<div class="mdl-layout__header-row">
<span class="mdl-layout-title">HackPanel: BullHacks 2018</span>
<div class="mdl-layout-spacer"></div>
<nav class="mdl-navigation">
<!-- <form action="logout.php">
<input type="submit" value="Log Out">
<button id="btnLogout" class="mdl-button mdl-js-button mdl-button--raised mdl-button--colored" type="submit">Log Out</button>
</form> -->
<!-- Right aligned menu below button -->
<button id="demo-menu-lower-right" class="mdl-button mdl-js-button mdl-button--icon">
<i class="material-icons">more_vert</i>
</button>
<ul class="mdl-menu mdl-menu--bottom-right mdl-js-menu mdl-js-ripple-effect"
for="demo-menu-lower-right">
<li class="mdl-menu__item"><a style="text-decoration:none; color:black;" href="logout.php">Log Out</a></li>
<li class="mdl-menu__item"><a style="text-decoration:none; color:black;" href="settings.php">Settings</a></li>
<li class="mdl-menu__item"><a style="text-decoration:none; color:black;" href="https://airtable.com/shrCr68AzwBT4XyQD" target="_blank">Found a Bug?</a></li>
</ul>
</nav>
</div>
</header>
<div id="sidebar" class="mdl-layout__drawer">
<span class="mdl-layout-title">HackPanel</span>
<nav class="mdl-navigation">
<a class="mdl-navigation__link" href="./home.php">Home</a>
<a class="mdl-navigation__link" href="./attendees.php">Attendees</a>
<a class="mdl-navigation__link" href="./timetable.php">Timetable</a>
<a class="mdl-navigation__link" href="./sponsors.php">Sponsors</a>
<!-- <a class="mdl-navigation__link" href="./otherstuff.php">Other Stuff</a> -->
</nav>
</div>
<div class="section-heading"><h3 style="text-align: left;">Attendees</h3></div>
<table id="tblAttendees" class="mdl-data-table mdl-js-data-table mdl-data-table--selectable mdl-shadow--2dp">
<thead>
<tr>
<th class="mdl-data-table__cell--non-numeric">First Name</th>
<th class="mdl-data-table__cell--non-numeric">Surname</th>
<th class="mdl-data-table__cell--non-numeric">Email Address</th>
<th class="mdl-data-table__cell--non-numeric">University</th>
<th class="mdl-data-table__cell--non-numeric">GitHub</th>
<th class="mdl-data-table__cell--non-numeric">Discord</th>
</tr>
</thead>
<tbody>
<!-- For each user record, create row and import data -->
<?php
while($row = mysqli_fetch_assoc($sql)) {?>
<tr>
<td class="mdl-data-table__cell--non-numeric"><?php echo($row['first_name']); ?></td>
<td class="mdl-data-table__cell--non-numeric"><?php echo($row['last_name']); ?></td>
<td class="mdl-data-table__cell--non-numeric"><?php echo($row['email']); ?></td>
<td class="mdl-data-table__cell--non-numeric"><?php echo($row['university']); ?></td>
<td class="mdl-data-table__cell--non-numeric"><?php echo($row['github']); ?></td>
<td class="mdl-data-table__cell--non-numeric"><?php echo($row['discord']); ?></td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</body>
</html>