📄 addtopic.asp
字号:
<!--#include file="Check.asp"-->
<!--#include file="Conn.asp"-->
<%
Dim TeachingSujectID
TeachingSujectID = Session("TestTeachingSujectID")
Session("TestTeachingSujectID") = TeachingSujectID
If Session("TestTeachingSujectID") = "" Then
Response.Write("参数错误!")
Response.End
End If
%>
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=application("TestVerSion")%>_添加题库</title>
<script language="javascript">
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;
}
}
function SetIt()
{
str='<br>';
if(!window.addform.upcount.value)
window.addform.upcount.value=1;
for(i=1;i<=window.addform.upcount.value;i++){
str+='文件'+i+':<input type="file" name="Pic'+i+'" size="30" class=inputnormal maxlength="20" class="input1" onblur="this.className=\'inputnormal\'" onfocus="this.className=\'inputedit\'"><br>';
window.TextID.innerHTML=str+'<br>';
}
}
//-->
</script>
<link rel="stylesheet" type="text/css" href="css.css">
<style type="text/css">
<!--
body,td,th {
font-size: 12px;
}
body {
background-color: #B1DB99;
}
-->
</style></head>
<body onLoad="SetIt();">
<table width="100%" height="18" border="0" cellspacing="1" bordercolor="#C0C0C0" bgcolor="#D9ECFF" id="AutoNumber2" style="border-collapse: collapse">
<tr>
<td width="100%" background="../images/Down_bg.gif"> ★ <strong>当前位置: <font color=red><%=Request("typeadd")%></font> </strong>添加</td>
</tr>
</table>
<br>
<%
if request("typeadd")="单选题" then
%>
<%=request("str")%>
<table border="1" cellpadding="2" cellspacing="1" style="border-collapse: collapse" bordercolor="#C0C0C0" width="100%" id="AutoNumber3">
<form name="addform" method="post" action="AddTopicOK.asp?TeachingSujectID=<%=TeachingSujectID%>" onSubmit="return submitit();" enctype="multipart/form-data">
<tr>
<td width="80" align="center" bgcolor="#D9ECFF"><font color="#666666"><strong>当前题库</strong></font></td>
<td> <input type="text" name="subjectview" size="40" value="<%=request("subjectview")%>" readonly class="inputnormal">
</td>
</tr>
<tr>
<td align="center" bgcolor="#D9ECFF"><font color="#666666"><strong>选择类型</strong></font></td>
<td> <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="#D9ECFF"><font color="#666666"><strong>标
题</strong></font></td>
<td> <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="#D9ECFF"><font color="#666666"><strong>内
容</strong></font></td>
<td>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="#D9ECFF"><font color="#666666"><strong>答
案</strong></font></td>
<td height="20"> <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>
<td align="center" height="20" bgcolor="#D9ECFF">文件上传:</td>
<td>
<li> 文件个数
<input type="text" name="upcount" size=2 value="1" class='inputnormal' onblur='this.className="inputnormal"' onfocus='this.className="inputedit";'>
<input type="button" name="Button" onclick="SetIt();" value="· 设定 ·" class="b2">
<div id=TextID></div></li>
</td>
</tr>
<tr>
<td align="center" height="20" colspan="2"> <div align="right">
<input type="submit" value="保存" name="B1" class="b2">
<input type="reset" value="重置" name="B2" class="b2">
</div></td>
</tr>
</form>
</table>
<%
end if
if request("typeadd")="多选题" then
%>
<%=request("str")%>
<table border="1" cellpadding="2" cellspacing="1" style="border-collapse: collapse" bordercolor="#C0C0C0" width="100%" id="AutoNumber3">
<form name="addform" method="post" action="AddTopicOK.asp" onSubmit="return submitit();" enctype="multipart/form-data">
<tr>
<td width="80" align="center" bgcolor="#D9ECFF"><font color="#666666"><strong>当前题库</strong></font></td>
<td> <input type="text" name="subjectview" size="40" value="<%=request("subjectview")%>" readonly class="inputnormal">
</td>
</tr>
<tr>
<td align="center" bgcolor="#D9ECFF"><font color="#666666"><strong>选择类型</strong></font></td>
<td> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" id="AutoNumber4">
<tr>
<td><input type="radio" name="typeadd" disabled value="v1"> </td>
<td width="80">单选题</td>
<td> <input type="radio" value="<%=request("typeadd")%>" name="typeadd" checked>
</td>
<td width="80">多选题</td>
<td><input type="radio" name="type" disabled value="v1"> </td>
<td width="80">判断题</td>
</tr>
</table></td>
</tr>
<tr>
<td align="center" bgcolor="#D9ECFF"><font color="#666666"><strong>标
题</strong></font></td>
<td> <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="#D9ECFF"><font color="#666666"><strong>内
容</strong></font></td>
<td> A.
<input type="text" name="text1" size="60" onBlur="this.className='inputnormal'" onFocus="this.className='inputedit';" class="inputnormal">
<br>
B.
<input type="text" name="text2" size="60" onBlur="this.className='inputnormal'" onFocus="this.className='inputedit';" class="inputnormal">
<br>
C.
<input type="text" name="text3" size="60" onBlur="this.className='inputnormal'" onFocus="this.className='inputedit';" class="inputnormal">
<br>
D.
<input type="text" name="text4" size="60" onBlur="this.className='inputnormal'" onFocus="this.className='inputedit';" class="inputnormal">
<br>
E.
<input type="text" name="text5" size="60" onBlur="this.className='inputnormal'" onFocus="this.className='inputedit';" class="inputnormal">
<br>
F.
<input type="text" name="text6" size="60" onBlur="this.className='inputnormal'" onFocus="this.className='inputedit';" class="inputnormal">
</td>
</tr>
<tr>
<td align="center" bgcolor="#D9ECFF"><font color="#666666"><strong>答
案</strong></font></td>
<td height="20"> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" id="AutoNumber5">
<tr>
<td>A</td>
<td> <input type="checkbox" name="answer" value="A" onBlur="this.className='inputnormal'" onFocus="this.className='inputedit';this.select()" class="inputnormal"></td>
<td>B</td>
<td> <input type="checkbox" name="answer" value="B" onBlur="this.className='inputnormal'" onFocus="this.className='inputedit';this.select()" class="inputnormal"></td>
<td>C</td>
<td> <input type="checkbox" name="answer" value="C" onBlur="this.className='inputnormal'" onFocus="this.className='inputedit';this.select()" class="inputnormal"></td>
<td>D</td>
<td> <input type="checkbox" name="answer" value="D" onBlur="this.className='inputnormal'" onFocus="this.className='inputedit';this.select()" class="inputnormal"></td>
<td>E</td>
<td> <input type="checkbox" name="answer" value="E" onBlur="this.className='inputnormal'" onFocus="this.className='inputedit';this.select()" class="inputnormal"></td>
<td>F</td>
<td> <input type="checkbox" name="answer" value="F" onBlur="this.className='inputnormal'" onFocus="this.className='inputedit';this.select()" class="inputnormal"></td>
</tr>
</table></td>
</tr>
<tr>
<td align="center" height="20" bgcolor="#D9ECFF">文件上传:</td>
<td>
<li> 文件个数
<input type="text" name="upcount" size=2 value="1" class='inputnormal' onblur='this.className="inputnormal"' onfocus='this.className="inputedit";'>
<input type="button" name="Button" onclick="SetIt();" value="· 设定 ·" class="b2">
<div id=TextID></div></li>
</td>
</tr>
<tr>
<td align="center" height="20" colspan="2"> <div align="right">
<input type="submit" value="保存" name="B1" class="b2">
<input type="reset" value="重置" name="B2" class="b2">
</div></td>
</tr>
</form>
</table>
<%
end if
if request("typeadd")="判断题" then
%>
<%=request("str")%>
<table border="1" cellpadding="2" cellspacing="1" style="border-collapse: collapse" bordercolor="#C0C0C0" width="100%" id="AutoNumber3">
<form name="addform" method="post" action="AddTopicOK.asp" onSubmit="return submitit();" enctype="multipart/form-data">
<tr>
<td width="80" align="center" bgcolor="#D9ECFF"><font color="#666666"><strong>当前题库</strong></font></td>
<td> <input type="text" name="subjectview" size="40" value="<%=request("subjectview")%>" readonly class="inputnormal">
</td>
</tr>
<tr>
<td align="center" bgcolor="#D9ECFF"><font color="#666666"><strong>选择类型</strong></font></td>
<td> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" id="AutoNumber4">
<tr>
<td><input type="radio" name="type" disabled> </td>
<td width="80">单选题</td>
<td><input type="radio" name="type" disabled> </td>
<td width="80">多选题</td>
<td> <input type="radio" value="<%=request("typeadd")%>" name="typeadd" checked>
</td>
<td width="80">判断题</td>
</tr>
</table></td>
</tr>
<tr>
<td align="center" bgcolor="#D9ECFF"><font color="#666666"><strong>标
题</strong></font></td>
<td> <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="#D9ECFF"><font color="#666666"><strong>答
案</strong></font></td>
<td height="20"> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" id="AutoNumber5">
<tr>
<td>正确</td>
<td><input type="radio" name="answer" value="y"></td>
<td>不正确</td>
<td><input type="radio" name="answer" value="n"></td>
</tr>
</table></td>
</tr>
<tr>
<td align="center" height="20" bgcolor="#D9ECFF">文件上传:</td>
<td>
<li> 文件个数
<input type="text" name="upcount" size=2 value="1" class='inputnormal' onblur='this.className="inputnormal"' onfocus='this.className="inputedit";'>
<input type="button" name="Button" onclick="SetIt();" value="· 设定 ·" class="b2">
<div id=TextID></div></li>
</td>
</tr>
<tr>
<td align="center" height="20" colspan="2"> <div align="right">
<input type="submit" value="保存" name="B1" class="b2">
<input type="reset" value="重置" name="B2" class="b2">
</div></td>
</tr>
</form>
</table>
<%
end if
%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -