<?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>
