Example #1
0
File: exam_new.php Project: pta/oes
$arr = $db->getSubjectList();
foreach ($arr as $subject) {
    echo "<option value={$subject['1']}>{$subject['0']}</option>";
}
?>
					</select>
					<input id=newsubject name=newsubject>

			<tr><td><label for=time>Lần</label>
				<td><input id=time name=time value=1>

			<tr><td><label for=teacher>Giáo viên</label>
				<td><select id=teacher name=teacher>
						<option value=0>Tạo mới</option>
						<?php 
$arr = $db->getTeacherList();
foreach ($arr as $teacher) {
    $tname = $teacher[1] . ' ' . $teacher[0];
    echo "<option value={$teacher['2']}>{$tname}</option>";
}
?>
					</select>
					<input id=newteacher name=newteacher>

			<tr><td><label for=duration>Thời gian</label>
				<td><input id=duration name=duration value=60> phút

			<tr><td><label for=sched_date>Ngày thi</label>
				<td><script language="JavaScript">
						var today = f_tcalGenerDate (new Date());
						document.writeln ("<input id=sched_date name=sched_date value=" + today + ">");