-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
74 lines (70 loc) · 2.56 KB
/
index.html
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
<!doctype html>
<html>
<head>
<title>Homework #8</title>
<link rel="stylesheet" href="/~jsburgin/style.css" />
</head>
<body>
<div class="section">
<h3>Task 3</h3>
<p>View all tables and tuples in the database</p>
<a href="/~jsburgin/task3.php" class="button">View Tables</a>
</div>
<div class="section">
<h3>Task 4a</h3>
<h4>Query 1: Songs</h4>
<p>This query shows a list of songs from a particular genre. Select a genre below.</p>
<form action="/~jsburgin/task4a-songs.php" method="POST">
<select name="genre">
<option value="Rock">Rock</option>
<option value="Pop">Pop</option>
<option value="Funk">Funk</option>
<option value="Disco">Disco</option>
<option value="Jazz">Jazz</option>
<option value="Country">Country</option>
<option value="Rap">Rap</option>
</select>
<br />
<button type="submit" class="button">Run Query</button>
</form>
<h4>Query 2: Records & Artists</h4>
<p>This query shows a list of records joined with their artists. Enter a year below to show all records that have come out since then.</p>
<form action="/~jsburgin/task4a-records.php" method="POST">
<input type="text" name="year" placeholder="Enter a year"/>
<br />
<button type="submit" class="button">Run Query</button>
</form>
</div>
<div class="section">
<h3>Task 4b</h3>
<h4>Adding Employees</h4>
<p>This form adds a new employee to the database. Enter employee details below:</p>
<form action="/~jsburgin/task4b.php" method="POST">
<div class="form-group">
<label>SSN:</label>
<input type="text" placeholder="123-45-6789" name="ssn" />
</div>
<div class="form-group">
<label>Name:</label>
<input type="text" placeholder="John Doe" name="name" />
</div>
<div class="form-group">
<label>Address:</label>
<input type="text" placeholder="42 Wallaby Way" name="address" />
</div>
<div class="form-group">
<label>Title:</label>
<input type="text" placeholder="Manager" name="title" />
</div>
<button type="submit" href="/~jsburgin/task1.php" class="button">Add Employee</button>
</form>
<h4>Query Employees</h4>
<p>This query searches for employees by name. Enter a search term below to query.</p>
<form action="/~jsburgin/task4b-search.php" method="POST">
<input type="text" name="name" placeholder="e.g. John"/>
<br />
<button type="submit" class="button">Run Query</button>
</form>
</div>
</body>
</html>