-
Notifications
You must be signed in to change notification settings - Fork 0
/
adbookbasketballcourt_view.php
120 lines (109 loc) · 3.8 KB
/
adbookbasketballcourt_view.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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<?php
ob_start();
session_start();
require_once 'dbconnect.php';
// if session is not set this will redirect to login page
if( !isset($_SESSION['user']) ) {
header("Location: index.php");
exit;
}
// select loggedin users detail
$res=mysql_query("SELECT * FROM users WHERE userId=".$_SESSION['user']);
$userRow=mysql_fetch_array($res);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Sport Event Management Platform</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link type="text/css" rel="stylesheet" href="CSS\style.css"></link>
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link href="https://fonts.googleapis.com/css?family=Montserrat" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet" type="text/css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.0/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<style>
body {
background: #cccccc;
}
.content {
max-width: 1200px;
margin: auto;
background: white;
padding: 10px;
}
#a1{text-decoration:none;}
#a1:link{color:#ffffff;}
#a1:visited{color:#ffffff;}
#a1:hover{color:#ffffff;}
#a1:active{color:#ffffff;}
#b{text-decoration:none;}
#b:link{color:#000000;}
#b:visited{color:#000000;}
#b:hover{color:#000000;}
#b:active{color:#000000;}
</style>
</head>
<body>
<!-- Navbar (sit on top) -->
<div class="w3-top">
<div class="w3-bar w3-white w3-wide w3-padding w3-card-2">
<a href="home.php" class="w3-bar-item w3-button"><b>SABRA</b> Souls</a>
<!-- Float links to the right. Hide them on small screens -->
<div class="w3-right w3-hide-small">
<a href="home.php" class="w3-bar-item w3-button" id="b">Home</a>
<a href="universityEvents.php" class="w3-bar-item w3-button" id="b">UniversityEvents</a>
<a href="interuniversityEvents.php" class="w3-bar-item w3-button" id="b">InterUniversityEvents</a>
<a href="newsFeed.php" class="w3-bar-item w3-button" id="b">NewsFeed</a>
<a href="admin_booking.php" class="w3-bar-item w3-button" id="b">Booking</a>
<a href="logout.php?logout" class="w3-bar-item w3-button" id="b">Log out</a>
</div>
</div>
</div>
<!-- Header -->
<header class="w3-display-container w3-content w3-wide" style="max-width:1500px;" id="home">
<img class="w3-image" src="images/a1.jpg" alt="Architecture" width="1500" height="800">
<div class="w3-display-middle w3-margin-top w3-center">
<h1 class="w3-xxlarge w3-text-white"><span class="w3-padding w3-black w3-opacity-min"><b>SABRA</b></span> <span class="w3-hide-small w3-text-light-grey">Souls</span></h1>
</div>
</header>
<br><br>
<!-- Center -->
<div class="content">
<div class="container">
<h1>Booking Events of Basketball Court</h1><br>
<button type="submit" class="btn button" name="submit"><a href="adbook_basketballcourt.php" id="a1">Back to Form</a></button>
<br><br>
<table class="table table-bordered">
<thead>
<tr>
<th bgcolor="#cc9966">Event Name</th>
<th bgcolor="#cc9966">Date</th>
<th bgcolor="#cc9966">Time Period</th>
</tr>
</thead>
<tbody>
<?php
include 'dbh.php';
$sql="SELECT * from admin_basketballcourt ORDER BY dateOF ASC";
$view = $conn->query($sql);
while($row = $view->fetch_assoc()){
echo' <tr>
<td>'.$row["eventname"].'</td>
<td>'.$row["dateOF"].'</td>
<td>'.$row["timePeriod"].'</td>
</tr>';
}
?>
</tbody>
</table>
</div>
</div>
<footer class="container-fluid text-center">
<p>www.SabraSouls.com</p>
</footer>
</body>
</html>
<?php ob_end_flush(); ?>