-
Notifications
You must be signed in to change notification settings - Fork 0
/
titleSrch.php
63 lines (60 loc) · 1.79 KB
/
titleSrch.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
<?php
require_once('auth.php');
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Welcome to Shaw</title>
</head>
<body>
<h1 align="center">Shaw Channel</h1>
<p align="center">Welcome
<?php if (isset($_COOKIE['cust_fname']) && isset($_COOKIE['cust_lname']))
echo $_COOKIE['cust_fname'] . ' ' . $_COOKIE['cust_lname'];?></p>
<h2 align="center">Title Search</h2>
<form action="fetchDisplayChannel.php" method="post">
<table align="center" border="1">
<tr>
<td>Title</td>
<td colspan="3"><p align="center"><input style="width: 70%;" type="text" size="30" name="title"></p></td>
<td><button type="submit">Search</button></td>
</tr>
<tr>
<td rowspan="3"></td>
<td>Search By:</td>
<td>
<select name="criteria">
<option value="wt">Within title</option>
<option value="sw">Starts with</option>
<option value="et">Exact title</option>
</select>
</td>
<td rowspan="3">
Genre:
<select name="genre">
<option value="a">All</option>
<option value="e">Entertainment</option>
<option value="f">Family</option>
<option value="i">Information</option>
<option value="m">Movies</option>
<option value="n">News/Business</option>
<option value="o">Old TV Shows</option>
<option value="s">Sci-Fi</option>
<option value="t">Sports</option>
</select>
<br>
<label>Group by genre <input type="checkbox" name="group_by_genre"></label>
</td>
<td rowspan="4"></td>
</tr>
<tr>
<td rowspan="2"></td>
<td><label>Order by title <input type="radio" name="order_by" value="ch_title" checked></label></td>
</tr>
<tr>
<td><label>Order by price (highest) <input type="radio" name="order_by" value="ch_price"></label></td>
</tr>
</table>
</form>
</body>
</html>