<%@ 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/common/jquery.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>
	<script src="${contextPath}/js/common/flex_table.js"></script>
</head>
<body>

	<input type="hidden" value="${contextPath}" id="contextPath" />

	<div class="userInfo" id="searchCon">
		<h1>新增考试</h1>
		<form:form id="resultForm" name="resultForm" commandName="role">
		<input type="hidden" id="paperId" name="paperId"/>
			<div class="title">考试设置</div>
			<table class="yTable margintop">
				<tr>
					<th align="right" width="60"><span>*</span>考试名称</th>
					<td align="left" colspan="3"><input name="name" id="name"
						type="text" size="60" class="inputbox" /><span></span>
					</td>

				</tr>
				<tr>
					<th align="right" width="120"><span>*</span>答卷时长</th>
					<td align="left" width="120" colspan="2"><input name="totalTime"
						id="totalTime" type="text" class="inputbox" />
				</tr>
				<tr>
					<th align="right" width="120">&nbsp;&nbsp;&nbsp;&nbsp;组卷模式</th>
					<td align="left"><select name="mode">
					<option selected="selected" value="1">整卷模式</option>
							<option value="2">逐题模式</option>
							
					</select>
					</td>
				</tr>
			</table>
			<div class="title">开放时间</div>
			<table class="yTable margintop">
				<tr>
					<th align="right" width="60">开始时间</th>
					<td align="left" width="120"><input name="begin" id="beginDate"
						type="text" class="inputbox" />
					</td>

					<th align="right" width="60">结束时间</th>
					<td align="left" width="120"><input name="end" id="endDate"
						type="text" class="inputbox" />
					</td>
					<td align="left"><input name="limited" id="limited" type="checkbox" />
						无限制</td>
				</tr>

			</table>
			<div style="margin-top:20px;">
				<span class="title">试卷列表</span>
			</div>
			<div class="sp-blue mb10">&nbsp;</div>
			<div class="Btn1 Btn_new" id="buttonTitleShow">
				<a href="#" class="bb" id="newPaper1"><div>
						<span>试卷添加</span>
					</div> </a> <a href="#a3Show" class="bb"><div>
						<span>新建试卷</span>
					</div> </a>

			</div>
			<div class="sp-blue mb10">&nbsp;</div>
			<!-- start -->
			<table width="100%" border="0" cellpadding="0" cellspacing="0"
				class="tableRes">
				<tr>
					<th colspan="4" class="tableborder"><span style="float:left"><h2
								id="a3Show">
								<img src="${contextPath}/images/btn_arrow_down.gif" width="17"
									height="14" name="img" />试卷列表
							</h2> </span> <!--<span style="float:right; ">
				  <c:if test="${vhl}"><a href="#;" id="dispatcherVhlButtonShow" style=" font-size:18px;"><fmt:message key="Page.workOrder.reAssign" /></a></c:if>
				</span>
		   --> <span style="float:right; " class="tableRes2"> <a
							style=" font-size:18px" id="newPaper2" href="#;"> 添加试卷 </a> </span>
					</th>
				</tr>
			</table>
			<table name="table" width="100%" border="0" cellpadding="0"
				cellspacing="0" class="tableRes">
				<tr>
					<th style="width: 100%">
						<table class="xTable " id="flextb">
							<tr>
								<th style="width: 30%">试题名</th>
								<th style="width: 30%"><span>试卷描述</span></th>
								<th style="width: 10%"><span>总分</span></th>

								<th style="width: 20%"><span>操作</span></th>

							</tr>


						</table>

						</div>
					</th>

				</tr>

			</table>

			<div class="row">
				<div class="title">参试对象</div>
			</div>
			<table class="yTable margintop">
				<tr>
					<th align="right" width="60"><span>*</span>勾选对象</th>
					<td align="left"  width="90" ><input name="name" id="user" type="radio" />
						<label>全部</label></td>
					</td>
					<td align="left" width="150" ><input name="departmentUser" id="user" type="radio" value="${loginer.departmentId} "/>
						<label>${loginer.departmentName} </label></td>
					</td>
<td align="left"  >
						</td>
					</td>
				</tr>
				</table>
			<div class="Btn">
				<a href="#" class="bb" id="saveRole"><div>
						<span class="button green">保存</span>
					</div> </a>
					<a href="#" class="bb" id="saveRole"><div>
						<span class="button blue">立即发布</span>
					</div> </a> <a href="#" class="bb" id="cancel"><div>
						<span class="button orange">取消</span>
					</div> </a>
			</div>
		</form:form>

	</div>
	<script type="text/javascript">
		seajs.use("${scriptBasePath}/exam/new.js");
	</script>
</body>
</html>