<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/views/common/base.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>新增试题</title>
		<script src="${contextPath}/js/jquery-2.0.0.min.js"></script>
		<script src="${contextPath}/static/jqtrans/jquery.js"></script>
	<script src="${contextPath}/static/jqtrans/jquery.jqtransform.js"></script>
	<link href="${contextPath}/static/jqtrans/jqtransform.css"
		rel="stylesheet">
		<script language="javascript">
				
					$(function() {
						$('form').jqTransform({
							imgPath : '${contextPath}/static/jqtrans/img/'
						});
					});
				
			</script>
<link href="${contextPath}/js/plugins/tooltipster/css/tooltipster.css" rel="stylesheet" type="text/css" >
<script src="${contextPath}/js/plugins/tooltipster/js/jquery.tooltipster.min.js"></script> 
</head>
<body> 
	 
	<input type="hidden" value="${contextPath}" id="contextPath" />

	<div class="userInfo" id="searchCon">
	<h1>新增试题</h1>
		<form id="resultForm" name="resultForm" commandName="role">
		<input type="hidden" value="" id="status" name="status"/>
			<div class="title">试题参数</div>
			<table class="yTable margintop">
				<tr>
					<th align="right" width="120"><span>*</span>试题分类</th>
					<td align="left" width="300"><input name="category" id="category" type="text"
						class="inputbox" /><span></span>
					</td>
					<th ><span>*</span>试题分数</th>
					<td><input name="point" id="point" type="text" class="inputbox"/><span</td>
				</tr>
				<tr>
					<th align="right" width="120"><span>*</span>试题类型</th>
					<td align="left" width="120"><select name="type">
							<option value="1" selected="selected">单选题</option>
							<option  value="2">多选题</option>
							<option  value="3">判断题</option>
							<option  value="4">填空题</option>
							<option  value="5">问答题</option>
							<option  value="6">综合题</option>
					</select><span</td>
					<th align="right" width="120"><span>*</span>选项数目</th>
					<td align="left"><select name="num">
							<option value="3">3</option>
							<option selected="selected" value="4">4</option>
							<option s value="5">5</option>
							<option  value="6">6</option>
							<option  value="7">7</option>
					</select></td>
				</tr>

			</table>
			<div class="title">试题描述</div>
	<textarea name="content" style="width:800px;height:200px;" id="content"></textarea>
			<div style="margin-top:20px;"><span class="title">试题选项</span><span style="color:#a0a0a0;margin-left:5px">通过勾选每个选项编号下面的框可以设置正确答案</span></div>
			<div class=" item_q_col_2">
			<ul class="item_q q_1">
										<li id="qsn_option_item_div_1" name="qsn_option_item_div" style="">
					<table class="editor_exam" width="100%" border="0" cellspacing="0" cellpadding="0">
						<colgroup>
							<col span="" style="">
							<col span="" style="">
						</colgroup>
						<tbody><tr>
							<td class="item_left">
								<h1 class="">A</h1>
								<input type="radio" name="single_option" qsn_item_id="1" value="A" style="display: inline-block;" noadd="yes">
								<input type="checkbox" name="qsn_multi_option" qsn_item_id="1" value="A" style="display: none;" noadd="yes">
							</td>
							<td class="item_right">
								<textarea name="option1" style="width:400px;height:70px;" option="item1" id="option1" noadd="yes"></textarea>
							</td>
						</tr>
					</tbody></table>
				</li>
										<li id="qsn_option_item_div_2" name="qsn_option_item_div" style="">
					<table class="editor_exam" width="100%" border="0" cellspacing="0" cellpadding="0">
						<colgroup>
							<col span="" style="">
							<col span="" style="">
						</colgroup>
						<tbody><tr>
							<td class="item_left">
								<h1 class="">B</h1>
								<input type="radio" name="single_option" qsn_item_id="2" value="B" style="display: inline-block;"noadd="yes">
								<input type="checkbox" name="qsn_multi_option" qsn_item_id="2" value="B" style="display: none;" noadd="yes">
							</td>
							<td class="item_right">
								<textarea name="option2" style="width:400px;height:70px;" option="item2"  id="option2" noadd="yes"></textarea>
							</td>
						</tr>
					</tbody></table>
				</li>
										<li id="qsn_option_item_div_3" name="qsn_option_item_div" style="">
					<table class="editor_exam" width="100%" border="0" cellspacing="0" cellpadding="0">
						<colgroup>
							<col span="" style="">
							<col span="" style="">
						</colgroup>
						<tbody><tr>
							<td class="item_left">
								<h1 class="">C</h1>
								<input type="radio" name="single_option" qsn_item_id="3" value="C" style="display: inline-block;" noadd="yes">
								<input type="checkbox" name="qsn_multi_option" qsn_item_id="3" value="C" style="display: none;" noadd="yes">
							</td>
							<td class="item_right">
								<textarea name="option3" style="width:400px;height:70px;" option="item3" id="option3" noadd="yes"></textarea>
							</td>
						</tr>
					</tbody></table>
				</li>
										<li id="qsn_option_item_div_4" name="qsn_option_item_div" style="">
					<table class="editor_exam" width="100%" border="0" cellspacing="0" cellpadding="0">
						<colgroup>
							<col span="" style="">
							<col span="" style="">
						</colgroup>
						<tbody><tr>
							<td class="item_left">
								<h1 class="">D</h1>
								<input type="radio" name="single_option" qsn_item_id="4" value="D" style="display: inline-block;"noadd="yes">
								<input type="checkbox" name="qsn_multi_option" qsn_item_id="4" value="D" style="display: none;" noadd="yes">
							</td>
							<td class="item_right">
								<textarea name="option4" style="width:400px;height:70px;" option="item4" id="option4" noadd="yes"></textarea>
							</td>
						</tr>
					</tbody></table>
				</li>
										
						</ul>
			</div>
		<div class="row">	
	<div class="title">试题解析</div>
	<textarea name="analysis" style="width:800px;height:200px;" id="analysis"></textarea></div>
		
			<div class="Btn">
			<a href="#" class="bb" id="create"><div>
						<span class="button green">创建</span>
					</div>
				</a>
				<a href="#" class="bb" id="save"><div>
						<span class="button blue">保存</span>
					</div>
				</a> <a href="#" class="bb" id="cancel"><div>
						<span class="button orange">取消</span>
					</div>
				</a>
				<img title="1.“创建”为创建一个试题，状态为可用。2.“保存”暂时保存，状态为编辑" src="${contextPath}/css/img/s.gif" class="helpTip" id="buttonTip"></img>
			</div>
		</form>

	</div>

	<script type="text/javascript">
	$(document).ready(function() {
			 $('#buttonTip').tooltipster();
		});
		seajs.use("${scriptBasePath}/question/new.js");
	</script>
</body>
</html>