-
Notifications
You must be signed in to change notification settings - Fork 0
/
AssemblyChapel.php
156 lines (145 loc) · 4.64 KB
/
AssemblyChapel.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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
<?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 = "TRUNCATE TABLE periodassignment";
$InitializeAssignmentTableResult = mysql_query($InitializeAssignmentTable);
$InitializeAssembly = "DELETE from periodassignment WHERE SubjectID='ASS'";
$InitializeAssemblyResult = mysql_query($InitializeAssembly);
$InitializeAssembly2 = "DELETE from assignment WHERE SubjectID='ASS'";
$InitializeAssemblyResult2 = mysql_query($InitializeAssembly2);
$InitializeChapel2 = "DELETE from assignment WHERE SubjectID='CPL'";
$InitializeChapelResult2 = mysql_query($InitializeChapel2);
$InitializeChapel = "DELETE from periodassignment WHERE SubjectID='CPL'";
$InitializeChapelResult = mysql_query($InitializeChapel);
//$InitializeMergeInfo = "UPDATE assignment SET MergeInfo='' WHERE MergeInfo!=''";
//$InitializeMergeInfoResult = mysql_query($InitializeMergeInfo);
?>
<center>
<html>
<body>
<link href="MyStyle.css" type="text/css"
rel="stylesheet">
<meta http-equiv="content-type"
content="text/html; charset=ISO-8859-1">
<title>Choose a Period Time and Day for Assembly</title>
</head>
<body>
<ul>
<li2>
<img src="logo.png" height="46" width="40">
</li2>
<li><a href="home.php">Home</a></li>
<li><a href="InsertionMenu.php">Data Insertion</a></li>
<li><a href="assignement.php">Teacher Assignment</a></li>
<li><a href="selectclassparallelsubject.php">Parallel Subject Assignment</a></li>
<li><a class="active" href="ScheduleGeneration.php">Generate Schedule</a></li>
<li><a href="search.php">Search Schedule</a></li>
<li><a href="contact.php">Contact</a></li>
<ul style="float: right; list-style-type: none;">
<li>
<a href="about.php">About</a></li>
<li>
<a href="login.php"><?php if(@$_SESSION['login']==1) {
echo @$_SESSION['UserName'];
}else {
echo 'Login';
} ?></a></li>
</ul>
</ul>
<div style="text-align: center; font-family: Arial;">
<h1>Choose a Period Time and Day for Assembly</h1>
<div style="text-align: center; font-family: Arial; font-size:100%; ">
<table style="width: 100%; height: 516px; text-align: left; margin-left: auto; margin-right: auto;" background="tablebackground.png" border="1" cellpadding="0" cellspacing="0">
<tr>
<td>
<table style="width:25%; height:516px;" background="backgroundforcontact.png" border="0" cellpadding="0" align='center'>
<tr>
<td align='center'>
<img src="assembly.png"><img src="baka2.png" alt="" width="162" height="224">
<table background="backgroundforcontact2.png" style="background-size: 100% 100%; width:80%; height:249px;">
<tr>
<td align='center'>
<table background="backgroundforcontact3.png "style="background-size: 100% 100%";>
<tr>
<td align='center'>
<img src="575346.gif" width="68" height="76">
<table background="backgroundforcontact4.png "style="background-size: 100% 100%; font-size:90%;";>
<tr>
<td align='center'>
<table style="height: 20px;" align="center" bgcolor="">
<form action="AssemblyChapel2.php" method="post">
<tr>
<td>
Subject:
</td>
<td>
Assembly
</td>
</tr>
<tr>
<td colspan="2">
</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>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</form>
</td>
</tr>
</table>
</table>
</center>
</form>