Chat window now opens with no messages inside.
[Assignment-Trapper.git] / assignment_edit.php
blobcb1a874c660ef9b151ed7b5ba1e47788e637aa0d
1 <?php
3 include_once("auth.php");
5 if($role != 0) { die("Account \"".$user_name."\" Is Not Authorized To View This Page.<br><br>This Event Will Be Logged And Reported."); }
7 if (!$_GET["sched"]) { die("No Assignment Requested"); }
9 /* get list of all class types */
11 $sql = 'select assign_type, type_name from types order by type_name';
13 $result = mysql_query($sql);
15 if (!$result) { die("SQL ERROR"); }
17 $i = 0;
18 while($row = mysql_fetch_array($result))
20 $items .= '<option value='.$row['assign_type'].'>'.$row['type_name'].'</option>';
25 <input name="title" type="text">
27 <select>
28 <?php echo $items; ?>
29 </select>
31 <input name="chapter" type="text">
32 <input name="section" type="text">
33 <input name="title" type="text">
34 <input name="title" type="text">