-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstructor.php
71 lines (65 loc) · 1.56 KB
/
instructor.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
<?php
include('includes/dashboard.php');
// Configuration
/*$dbhost = 'localhost';
$dbname = 'test';
// Connect to test database
$m = new Mongo("mongodb://$dbhost");
$db = $m->$dbname;
// Get the users collection
$c_users = $db->users;*/
/*echo '
<form action="addcourse.php" method="POST">
Course Number:
<input type="text" id="course_num" name="course_num" />
</br>
Timing
<select name="timing">
<option value="8-9">8-9</option>
<option value="9-10">9-10</option>
<option value="10-11">10-11</option>
<option value="11-12">11-12</option>
</select>
</br>
<input type="checkbox" name="days[]" value="M">M
<input type="checkbox" name="days[]" value="T">T
<input type="checkbox" name="days[]" value="W">W
<input type="checkbox" name="days[]" value="Th">Th
<input type="checkbox" name="days[]" value="F">F
</br>
<input name="submitForm" id="submitForm" type="submit" value="Add" />
</form>
';*/
echo '
<center>
<form action="extraclass.php" method="POST">
<table>
<tr>
<td>Course Number:</td>
<td> <input type="text" id="course_num" name="course_num" /> </td>
<tr>
<td>Date:</td>
<td><input type="text" name="date" id="datepicker"></td>
<script>
$(function() {
$( "#datepicker" ).datepicker({
dateFormat: "yy-mm-dd"
});
});
</script>
<tr>
<td>Timing:</td>
<td>
<select name="timing">
<option value="8-9">8-9</option>
<option value="9-10">9-10</option>
<option value="10-11">10-11</option>
<option value="11-12">11-12</option>
</select>
</td>
</table>
<button class="btn btn-primary" name="submit" type="submit">ExtraClass</button>
</form>
</center>
';
?>