-
Notifications
You must be signed in to change notification settings - Fork 0
/
adbook_gym.php
112 lines (101 loc) · 4.04 KB
/
adbook_gym.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
<?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">
<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>
.note {
background-color: #ffb3b3;
border-left: 6px solid #ff0000;
}
#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 class="bg-grey">
<!-- 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>
<div class="container">
<h2>Book Gym<h2>
<form class="form-horizontal" action="inadmin_gym.php" method="POST">
<div class="form-group">
<label class="control-label col-sm-4" for="eventname">Event Name </label>
<div class="col-sm-8">
<input type="text" class="form-control" id="eventname" name="eventname" required>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-4" for="date">Date </label>
<div class="col-sm-8">
<input type="date" class="form-control" name="dateOF" required>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-4" for="time">Time Peroid</label>
<div class="col-sm-8">
<input type="text" class="form-control" name="timePeriod" value="Ex: 8.00am-10.00am" required>
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-4 col-sm-10">
<button type="submit" class="btn button" name="submit">Submit</button>
<button type="submit" class="btn button" name="view_book"><a href="adbookgym_view.php" id="a1">View Booking</a></button>
<button type="submit" class="btn button" name="view_req"><a href="usbookgym_view.php" id="a1">View Request</a></button>
<button type="submit" class="btn button" name="view_req"><a href="admin_booking.php" id="a1">Back to Places</a></button>
</div>
</div>
</form>
</div>
<footer class="container-fluid text-center">
<p>www.SabraSouls.com</p>
</footer>
<?php ob_end_flush(); ?>