📄 admindatabaseedit.asp
字号:
<!--#include file="conn.inc"-->
<%
id=request("id")
sql="select * from exam_database where id="&id
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,3,2
subjectview=rs("subject")
typeedit=rs("type")
question=rs("question")
text1=rs("text1")
text2=rs("text2")
text3=rs("text3")
text4=rs("text4")
text5=rs("text5")
text6=rs("text6")
answer=rs("answer")
fenzhi=rs("fenzhi")
shijian=rs("shijian")
nandu=rs("nandu")
qufendu=rs("qufendu")
chapt=rs("chapt")
%>
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>网上考试系统 | 系统管理 | 查看编辑题目</title>
<script language="javascript">
function submitit()
{
if (document.all.question.value=="")
{
alert("标题不能为空!");
return false;
}
else
{
if (document.all.text1.value=="" )
{
alert("答案不能为空!");
return false;
}
else
return true;
}
}
</script>
<link rel="stylesheet" type="text/css" href="css.css">
</head>
<body <table border="0" cellpadding="2" cellspacing="0" style="border-collapse: collapse" id="AutoNumber2" width="100%">
<tr>
<td width="100%" bgcolor="#FFFFFF">
<p>当前位置:系统管理 > 题库管理 > 查看/编辑题目</td>
</tr>
</table>
<%
if typeedit="单选题" then
%> </p>
<form name="adminsubjectsingle" method="GET" action="admindatabasesaveedit.asp" onsubmit="return submitit();">
<table border="1" cellpadding="2" cellspacing="1" style="border-collapse: collapse" bordercolor="#C0C0C0" width="100%" id="AutoNumber3">
<tr>
<td width="84" align="center" bgcolor="#E1E1E1">当前题库</td>
<td colspan="9">
<input type="text" name="subjectview2" size="40" value="<%=subjectview%>" readonly class="inputnormal">
</td>
</tr>
<tr>
<td align="center" bgcolor="#E1E1E1">选择类型</td>
<td colspan="9">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" id="AutoNumber4">
<tr>
<td><input type="radio" value="<%=typeedit%>" name="typeadd" checked>
</td>
<td width="80">单选题</td>
<td><input type="radio" name="typeadd" disabled>
</td>
<td width="80">多选题</td>
<td><input type="radio" name="typeadd" disabled>
</td>
<td width="80">判断题</td>
</tr>
</table></td>
</tr>
<tr>
<td align="center" bgcolor="#E1E1E1">标 题</td>
<td colspan="9">
<textarea rows="3" name="textarea" cols="60" onBlur="this.className='inputnormal'" onFocus="this.className='inputedit';this.select()" class="inputnormal"><%=question%></textarea>
</td>
</tr>
<tr>
<td align="center" bgcolor="#E1E1E1">内 容</td>
<td colspan="9">A.
<input type="text" name="text12" size="60" value="<%=text1%>" onBlur="this.className='inputnormal'" onFocus="this.className='inputedit';this.select()" class="inputnormal">
<br>
B.
<input type="text" name="text22" size="60" value="<%=text2%>" onBlur="this.className='inputnormal'" onFocus="this.className='inputedit';this.select()" class="inputnormal">
<br>
C.
<input type="text" name="text32" size="60" value="<%=text3%>" onBlur="this.className='inputnormal'" onFocus="this.className='inputedit';this.select()" class="inputnormal">
<br>
D.
<input type="text" name="text42" size="60" value="<%=text4%>" onBlur="this.className='inputnormal'" onFocus="this.className='inputedit';this.select()" class="inputnormal">
<br>
E.
<input type="text" name="text52" size="60" value="<%=text5%>" onBlur="this.className='inputnormal'" onFocus="this.className='inputedit';this.select()" class="inputnormal">
<br>
F.
<input type="text" name="text62" size="60" value="<%=text6%>" onBlur="this.className='inputnormal'" onFocus="this.className='inputedit';this.select()" class="inputnormal">
</td>
</tr>
<tr>
<td align="center" height="20" bgcolor="#E1E1E1">答 案</td>
<td height="20" colspan="9">
<input name="answer" type="text" class="inputnormal" id="answer" onFocus="this.className='inputedit';this.select()" onBlur="this.className='inputnormal'" onKeyUp="this.value.toUpperCase()" value="<%=answer%>" size="20"></td>
</tr>
<tr align="left">
<td height="9" bgcolor="#E1E1E1">
<div align="center">分 值 </div></td>
<td width="104" height="9"><input name="fenzhi" type="text" class="inputnormal" id="fenzhi" onFocus="this.className='inputedit';this.select()" onBlur="this.className='inputnormal'" onKeyUp="this.value.toUpperCase()" value="<%=fenzhi%>" size="10"></td>
<td width="76" align="center" bgcolor="#E1E1E1">难 度</td>
<td width="98"><input name="nandu" type="text" class="inputnormal" id="nandu" onFocus="this.className='inputedit';this.select()" onBlur="this.className='inputnormal'" onKeyUp="this.value.toUpperCase()" value="<%=nandu%>" size="10"></td>
<td width="78" align="center" bgcolor="#E1E1E1">区分度</td>
<td width="95"><input name="qufendu" type="text" class="inputnormal" id="qufendu" onFocus="this.className='inputedit';this.select()" onBlur="this.className='inputnormal'" onKeyUp="this.value.toUpperCase()" value="<%=qufendu%>" size="10"></td>
<td width="75" align="center" bgcolor="#E1E1E1">时 间</td>
<td width="129"><input name="shijian" type="text" class="inputnormal" id="shijian" onFocus="this.className='inputedit';this.select()" onBlur="this.className='inputnormal'" onKeyUp="this.value.toUpperCase()" value="<%=shijian%>" size="10">
分钟</td>
<td width="87" align="center" bgcolor="#E1E1E1">所属章节</td>
<td width="79"><input name="chapt" type="text" class="inputnormal" id="chapt" onFocus="this.className='inputedit';this.select()" onBlur="this.className='inputnormal'" onKeyUp="this.value.toUpperCase()" value="<%=chapt%>" size="10"></td>
</tr>
<tr align="right">
<td height="10" colspan="10"><input type="hidden" value="<%=id%>" name="id2">
<input type="submit" value="保存" name="B12" class="s02">
<input type="button" value="关闭窗口" name="B22" onClick="self.close()" class="s02"></td>
</tr>
</table>
</form>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -