-
Notifications
You must be signed in to change notification settings - Fork 0
/
AssCplWaring.php~
80 lines (73 loc) · 1.89 KB
/
AssCplWaring.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
<?php
$user_name = "root";
$pass_word = "";
$database = "schoolschedule";
$server = "127.0.0.1";
$db_handle = mysql_connect($server,$user_name,$pass_word);
$db_found = mysql_select_db($database,$db_handle);
$InitializeAssignmentTable = "UPDATE assignment SET PeriodTime='0',PeriodDay ='0'";
$InitializeAssignmentResult = mysql_query($InitializeAssignmentTable);
$Assembly = 'ASS';
$Chapel= 'CPL';
$InitializeAssembly = "DELETE from assignment WHERE SubjectID='$Assembly'";
$InitializeAssemblyResult = mysql_query($InitializeAssembly);
$InitializeChapel = "DELETE from assignment WHERE SubjectID='$Chapel'";
$InitializeChapelResult = mysql_query($InitializeChapel);
?>
<center>
<h2>Choose a Period Time and Day for Assembly</h2>
<br>
<table>
<form action="AssemblyChapel2.php" method="post">
<tr>
<td>
Subject:
</td>
<td>
Assembly
</td>
</tr>
<tr>
<td>
Period Time:
</td>
<td>
<select name='PeriodTime'>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
</select>
</td>
</tr>
<tr>
<td>
Day:
</td>
<td>
<select name='PeriodDay'>
<option value="1">Monday</option>
<option value="2">Tuesday</option>
<option value="3">Wednesday</option>
<option value="4">Thursday</option>
<option value="5">Friday</option>
</select>
</td>
</tr>
<tr>
<td>
<input type="hidden" name="PrioritySubject" value="ASS">
<input type="submit" value="Submit">
</td>
</tr>
</table>
</center>
</form>