?? 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 + -