You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

179 lines
6.2 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<%@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"/>
<%
HashFmlBuf buf = (HashFmlBuf)request.getAttribute("by_tryBookId");
String tklxtype = Common.convertNull(request.getParameter("tklxtype"));
%>
<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=="UpdateQuestion"){
if (form1.qsubject.value == "") {
alert("请输入标题名称!");
form1.qsubject.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;
}
}
form1.button1.disabled=true;
form1.button2.disabled=true;
form1.submit();
}
function selectChange(i)
{
form1.action = "/zhyw/smsj/QuestionUpdate.jsp";
form1.submit();
}
</script>
<style type="text/css">
.aselect{
width: 155px;
}
</style>
</head>
<body onload="setValue();">
<br>
<table width="90%" 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="80%" height="23" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="3%"><img src="/images/little_red.jpg" width="12" height="12"></td>
<td width="97%" class="font12b">&nbsp;题库管理</td>
</tr>
</table></td>
<td width="82%" background="/images/tab_search_03.jpg"><img src="/images/tab_search_02.jpg" width="12" height="23"></td>
</tr>
</table>
<form name="form1" method="post" action="/servlet/TryManage">
<input type="hidden" name="operate" value=""/>
<input type="hidden" name="id" value="<%=buf.fget("id",0)%>" />
<br>
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="3%"><img src="/images/little.gif" width="12" height="12"></td>
<td width="97%" class="font12">题库信息编写</td>
</tr>
</table>
<table width="90%" 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" id="qsubject" value="<%=buf.fget("q_subject",0)%>" onblur="checkLength(this,1000);" style="width:250px;" >
<font size="2" color="red">&nbsp;下列哪个不是程序设计语言? </font>
<font color="#ff0000">*</font>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td class="cell1">题类型</td>
<%
String type = "";
if(buf.fget("typeid",0).equals("2")){
type="基础题库";
}else if(buf.fget("typeid",0).equals("1")){
type="专业题库";
}
%>
<td class="cell2">
<input type="hidden" name="tklxtype" value="<%=buf.fget("typeid",0)%>"/>
<input name="tklxtype" type='text' id="tklxtype" value="<%=type%>" readonly="readonly"><font size="2" color="red">*</font>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td class="cell1">选项A</td>
<td class="cell2">
<input name="optiona" type='text' id="optiona" value="<%=buf.fget("optiona",0)%>" ><font size="2" color="red">&nbsp;&nbsp;A、vb语言</font>
<font color="#ff0000">*</font>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td class="cell1">选项B</td>
<td class="cell2">
<input type="text" name="optionb" id="optionb" value="<%=buf.fget("optionb",0)%>" onblur="checkLength(this,40);" ><font size="2" color="red">&nbsp;&nbsp;B、java</font>
<font color="#ff0000">*</font>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td class="cell1">选项C</td>
<td class="cell2">
<input type="text" name="optionc" id="optionc" value="<%=buf.fget("optionc",0)%>" onblur="checkLength(this,40);" ><font size="2" color="red">&nbsp;&nbsp;C、c语言</font>
<font color="#ff0000">*</font>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td class="cell1">选项D</td>
<td class="cell2">
<input type="text" name="optiond" id="optiond" value="<%=buf.fget("optiond",0)%>" onblur="checkLength(this,40);" ><font size="2" color="red">&nbsp;&nbsp;D、UML</font>
<font color="#ff0000">*</font>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td class="cell1">答案:</td>
<td class="cell2">
<input type="text" name="note" id="note" value="<%=buf.fget("note",0)%>" onblur="checkLength(this,40);" ><font size="2" color="red">选择题答案输入示例,ABCD中的一个。</font>
<font color="#ff0000">*</font>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td class="cell1">出卷人:</td>
<td class="cell2">
<input type="text" name="createperson" id="createperson" value="<%=buf.fget("createperson",0)%>" onblur="checkLength(this,40);" ><font color="#ff0000">*</font>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td class="cell1">创建日期</td>
<td class="cell2">
<input name='createdate' id="createdate" type='text' readonly="readonly" value="<%=buf.fget("createdate",0)%>" ><font color="#ff0000">*</font>
<input class="box_button" type='button' name='butt1' value='选时间' onclick="fPopCalendar(createdate,createdate);">
</td>
</tr>
</table>
<br>
<table width="90%" align="center">
<tr align="center">
<td><input type="button" name="button1" value=" 提交 " class="box_button" onclick="check('UpdateQuestion');"/>&nbsp;&nbsp;
<input type="button" name="button2" value=" 返回 " class="box_button" onclick="history.back()"/>
</td>
</tr>
</table>
</form>
</td>
</tr>
</table>
<%@include file="/foot.jsp"%>
</body>
</html>