-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.php
104 lines (87 loc) · 2.52 KB
/
search.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
<!doctype html>
<html lang="en">
<head>
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
<script src="js/searchQuery.js"></script>
<link rel="stylesheet" href="css/styles.css">
<meta charset="utf-8">
<title>Zoom Room - Search Events</title>
</head>
<body>
<?php include 'inc/nav.php'; ?>
<h2>Search for events, users, or rooms:</h2>
<form action="searchQuery.php" method="post">
<div class="search-bars">
<div class="search-bar-radio">
<a>Search for:</a>
<input type="radio" id="event-radio" name="type" value="event" checked="checked">
<label for="event"><span></span>Event</label>
<input type="radio" id="user-radio" name="type" value="user">
<label for="user"><span></span>User</label>
<input type="radio" id="room-radio" name="type" value="room">
<label for="room"><span></span>Room</label>
</div><!-- search-bar-radio -->
<br>
<div class="search-bar-dropdown">
<a>Search by:</a>
<select id="event-dropdown">
<option value="eventName">Name</option>
<option value="startTime">Starts</option>
<option value="endTime">Ends</option>
<option value="location">Room</option>
<option value="host">Host</option>
<option value="type">Type</option>
<option value="eventID">Event ID</option>
</select>
<select id="user-dropdown">
<option value="firstName">First Name</option>
<option value="lastName">Last Name</option>
<option value="office">Office</option>
<option value="phone">Phone Number</option>
<option value="email">Email</option>
<option value="netID">netID</option>
</select>
<select id="room-dropdown">
<option value="building">Building</option>
<option value="roomID">Room ID</option>
</select>
<input type="search" name="user-input">
<input type="submit" value="Search" class="button">
</div><!-- search-bar-dropdown -->
</div><!-- search-bars -->
</form>
<br><br>
<table id="event-table">
<tr>
<th>Event Name</th>
<th>Starts</th>
<th>Ends</th>
<th>Room</th>
<th>Host</th>
<th>Description</th>
<th>Type</th>
</tr>
</table>
<table id="user-table">
<tr>
<th>User</th>
<th>First Name</th>
<th>Last Name</th>
<th>Email</th>
<th>Phone Number</th>
<th>Office</th>
</tr>
</table>
<table id="room-table">
<tr>
<th>Building</th>
<th>Number</th>
<th>Description</th>
</tr>
</table>
<footer>
<p>P1M4 by Johnny Jacobs (8) and Mcvvina Lin (22)</p>
<p>CSC 261 Fall 2017</p>
</footer>
</body>
</html>