| 
							
								 | 
							
							<%@page import="com.zky.para.Para"%>
 | 
						
						
						
						
							 | 
							
								 | 
							
							<%@include file="/auth.jsp"%>
 | 
						
						
						
						
							 | 
							
								 | 
							
							<%@page import="java.util.Date"%>
 | 
						
						
						
						
							 | 
							
								 | 
							
							<%@page language="java" pageEncoding="utf-8" %>
 | 
						
						
						
						
							 | 
							
								 | 
							
							<jsp:useBean id="getPara" scope="application" class="com.zky.para.SyncPara"/>
 | 
						
						
						
						
							 | 
							
								 | 
							
							<%
 | 
						
						
						
						
							 | 
							
								 | 
							
							    String operate = (String)request.getParameter("operate");
 | 
						
						
						
						
							 | 
							
								 | 
							
							    String qsubject="";
 | 
						
						
						
						
							 | 
							
								 | 
							
							    String optiona="";
 | 
						
						
						
						
							 | 
							
								 | 
							
							    String optionb="";
 | 
						
						
						
						
							 | 
							
								 | 
							
							    String optionc="";
 | 
						
						
						
						
							 | 
							
								 | 
							
							    String optiond="";
 | 
						
						
						
						
							 | 
							
								 | 
							
							    String id="";
 | 
						
						
						
						
							 | 
							
								 | 
							
							    String note="";
 | 
						
						
						
						
							 | 
							
								 | 
							
							    String createdate="";
 | 
						
						
						
						
							 | 
							
								 | 
							
							    String createperson="";
 | 
						
						
						
						
							 | 
							
								 | 
							
							    String readonly        = "";
 | 
						
						
						
						
							 | 
							
								 | 
							
							    String tklxtype="";
 | 
						
						
						
						
							 | 
							
								 | 
							
							    String optrid = login_obj.optrid;
 | 
						
						
						
						
							 | 
							
								 | 
							
							    String optrname = getPara.getDesc("TAB_EMPLOYEE","EMPID","EMPNAME",optrid);
 | 
						
						
						
						
							 | 
							
								 | 
							
							    String optrsubmit = getPara.getDesc("TAB_EMPLOYEE","EMPID","SUBMITBTN",optrid);
 | 
						
						
						
						
							 | 
							
								 | 
							
							    String date = DateTime.DateToStr(new Date());
 | 
						
						
						
						
							 | 
							
								 | 
							
							%>
 | 
						
						
						
						
							 | 
							
								 | 
							
							<html>
 | 
						
						
						
						
							 | 
							
								 | 
							
							<head>
 | 
						
						
						
						
							 | 
							
								 | 
							
							<title>题库管理</title>
 | 
						
						
						
						
							 | 
							
								 | 
							
							<link href="../../css/font.css" rel="stylesheet" type="text/css">
 | 
						
						
						
						
							 | 
							
								 | 
							
							<script src="../../js/date.js"></script>
 | 
						
						
						
						
							 | 
							
								 | 
							
							<script src="../../js/check.js"></script>
 | 
						
						
						
						
							 | 
							
								 | 
							
							<script>
 | 
						
						
						
						
							 | 
							
								 | 
							
							function check(operate) {
 | 
						
						
						
						
							 | 
							
								 | 
							
								form1.operate.value = operate;
 | 
						
						
						
						
							 | 
							
								 | 
							
								if(operate=='addQuestion'){
 | 
						
						
						
						
							 | 
							
								 | 
							
									if (form1.qsubject.value == "") {
 | 
						
						
						
						
							 | 
							
								 | 
							
										alert("请输入标题名称!");
 | 
						
						
						
						
							 | 
							
								 | 
							
										form1.qsubject.focus();
 | 
						
						
						
						
							 | 
							
								 | 
							
										return false;
 | 
						
						
						
						
							 | 
							
								 | 
							
									}
 | 
						
						
						
						
							 | 
							
								 | 
							
									if (form1.tklxtype.value == "") {
 | 
						
						
						
						
							 | 
							
								 | 
							
										alert("请选择试题类型!");
 | 
						
						
						
						
							 | 
							
								 | 
							
										form1.tklxtype.focus();
 | 
						
						
						
						
							 | 
							
								 | 
							
										return false;
 | 
						
						
						
						
							 | 
							
								 | 
							
									}	
 | 
						
						
						
						
							 | 
							
								 | 
							
									if (form1.optiona.value == "") {
 | 
						
						
						
						
							 | 
							
								 | 
							
										alert("请输入选项A!");
 | 
						
						
						
						
							 | 
							
								 | 
							
										form1.optiona.focus();
 | 
						
						
						
						
							 | 
							
								 | 
							
										return false;
 | 
						
						
						
						
							 | 
							
								 | 
							
									}		
 | 
						
						
						
						
							 | 
							
								 | 
							
									if (form1.optionb.value == "") {
 | 
						
						
						
						
							 | 
							
								 | 
							
										alert("请输入选项B!");
 | 
						
						
						
						
							 | 
							
								 | 
							
										form1.optionb.focus();
 | 
						
						
						
						
							 | 
							
								 | 
							
										return false;
 | 
						
						
						
						
							 | 
							
								 | 
							
									}	
 | 
						
						
						
						
							 | 
							
								 | 
							
									if (form1.optionc.value == "") {
 | 
						
						
						
						
							 | 
							
								 | 
							
										alert("请输入选项C!");
 | 
						
						
						
						
							 | 
							
								 | 
							
										form1.optionc.focus();
 | 
						
						
						
						
							 | 
							
								 | 
							
										return false;
 | 
						
						
						
						
							 | 
							
								 | 
							
									}	
 | 
						
						
						
						
							 | 
							
								 | 
							
									if (form1.optiond.value == "") {
 | 
						
						
						
						
							 | 
							
								 | 
							
										alert("请输入选项D!");
 | 
						
						
						
						
							 | 
							
								 | 
							
										form1.optiond.focus();
 | 
						
						
						
						
							 | 
							
								 | 
							
										return false;
 | 
						
						
						
						
							 | 
							
								 | 
							
									}	
 | 
						
						
						
						
							 | 
							
								 | 
							
									if (form1.note.value == "") {
 | 
						
						
						
						
							 | 
							
								 | 
							
										alert("请输正确答案!");
 | 
						
						
						
						
							 | 
							
								 | 
							
										form1.note.focus();
 | 
						
						
						
						
							 | 
							
								 | 
							
										return false;
 | 
						
						
						
						
							 | 
							
								 | 
							
									}
 | 
						
						
						
						
							 | 
							
								 | 
							
									return true;
 | 
						
						
						
						
							 | 
							
								 | 
							
								}
 | 
						
						
						
						
							 | 
							
								 | 
							
								form1.submit();
 | 
						
						
						
						
							 | 
							
								 | 
							
							}
 | 
						
						
						
						
							 | 
							
								 | 
							
							function textToUpperCase(){
 | 
						
						
						
						
							 | 
							
								 | 
							
								  if(event.keyCode>=65 && event.keyCode<=90 || event.type=="change"){
 | 
						
						
						
						
							 | 
							
								 | 
							
								    event.srcElement.value = event.srcElement.value.toUpperCase();
 | 
						
						
						
						
							 | 
							
								 | 
							
								  }
 | 
						
						
						
						
							 | 
							
								 | 
							
								}
 | 
						
						
						
						
							 | 
							
								 | 
							
							function selectChange(i)
 | 
						
						
						
						
							 | 
							
								 | 
							
							{
 | 
						
						
						
						
							 | 
							
								 | 
							
								form1.action = "/zhyw/smsj/QuestionEdit.jsp";
 | 
						
						
						
						
							 | 
							
								 | 
							
								form1.submit();
 | 
						
						
						
						
							 | 
							
								 | 
							
							}
 | 
						
						
						
						
							 | 
							
								 | 
							
							</script>
 | 
						
						
						
						
							 | 
							
								 | 
							
							<style type="text/css">
 | 
						
						
						
						
							 | 
							
								 | 
							
							.aselect{
 | 
						
						
						
						
							 | 
							
								 | 
							
								width: 155px;
 | 
						
						
						
						
							 | 
							
								 | 
							
							}
 | 
						
						
						
						
							 | 
							
								 | 
							
							</style>
 | 
						
						
						
						
							 | 
							
								 | 
							
							</head>
 | 
						
						
						
						
							 | 
							
								 | 
							
							<body onload="setValue();">
 | 
						
						
						
						
							 | 
							
								 | 
							
							<form name="form1" method="post" action="/servlet/TryManage">
 | 
						
						
						
						
							 | 
							
								 | 
							
							<input type="hidden" name="operate" value=""/>
 | 
						
						
						
						
							 | 
							
								 | 
							
							<table width="100%"  border="0" align="center" cellpadding="0" cellspacing="1" class="box">
 | 
						
						
						
						
							 | 
							
								 | 
							
							  <tr>
 | 
						
						
						
						
							 | 
							
								 | 
							
							    <td valign="top"><table width="100%" height="23"  border="0" cellpadding="0" cellspacing="0">
 | 
						
						
						
						
							 | 
							
								 | 
							
							        <tr>
 | 
						
						
						
						
							 | 
							
								 | 
							
							          <td width="25%" background="/images/tab_search_01.jpg"><table width="100%" height="23" border="0" align="center" cellpadding="0" cellspacing="0">
 | 
						
						
						
						
							 | 
							
								 | 
							
							              <tr>
 | 
						
						
						
						
							 | 
							
								 | 
							
							                <td width="6%" align="right"><img src="/images/little_red.jpg" width="12" height="12"></td>
 | 
						
						
						
						
							 | 
							
								 | 
							
							                <td width="94%" class="font12b"> <b>题库管理</b></td>
 | 
						
						
						
						
							 | 
							
								 | 
							
							              </tr>
 | 
						
						
						
						
							 | 
							
								 | 
							
							          </table></td>
 | 
						
						
						
						
							 | 
							
								 | 
							
							          <td width="75%" background="/images/tab_search_03.jpg"><img src="/images/tab_search_02.jpg" width="12" height="23"></td>
 | 
						
						
						
						
							 | 
							
								 | 
							
							        </tr>
 | 
						
						
						
						
							 | 
							
								 | 
							
							      </table>  
 | 
						
						
						
						
							 | 
							
								 | 
							
							      <table width="98%"  border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="d8e9fe" class="table02">
 | 
						
						
						
						
							 | 
							
								 | 
							
								    <tr bgcolor="#FFFFFF">
 | 
						
						
						
						
							 | 
							
								 | 
							
										<td class="cell1">题目标题:</td>
 | 
						
						
						
						
							 | 
							
								 | 
							
									<td class="cell2">
 | 
						
						
						
						
							 | 
							
								 | 
							
										<input type="text" name="qsubject"  onblur="checkLength(this,1000);" style="width:250px;" >
 | 
						
						
						
						
							 | 
							
								 | 
							
										<font size="2" color="red"> 下列哪个不是程序设计语言? </font>
 | 
						
						
						
						
							 | 
							
								 | 
							
									</td>	
 | 
						
						
						
						
							 | 
							
								 | 
							
									<tr bgcolor="#FFFFFF">
 | 
						
						
						
						
							 | 
							
								 | 
							
									<td class="cell1">试题类型</td>
 | 
						
						
						
						
							 | 
							
								 | 
							
									<td class="cell2">
 | 
						
						
						
						
							 | 
							
								 | 
							
									    <select class='aselect' name="tklxtype" id="tklxtype">
 | 
						
						
						
						
							 | 
							
								 | 
							
									   		<%=Para.getTKLXType(getPara,"TKLX")%>            					
 | 
						
						
						
						
							 | 
							
								 | 
							
										</select>
 | 
						
						
						
						
							 | 
							
								 | 
							
									</td>
 | 
						
						
						
						
							 | 
							
								 | 
							
									</tr>
 | 
						
						
						
						
							 | 
							
								 | 
							
									<tr bgcolor="#FFFFFF">
 | 
						
						
						
						
							 | 
							
								 | 
							
									<td class="cell1">选项A:</td>
 | 
						
						
						
						
							 | 
							
								 | 
							
									<td class="cell2">
 | 
						
						
						
						
							 | 
							
								 | 
							
										<input name='optiona' type='text' maxlength="70" ><font size="2" color="red"  />  A、vb语言</font> 
 | 
						
						
						
						
							 | 
							
								 | 
							
									</td>
 | 
						
						
						
						
							 | 
							
								 | 
							
									</tr>
 | 
						
						
						
						
							 | 
							
								 | 
							
									<tr bgcolor="#FFFFFF">
 | 
						
						
						
						
							 | 
							
								 | 
							
									<td class="cell1">选项B:</td>
 | 
						
						
						
						
							 | 
							
								 | 
							
									<td class="cell2">
 | 
						
						
						
						
							 | 
							
								 | 
							
										<input type="text" name="optionb"  maxlength="70" ><font size="2" color="red">  B、java</font>
 | 
						
						
						
						
							 | 
							
								 | 
							
									</td>
 | 
						
						
						
						
							 | 
							
								 | 
							
								    </tr>
 | 
						
						
						
						
							 | 
							
								 | 
							
								     <tr bgcolor="#FFFFFF">
 | 
						
						
						
						
							 | 
							
								 | 
							
									<td class="cell1">选项C:</td>
 | 
						
						
						
						
							 | 
							
								 | 
							
									<td class="cell2">
 | 
						
						
						
						
							 | 
							
								 | 
							
										<input type="text" name="optionc"  maxlength="70" ><font size="2" color="red">  C、c语言</font> 
 | 
						
						
						
						
							 | 
							
								 | 
							
									</td>
 | 
						
						
						
						
							 | 
							
								 | 
							
								    </tr>
 | 
						
						
						
						
							 | 
							
								 | 
							
								    <tr bgcolor="#FFFFFF">
 | 
						
						
						
						
							 | 
							
								 | 
							
									<td class="cell1">选项D:</td>
 | 
						
						
						
						
							 | 
							
								 | 
							
									<td class="cell2">
 | 
						
						
						
						
							 | 
							
								 | 
							
										<input type="text" name="optiond" maxlength="70" ><font size="2" color="red">  D、UML</font>
 | 
						
						
						
						
							 | 
							
								 | 
							
									</td>
 | 
						
						
						
						
							 | 
							
								 | 
							
								    </tr>
 | 
						
						
						
						
							 | 
							
								 | 
							
								    <tr bgcolor="#FFFFFF">
 | 
						
						
						
						
							 | 
							
								 | 
							
									<td class="cell1">答案:</td>
 | 
						
						
						
						
							 | 
							
								 | 
							
									<td class="cell2">
 | 
						
						
						
						
							 | 
							
								 | 
							
										<input type="text" name="note"  maxlength="1" onchange="textToUpperCase()"><font size="2" color="red">  选择题答案输入示例,ABCD中的一个。</font>
 | 
						
						
						
						
							 | 
							
								 | 
							
									</td>
 | 
						
						
						
						
							 | 
							
								 | 
							
								    </tr>
 | 
						
						
						
						
							 | 
							
								 | 
							
								    <tr bgcolor="#FFFFFF">
 | 
						
						
						
						
							 | 
							
								 | 
							
									<td class="cell1">出卷人:</td>
 | 
						
						
						
						
							 | 
							
								 | 
							
									<td class="cell2">
 | 
						
						
						
						
							 | 
							
								 | 
							
										<input type="text" name="createperson" onblur="checkLength(this,40);" value="<%=optrname%>"  style="color:red;" maxlength="8">
 | 
						
						
						
						
							 | 
							
								 | 
							
									</td>
 | 
						
						
						
						
							 | 
							
								 | 
							
								    </tr>
 | 
						
						
						
						
							 | 
							
								 | 
							
								   <tr bgcolor="#FFFFFF">
 | 
						
						
						
						
							 | 
							
								 | 
							
									<td class="cell1">创建日期</td>
 | 
						
						
						
						
							 | 
							
								 | 
							
									<td class="cell2">
 | 
						
						
						
						
							 | 
							
								 | 
							
										<input name='createdate' type='text' readonly="readonly"  onclick="fPopCalendar(createdate,createdate);" value="<%=date%>"/>
 | 
						
						
						
						
							 | 
							
								 | 
							
									</td>
 | 
						
						
						
						
							 | 
							
								 | 
							
								    </tr>	
 | 
						
						
						
						
							 | 
							
								 | 
							
							</table>
 | 
						
						
						
						
							 | 
							
								 | 
							
								<table width="100%" align="center">
 | 
						
						
						
						
							 | 
							
								 | 
							
									<tr align="center">
 | 
						
						
						
						
							 | 
							
								 | 
							
									<td>
 | 
						
						
						
						
							 | 
							
								 | 
							
									<input name="button1" onclick="return check('addQuestion');" type="image"  alt="保存" src="../../images1/bc1.png"/>  
 | 
						
						
						
						
							 | 
							
								 | 
							
								    <a href="javascript:history.go(-1)"><img src="../../images1/fh.png" alt="返回" border="0" /></a>
 | 
						
						
						
						
							 | 
							
								 | 
							
									</td>
 | 
						
						
						
						
							 | 
							
								 | 
							
									</tr>
 | 
						
						
						
						
							 | 
							
								 | 
							
								</table>	
 | 
						
						
						
						
							 | 
							
								 | 
							
								 </td>
 | 
						
						
						
						
							 | 
							
								 | 
							
							  </tr>
 | 
						
						
						
						
							 | 
							
								 | 
							
							</table>
 | 
						
						
						
						
							 | 
							
								 | 
							
							</form>
 | 
						
						
						
						
							 | 
							
								 | 
							
							<%@include file="/foot.jsp"%>
 | 
						
						
						
						
							 | 
							
								 | 
							
							</body>
 | 
						
						
						
						
							 | 
							
								 | 
							
							</html> |