forked from nitcalicut/Sockmonkey
-
Notifications
You must be signed in to change notification settings - Fork 0
/
teamlist.php
executable file
·51 lines (41 loc) · 879 Bytes
/
teamlist.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
<!DOCTYPE HTML>
<html>
<head>
<title>Sockmonkey</title>
<?php
include 'src/interface.php';
include 'source.php';
echo $header;
session_start();
if($_SESSION['user']!="manager")
header("Location: index.php");
?>
</head>
<body>
<a href='/Sockmonkey'><div id='topbar'></div></a>
<div id='container'>
<?php
echo $topBar;
$arr=listEventTeams($_GET['eid']);
$i=1;
echo "<table border=\"1\">";
echo "<tr><td></td><td>Event</td><td>".$_GET['eid']."</td></tr>";
foreach ($arr as $key => $value) {
echo "<tr><td>$i</td><td>$key</td><td>$value</td></tr>";
$i++;
}
echo "</table>";
?>
<form id="searchBox" action="">
<input type="search" id="search" placeholder="Enter the event ID" name="eid"/>
<span id="SearchButton">Search<span>
</form>
<div id="searchResults">
</div>
</div><!-- /container -->
<?php
echo $bottomBar;
echo $scripts;
?>
</body>
</html>