📄 adminsubjectchapter.asp
字号:
<!--#include file="conn.asp"-->
<%
if session("adminname")="" then
response.redirect "relogin.asp"
end if
%>
<%
kcid=trim(request("kcid"))
sql1="select kcm from tbkc where kcid="&kcid&""
set rs1=server.createobject("adodb.recordset")
rs1.open sql1,conn,3,2
sqlchap="select * from tbchapter where kcid="&kcid&" order by chapter"
set rschap=server.createobject("adodb.recordset")
rschap.open sqlchap,conn,3,2
%>
<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>
<link rel="stylesheet" type="text/css" href="css.css">
<script language="javascript">
function addchap(myform)
{
myform.action="adminchapteradd.asp";
}
function delchap(myform)
{
if (confirm("将删除题库中此章下的所有数据?"))
{
myform.action="adminchapterdel.asp";
}
}
function openchap(myform)
{
myform.action="adminchapteropen.asp";
}
function chapter(id,id2)
{
page="adminsubjectchapteredit.asp?chapter="+id+"&kcid="+id2
window.open (page,'编辑用户','width=300,height=300,resizable=1,scrollbars=1')
}
</script>
</head>
<body>
<div align="center">
<center> <form method="POST" action="adminsubjectchapter.asp?kcid=<%=kcid%>" name="chapter">
<table cellspacing="1" style="border-collapse: collapse" bordercolor="#799AE1" width="100%" id="AutoNumber2" border="1" height="126">
<tr class="trh">
<td width="100%" height="26" bgcolor="#6699CC">
<p align="center"><b><font color="#FFFFFF"><%=rs1("kcm")%>章节控制
<span style="font-weight: 400"><%=request("err")%></span></font></b></td>
</tr>
<tr class="trh1">
<td width="100%" height="73" >
<table border="0" cellspacing="1" style="border-collapse: collapse" width="100%" height="89">
<tr>
<td width="29%" height="28" bordercolor="#F1F1F1" colspan="2">
<p align="right">章节号(<font color="#FF0000">数字</font>):</td>
<td width="71%" height="28" colspan="5" bordercolor="#F1F1F1">
<input name="chapterno" size="25" value=" " class="inputnormal" style="float: left"><span lang="en-us">
</span>
<input type="submit" value="添加" name="add" onclick="addchap(chapter)" class="s02"> </td>
</tr>
<tr>
<td width="7%" height="16" align="center" bordercolor="#799AE1"><input type="submit" value="删除" name="del" onclick="delchap(chapter)" class="s02"></td>
<td width="16%" height="16" align="center" bordercolor="#799AE1"><b>章 节</b></td>
<td width="18%" height="16" align="center" bordercolor="#799AE1"><b>开始时间 </b>
</td>
<td width="20%" height="16" align="center" bordercolor="#799AE1"><b>结束时间 </b>
</td>
<td width="15%" height="16" align="center" bordercolor="#799AE1"><b>
现有题量</b></td>
<td width="16%" height="16" align="center" bordercolor="#799AE1"><b>修 改 </b>
</td>
<td width="6%" height="16" align="center" bordercolor="#799AE1">
<input type="submit" value="打开" name="open" onclick="openchap(chapter)" class="s02"></td>
</tr>
<%do while not rschap.eof %>
<tr>
<td width="7%" height="20" align="center" bordercolor="#799AE1"><input type="checkbox" name="id" value="<%=rschap("chapter")%>" ></td>
<td width="16%" height="20" align="center" bordercolor="#799AE1">第<%=rschap("chapter")%>章</td>
<td width="18%" height="20" align="center" bordercolor="#799AE1"><%=rschap("sdate")%></td>
<td width="20%" height="20" align="center" bordercolor="#799AE1"><%=rschap("edate")%></td>
<td width="15%" height="20" align="center" bordercolor="#799AE1"><%
sqlti1="select * from tbtk where kcid="&kcid&" and chapter="&rschap("chapter")
set rsti1=server.createobject("adodb.recordset")
rsti1.open sqlti1,conn,3,2
if rsti1.eof then
response.write "0"
else
response.write rsti1.recordcount
end if
%></td>
<td width="16%" height="20" align="center" bordercolor="#799AE1">
<a href="javascript:chapter(<%=rschap("chapter")%>,<%=kcid%>)">
<img border="0" src="images/EDIT_2.GIF"></a></td>
<td width="6%" height="20" align="center" bordercolor="#799AE1">
<input type="checkbox" name="id1" value="<%=rschap("chapter")%>" <%if rschap("testopen")="1" then%> checked <%end if%>></td>
</tr>
<%rschap.movenext
loop%>
</table>
</td>
</tr>
<tr>
<td width="100%" height="25" bgcolor="#FFFDE8" bordercolor="#799AE1">
<p align="center">
<input name="kcid" type="hidden" size="40" value="<%=kcid%>">
<input type="submit" value="刷 新" name="B1" class="s02"><span lang="en-us">
</span>
<input type="button" value="关闭窗口" name="B2" onclick="self.close()" class="s02"></td>
</tr><br>
</table>
</center>
</div></form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -