📄 admindatabaseadd.asp
字号:
<!--#include file="conn.inc"-->
<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>新建网页 1</title>
<script language="javascript">
function saveit(myform)
{
if (confirm("是否保存所有修改?"))
{
myform.action="adminsubjectsaveedit.asp";
myform.submit();
}
}
function delit(myform)
{
if (confirm("将删除此题库下的所有数据?"))
{
myform.action="adminsubjectdel.asp";
myform.submit();
}
}
function submitit()
{
if (addform.question.value=="")
{
alert("标题不能为空!");
addform.question.focus();
return false;
}
else
{
if (addform.text1)
{
if (addform.text1.value=="" )
{
alert("选项不能为空!");
addform.text1.focus();
return false;
}
}
else
answer=-1;
for (i=0;i<addform.answer.length;i++)
{
if (addform.answer[i].checked )
{
answer=i;
}
}
if (answer==-1)
{
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%" height="25">
<tr>
<td width="100%" bgcolor="#FFFFFF">当前位置:<a href="news.asp">系统管理</a> >
<a href="admindatabase.asp">题库管理</a> > 添加题目</td>
</tr>
</table>
<%
if request("typeadd")="单选题" then
%>
<p></p>
<form name="addform" method="get" action="admindatabasesave.asp" onsubmit="return submitit();">
<%=request("str")%>
<table border="1" cellpadding="2" cellspacing="1" style="border-collapse: collapse" bordercolor="#C0C0C0" width="100%" id="AutoNumber3">
<tr>
<td width="85" align="center" bgcolor="#E1E1E1">当前题库</td>
<td colspan="9">
<input type="text" name="subjectview" size="40" value="<%=request("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="<%=request("typeadd")%>" 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="question" cols="60" onblur="this.className='inputnormal'" onfocus="this.className='inputedit';this.select()" class="inputnormal"></textarea>
</td>
</tr>
<tr>
<td align="center" bgcolor="#E1E1E1">内 容</td>
<td colspan="9">A.<input type="text" name="text1" size="60" onblur="this.className='inputnormal'" onfocus="this.className='inputedit';this.select()" class="inputnormal"><br>
B.<input type="text" name="text2" size="60" onblur="this.className='inputnormal'" onfocus="this.className='inputedit';this.select()" class="inputnormal"><br>
C.<input type="text" name="text3" size="60" onblur="this.className='inputnormal'" onfocus="this.className='inputedit';this.select()" class="inputnormal"><br>
D.<input type="text" name="text4" size="60" onblur="this.className='inputnormal'" onfocus="this.className='inputedit';this.select()" class="inputnormal"><br>
E.<input type="text" name="text5" size="60" onblur="this.className='inputnormal'" onfocus="this.className='inputedit';this.select()" class="inputnormal"><br>
F.<input type="text" name="text6" size="60" 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">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" id="AutoNumber5">
<tr>
<td>A</td>
<td><input type="radio" name="answer" value="A"></td>
<td>B</td>
<td><input type="radio" name="answer" value="B"></td>
<td>C</td>
<td><input type="radio" name="answer" value="C"></td>
<td>D</td>
<td><input type="radio" name="answer" value="D"></td>
<td>E</td>
<td><input type="radio" name="answer" value="E"></td>
<td>F</td>
<td><input type="radio" name="answer" value="F"></td>
</tr>
</table>
</td>
</tr>
<tr align="left">
<td height="20" align="center" bgcolor="#E1E1E1">分 值</td>
<td width="87" height="20"><input type="text" name="fenzhi" size="10" onblur="this.className='inputnormal'" onfocus="this.className='inputedit';this.select()" class="inputnormal"></td>
<td width="67" height="20" align="center" bgcolor="#E1E1E1">难 度</td>
<td width="98"><input type="text" name="nandu" size="10" onblur="this.className='inputnormal'" onfocus="this.className='inputedit';this.select()" class="inputnormal"></td>
<td width="73" height="20" align="center" bgcolor="#E1E1E1">区分度</td>
<td width="95"><input type="text" name="qufendu" size="10" onblur="this.className='inputnormal'" onfocus="this.className='inputedit';this.select()" class="inputnormal"></td>
<td width="66" height="20" align="center" bgcolor="#E1E1E1">时 间</td>
<td width="128"><input type="text" name="shijian" size="10" onblur="this.className='inputnormal'" onfocus="this.className='inputedit';this.select()" class="inputnormal">
分钟</td>
<td width="83"height="20" align="center" bgcolor="#E1E1E1" >所属章节</td>
<td width="122"><input type="text" name="chapt" size="10" onblur="this.className='inputnormal'" onfocus="this.className='inputedit';this.select()" class="inputnormal"></td>
</tr>
<tr align="right">
<td height="20" colspan="10"><input type="submit" value="保存" name="B12" class="s02">
<input type="reset" value="重置" name="B22" class="s02"></td>
</tr>
</table>
</form>
<%
end if
if request("typeadd")="多选题" then
%>
<form name="addform" method="get" action="admindatabasesave.asp" onsubmit="return submitit();">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -