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
<?php
/**
* 词集编集
* $Id: word_theme_edit.inc,v 1.1 2015/10/08 11:18:53 wanggb Exp $
* @author wanggb
* @access public
* @package manager.templates
**/
global $upload_thumbnail;
global $thumbnail_error_msg;
?>
<b>试卷添加/编集</b><br />
<br />
<form name="examination_mst_edit" action="examination_mst_edit_result.php" method="post">
<input type="hidden" name="id" value="<?=$id ?>" />
<table>
<tr>
<td>名称</td>
</tr>
<tr>
<td class="begin_blank">
<input type="text" id="title" name="title" value="<?=htmlspecialchars($examination_mst->title) ?>" size=40/>
</td>
</tr>
<tr>
<td>类型</td>
</tr>
<tr>
<td class="begin_blank">
<select name="type" name="type">
<option value="TEST" <?=$examination_mst->type == "TEST" ? " selected " : "" ?>>考试模式</option>
<option value="EXERCISE" <?=$examination_mst->type == "EXERCISE" ? " selected " : "" ?>>练习模式</option>
</select>
</td>
</tr>
<tr>
<td>答题秒数(考试模式用)</td>
</tr>
<tr>
<td class="begin_blank">
<input type="text" id="max_time" name="max_time" value="<?=htmlspecialchars($examination_mst->max_time) ?>" size=20/>
</td>
</tr>
<tr>
<td>级别(练习模式用)</td>
</tr>
<tr>
<td class="begin_blank">
<select name="level" style="width:150px;">
<?
for($index=5; $index>=1; $index--) {
?>
<option value="N<?=$index ?>" <?=$examination_mst->level == "N" . $index ? " selected " : "" ?>>N<?=$index ?></option>
<?
}
?>
</select>
</td>
</tr>
<tr>
<td>模块类型(练习模式用)</td>
</tr>
<tr>
<td class="begin_blank">
<select name="category_id" style="width:200px;">
<?
foreach ($subject_category_list as $tmp) {
?>
<option value="<?=$tmp->id ?>" <?=$examination_mst->category_id == $tmp->id ? " selected " : "" ?>><?=$tmp->title ?></option>
<?
}
?>
</select>
</td>
</tr>
</table>
<br />
<input type="button" value="编集" class="button_width_normal" onClick="doChecExaminationMst();" />
</form>