⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 teacher.asp

📁 在线考试系统
💻 ASP
字号:
<?xml version="1.0" encoding="gb2312"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>教师---------在线考试系统后台管理程序</title>
<script language="javascript">
function category(id){
if(document.getElementById(id).style.display=="none")
	{
	 document.getElementById(id).style.display="block";
	 document.getElementById("categorytext").innerText="隐藏科目列表";
	}
	else
	{
	document.getElementById(id).style.display="none";
	document.getElementById("categorytext").innerText="显示科目列表";
	}
}

function typeshow(id){
if(document.getElementById(id).style.display=="none")
	{document.getElementById(id).style.display="block";	}
	else
	{	document.getElementById(id).style.display="none";	}
}
</script>
<!---#include file="conn.asp"--->
<link href="main.css" rel="stylesheet" type="text/css">
</head>

<body topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="1">
  <tr bgcolor="#0096CE"> 
    <td height="60" colspan="2"> 
      <h3 align="center">在线考试系统后台管理程序</h3></td>
  </tr>
  <tr> 
    <td width="140"><table width="100%" height="100%" border="1" align="center" cellpadding="1" cellspacing="0" bordercolor="#CCCCCC" bordercolorlight="#000000" bordercolordark="#ffffff" bgcolor="#0096CE">
        <tr> 
          <td align="center" valign="middle"> <a href="#" onclick="category('categorylist');"> 
            <div id="categorytext">隐藏科目列表</div>
            </a> <table id="categorylist" width="120" border="0" cellspacing="3" cellpadding="1" align="center">
              <%
			set rst=conn.execute("select * from category")
			while not rst.eof
			%>
              <tr> 
                <td width="110" align="left">+<a href="#" onclick="typeshow('<%=rst("id")%>')"><%=rst("name")%></a></td>
              </tr>
              <tr id="<%=rst("id")%>" style="display:none"> 
                <td align="center"   > <table width="120" border="0" cellspacing="0" cellpadding="0">
                    <tr> 
                      <td align="left">&nbsp;<a href="TKTianKong.asp?categoryname=<%=rst("name")%>&categoryid=<%=rst("id")%>" target="context">|填空题</a></td>
                    </tr>
                    <tr> 
                      <td align="left">&nbsp;<a href="TKPanDuan.asp?categoryname=<%=rst("name")%>&categoryid=<%=rst("id")%>" target="context">|判断题</a></td>
                    </tr>
                    <tr> 
                      <td align="left">&nbsp;<a href="TKDanXuan.asp?categoryname=<%=rst("name")%>&categoryid=<%=rst("id")%>" target="context">|单选题</a></td>
                    </tr>
                    <tr> 
                      <td align="left">&nbsp;<a href="TKJianDa.asp?categoryname=<%=rst("name")%>&categoryid=<%=rst("id")%>" target="context">|简答题</a></td>
                    </tr>
                  </table></td>
              </tr>
              <%			
			rst.movenext
			wend
			%>
            </table></td>
        </tr>
        <tr> 
          <td align="center"><br /> <a href="AssembleTestPaper.asp" target="context">组卷管理</a> 
            <br /> </td>
        </tr>
        <tr> 
          <td align="center"> <a href="#" onclick="typeshow('checktestpaper')">阅卷管理 
            </a><br /> <table id="checktestpaper" border="0" cellpadding="3" cellspacing="1" style="display:none">
              <%
			  set rst=conn.execute("select distinct TestPaperName from StuTestPaper ")
			  if(rst.eof) then 
			  response.Write("暂无学生试卷!")
			  else
			  while not rst.eof
			  response.write(" <tr align='left'><td><a href='CheckTestPaperList.asp?TestPaperName="&rst("TestPaperName")&"' target='context'>"&rst("TestPaperName")&"</a></td></tr>")
			  rst.movenext
			  wend
	
			  end if
			  %>
            </table></td>
        </tr>
        <tr> 
          <td align="center"> </td>
        </tr>
        <tr> 
          <td align="center"><br /> <a href="TestPaperList.asp" target="context">查看现有试卷</a> 
            <br /> <br /></td>
        </tr>
        <tr> 
          <td align="center"> <div> <a href="#"  onclick="typeshow('BrowseTestScore')">查看考试分数</a></div>
            <table id="BrowseTestScore" style="display:none">
              <%
			 set rst=conn.execute("select TestPaperName from StuTestPaper group by TestPaperName")
			 while not rst.eof
			%>
              <tr> 
                <td><a href="BrowseTestScore.asp?TestPaperName=<%=rst("TestPaperName")%>" target="context"><%=rst("TestPaperName")%></a></td>
              </tr>
              <%
			 rst.movenext
			 wend 
			 		    rst.close()
  conn.close()
  set rst=nothing
  set conn=nothing
			 %>
            </table></td>
        </tr>
        <tr> 
          <td align="center"><br /> <a href="Login.asp?oper=exit" onclick="return confirm('确定要注销吗?');" >注销</a> 
            <br /></td>
        </tr>
      </table></td>
    <td><iframe src="TestPaper.asp" name="context" id="context"  frameborder="0" height="100%" width="100%"  ></iframe></td>
  </tr>
</table></body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -