-
Notifications
You must be signed in to change notification settings - Fork 0
/
leaguesearch.php
74 lines (74 loc) · 1.77 KB
/
leaguesearch.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
<?php
if(!isset($_COOKIE['userID']))
{
$pageview = $_COOKIE['pageview'];
$pageview = $pageview + 1;
$_COOKIE['pageview'] = $pageview;
header('location:index.php');
}
?>
<html>
<head>
<meta http-equiv="refresh" content="300">
<title>
SuperSpeed Intranet
</title>
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id="container">
<div id="header">
<h1>
SuperSpeed Intranet
</h1>
</div>
<div id="navigation">
<ul>
<li><a href="intranet.php">Home</a></li>
<li><a href="bookings.php">Bookings</a></li>
<li><a href="members.php">Members</a></li>
<?php
if($_COOKIE['permission'] == 1)
{
echo "<li><a href='users.php'>Users</a></li>";
}
?>
<li><a href="teams.php" >Teams</a></li>
<li><a href="league.php" >League</a></li>
<li><a href="logout.php">Logout</a></li>
</ul>
</div>
<div id="content-container1">
<div id="content-container2">
<div id="section-navigation">
<h3>Notes</h3>
<ul>
<li>Please make sure not to write down your login password anywhere. </li>
</ul>
</div>
<div id="content">
<h2>League Search</h2>
<p>You can search for a league using this search bar.</p>
<form action="leaguesearchresults.php" method="post">
League Name: <input type="text" name="leagueName"><br/>
<input type="submit" name="submit" value="Search" align="center"/>
</form>
</div>
<div id="aside">
<?php
include 'connect.php';
echo "Welcome " . $_COOKIE['userName'] . "<br/>";
if($_COOKIE['permission'] == 1)
{
echo "You have all the bases.";
}
?>
</div>
<div id="footer">
SuperSpeed
</div>
</div>
</div>
</div>
</body>
</html>