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

📄 admin_cx_type.asp

📁 该系统测试用户信息主要由数据库直接输入
💻 ASP
字号:
<!--#include file="conn.asp"-->
 <%
  if session("adminname")="" then
  response.redirect "relogin.asp"
  end if
  
userid=request("userid")
  sql="SELECT * from tbuser where userid="&userid
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,3,2

username=rs("username")
kcid=request("kcid")
chapter=request("chapter")
nianji=rs("nianji")
banji=rs("banji")



sql1="SELECT  distinct tbtk.category,tbkc.kcid,tbkc.kcm  ,tbtk.chapter  FROM tbkc,userdata,tbtk where username='"&username&"' and userdata.tmid=tbtk.tmid and tbtk.kcid=tbkc.kcid and tbkc.kcid="&kcid&" and chapter="&chapter&"  and kao=0 order by category"
set rs1=server.createobject("adodb.recordset")
rs1.open sql1,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 FP_swapImg() {//v1.0
 var doc=document,args=arguments,elm; for(var n=2; n<args.length; n+=2) {
  elm=FP_getObjectByID(args[n]); if(elm) { if(!doc.$imgSwaps)doc.$imgSwaps=new Array();
  doc.$imgSwaps[doc.$imgSwaps.length]=elm; elm.$src=elm.src; elm.src=args[n+1]; } }
}

function FP_preloadImgs() {//v1.0
 var d=document,a=arguments; if(!d.FP_imgs) d.FP_imgs=new Array();
 for(var i=0; i<a.length; i++) { d.FP_imgs[i]=new Image; d.FP_imgs[i].src=a[i]; }
}

function FP_getObjectByID(id,o) {//v1.0
 var c,el,els,f,m,n; if(!o)o=document; if(o.getElementById) el=o.getElementById(id);
 if(o.layers) c=o.layers; else if(o.all) el=o.all[id]; if(el) return el;
 if(o.id==id || o.name==id) return o; if(o.childNodes) c=o.childNodes; if(c)
 for(n=0; n<c.length; n++) { el=FP_getObjectByID(id,c[n]); if(el) return el; }
 f=o.forms; if(f) for(n=0; n<f.length; n++) { els=f[n].elements;
 for(m=0; m<els.length; m++){ el=FP_getObjectByID(id,els[n]); if(el) return el; } }
 return null;
}
// -->
</script>
</head>

<body> <center><b><%=nianji%>级--<%=banji%>——<%=username%></b></center>


 
<%
 



if rs1.eof then
%><table border="0" cellspacing="0" bordercolor="#111111" width="480" height="35">
  <tr>
    <td width="100%" height="33">
    <p align="center">&nbsp;现在您还没有相关的考试成绩!!!</td>
  </tr>
</table>
<%
else
i=1


%><br>
<center>
<table border="1" cellspacing="1" style="border-collapse: collapse" bordercolor="#799AE1" id="AutoNumber2" width="100%" height="51">
  <tr class="trh">
    <td height="22" width="45" bgcolor="#799AE1"></td>
    <td bgcolor="#799AE1" width="245">
    <p align="center"><font color="#FFFFFF"><b><%=rs1("kcm")%>-第<%=rs1("chapter")%>章</b></font></td>
    <td bgcolor="#799AE1" width="182">
    <p align="center"><font color="#FFFFFF"><b>操作</b></font></td>
  </tr>
 <%
 
 do while not rs1.eof
 %>
  <tr class="trh1">
    <td align="center" height="27" width="45"  ><%=i%></td>
    <td  width="245">
    <p align="center"><% 
          if rs1("category")=1 then
    response.write "名词解释"
    end if
          if rs1("category")=2 then
    response.write "填空题"
    end if
          if rs1("category")=3 then
    response.write "判断题"
    end if
    
    if rs1("category")=4 then
    response.write "单项选择题"
    end if
    
      if rs1("category")=5 then
    response.write "多项选择题"
    end if

      if rs1("category")=6 then
    response.write "简答题"
    end if
          if rs1("category")=7 then
    response.write "论述题"
    end if
              if rs1("category")=8 then
    response.write "阅读理解"
    end if
    %></td>
    <td  width="177">
    <p align="center">
    
    <% 
          if rs1("category")=1 then
     %>
    <a href="javascript:editit1()">
    
    <%end if%>
    
        <% 
          if rs1("category")=2 then
     %>
    <a href="javascript:editit2()">
    
    <%end if%>
        <% 
          if rs1("category")=3 then
     %>
    <a href="javascript:editit3()">
    
    <%end if%>
        <% 
          if rs1("category")=4 then
     %>
    <a href="javascript:editit4()">
    
    <%end if%>
        <% 
          if rs1("category")=5 then
     %>
    <a href="javascript:editit5()">
    
    <%end if%>
        <% 
          if rs1("category")=6 then
     %>
    <a href="javascript:editit6()">
    
    <%end if%>
            <% 
          if rs1("category")=7 then
     %>
    <a href="javascript:editit7()">
    
    <%end if%>
    
     <% 
          if rs1("category")=8 then
     %>
    <a href="javascript:editit8()">
    
    <%end if%>

    
    显示成绩</a></td>
    
      <script language="javascript">
function editit1()
{ 
  page="admin_cx_test_mc.asp?kcid=<%=rs1("kcid")%>&chapter=<%=chapter%>&category=<%=rs1("category")%>&userid=<%=userid%>"
   window.open (page,'查看编辑题目','width=620,height=500,resizable=1,scrollbars=1')
}
function editit2()
{ 
  page="admin_cx_test_tk.asp?kcid=<%=rs1("kcid")%>&chapter=<%=chapter%>&category=<%=rs1("category")%>&userid=<%=userid%>"
   window.open (page,'查看编辑题目','width=620,height=500,resizable=1,scrollbars=1')
}

function editit3()
{ 
  page="admin_cx_test_pd.asp?kcid=<%=rs1("kcid")%>&chapter=<%=chapter%>&category=<%=rs1("category")%>&userid=<%=userid%>"
   window.open (page,'查看编辑题目','width=620,height=500,resizable=1,scrollbars=1')
}
function editit4()
{ 
  page="admin_cx_test_danx.asp?kcid=<%=rs1("kcid")%>&chapter=<%=chapter%>&category=<%=rs1("category")%>&userid=<%=userid%>"
   window.open (page,'查看编辑题目','width=620,height=500,resizable=1,scrollbars=1')
}
function editit5()
{ 
  page="admin_cx_test_duox.asp?kcid=<%=rs1("kcid")%>&chapter=<%=chapter%>&category=<%=rs1("category")%>&userid=<%=userid%>"
   window.open (page,'查看编辑题目','width=620,height=500,resizable=1,scrollbars=1')
}
function editit6()
{ 
  page="admin_cx_test_wd.asp?kcid=<%=rs1("kcid")%>&chapter=<%=chapter%>&category=<%=rs1("category")%>&userid=<%=userid%>"
   window.open (page,'查看编辑题目','width=620,height=500,resizable=1,scrollbars=1')
}
function editit7()
{ 
  page="admin_cx_test_ls.asp?kcid=<%=rs1("kcid")%>&chapter=<%=chapter%>&category=<%=rs1("category")%>&userid=<%=userid%>"
   window.open (page,'查看编辑题目','width=620,height=500,resizable=1,scrollbars=1')
}
function editit8()
{ 
  page="admin_cx_test_yued.asp?kcid=<%=rs1("kcid")%>&chapter=<%=chapter%>&category=<%=rs1("category")%>&userid=<%=userid%>"
   window.open (page,'查看编辑题目','width=620,height=500,resizable=1,scrollbars=1')
}
    </script>
    
    
  </tr>
  <%

rs1.movenext
i=i+1
loop


end if
%>
</table>
 </center>

<p align="center">  <INPUT  class="s02" onclick="window.location='adminscorechapter.asp?kcid=<%=kcid%>&userid=<%=userid%>'" type=button value=返回 name=close><span lang="en-us">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>
<img border="0" id="img1" src="images/button2.gif" height="19" width="95" alt="关闭窗口"   onmouseover="FP_swapImg(1,0,/*id*/'img1',/*url*/'images/button4.gif')" onmouseout="FP_swapImg(1,0,/*id*/'img1',/*url*/'images/button2.gif')" onmousedown="FP_swapImg(1,0,/*id*/'img1',/*url*/'images/button6.gif')" onmouseup="self.close()" fp-style="fp-btn: Embossed Rectangle 1; fp-font: 宋体-方正超大字符集; fp-font-style: Bold; fp-transparent: 1; fp-orig: 0" fp-title="关闭窗口"></p>

</body>

</html>

⌨️ 快捷键说明

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