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

📄 teacherroom.asp

📁 这是用asp做的一个网上考试题库系统
💻 ASP
字号:

 
<!--#include file="db.asp"-->
<%
Response.Expires = 0
objConn.Open strConnection
  Set objRS = Server.CreateObject ("ADODB.Recordset")
  Set objRS.ActiveConnection = objConn
  strQuery ="Select CourseInfo.CourseID as CourseID,CourseInfo.CourseName as CourseName From CourseInfo,SelectCourse where SelectCourse.UserID='"&Session("UserID")&"' and  SelectCourse.SelectCourseID=CourseInfo.CourseID"
  objRS.Open strQuery
  dim course_id_list(10),course_name_list(10),note
  note=0
  dim mark
  mark=Request.QueryString ("course") 
  while (not objRS.EOF ) 
  course_id_list(note)=CStr(objRS("CourseID"))
  course_name_list(note)=CStr(objRS("CourseName"))
  note=note+1
  objRS.MoveNext ()
  Wend
    objRS.Close 
  objConn.Close 
  
  Set objRS= Nothing
  Set objConn = Nothing
dim note1
note1=0
%>
<html>
<script language="JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function cstxx()
{
  document.form2 .kcxxyc .value=1;
  document.form2.submit ();
}
function csjxx()
{
  document.form2 .kcxxyc .value=2;
  document.form2.submit ();
}
function stcxxx()
{
  document.form2 .kcxxyc .value=3;
  document.form2.submit ();
}
function sjcxxx()
{
  document.form2 .kcxxyc .value=4;
  document.form2.submit ();
}
function stxxxx()
{
  document.form2 .kcxxyc .value=5;
  document.form2.submit ();
}
function sjxxxx()
{
  document.form2 .kcxxyc .value=6;
  document.form2.submit ();
}
//-->
 
</script>
<body onLoad="MM_preloadImages('images/power4.gif','images/power2.gif','images/power1.gif','images/power3.gif')">
<form action="teacherroom_fl.asp" method=post name="form2" >
<table width="100%" border="0" height="400">
  <tr> 
    <td width="19%" height="18">&nbsp;</td>
    <td width="64%" height="18">&nbsp;</td>
    <td width="17%" height="18">&nbsp;</td>
  </tr>
  <tr> 
    <td width="19%" height="232"> </td>
    <td width="64%" height="232"> 
      <table width="99%" border="1" height="150">
        <tr> 
            <td height="157" width="9%"> </td>
            <td height="157" width="83%"> 
              <table width="100%" border="0" height="150">
              <tr> 
                <td height="35"> 
                  <table width="101%" border="0" height="20">
                    <tr> 
                      <td width="35%" nowrap height="20"> </td>
                      <td width="31%" nowrap height="20">请选择课程 </td>
                      <td width="34%" nowrap height="20"> </td>
                    </tr>
                  </table>
                </td>
              </tr>
              <tr> 
                <td> 
                  <table width="100%" border="0" height="80">
                    <tr> 
                      <td height="11" width="97%"> 
                        <hr width="100%" size="2">
                      </td>
                    </tr>
                    <tr> 
                      <td height="60" width="97%"> 
                         
                          <table width="100%" border="0" height="60">
                            <% while(note1<note)%> 
                            <tr> 
                              <td width="13%" height="17" nowrap> 
                                <div align="right"> 
                                  <% if note1=0 then%>
                                  <input type="radio" name="course" checked value=<%=course_id_list(note1)%>>
                                  <%else%> 
                                  <input type="radio" name="course"  value=<%=course_id_list(note1)%>>
                                  <%end if%> </div>
                              </td>
                              <td width="5%" height="17" nowrap>&nbsp;</td>
                              <td width="65%" height="17"><%=course_name_list(note1)%></td>
                              <td width="17%" height="17">&nbsp;</td>
                            </tr>
                            <%note1=note1+1
                           Wend%> 
                          </table>
                        
                          <table width="100%" border="0">
                            <tr> 
                              <td width="81%"> 
                                <input type="hidden" name="kcxxyc" value="0">
                              </td>
                              <td width="19%">&nbsp; </td>
                            </tr>
                          </table>
                        </td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>
          </td>
            <td height="157" width="8%"> </td>
        </tr>
      </table>
    </td>
    <td height="232" width="17%"> </td>
  </tr>
  <tr> 
    <td width="19%" height="99"> </td>
    <td width="64%" height="99"> 
      <table width="100%" border="0">
        <tr> 
            <td height="72" width="18%"> <a href="JavaScript:cstxx()" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image2','','images/power4.gif',1)"><img name="Image2" border="0" src="images/power3.gif" width="71" height="66"></a> 
            </td>
            <td height="72" width="17%"><a href="JavaScript:csjxx()" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image3','','images/power2.gif',1)"><img name="Image3" border="0" src="images/power1.gif" width="71" height="59"></a></td>
            <td height="72" width="16%"><a href="JavaScript:stcxxx()" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image4','','images/power4.gif',1)"><img name="Image4" border="0" src="images/power2.gif" width="71" height="64"></a></td>
            <td height="72" width="16%"><a href="JavaScript:sjcxxx()" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image5','','images/power1.gif',1)"><img name="Image5" border="0" src="images/power4.gif" width="71" height="65"></a></td>
            <td height="72" width="17%"><a href="JavaScript:stxxxx()" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image6','','images/power4.gif',1)"><img name="Image6" border="0" src="images/power2.gif" width="71" height="64"></a></td>
            <td height="72" width="16%"><a href="JavaScript:sjxxxx()" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image7','','images/power3.gif',1)"><img name="Image7" border="0" src="images/power1.gif" width="71" height="59"></a></td>
        </tr>
        <tr> 
          <td height="38" width="18%"> 
            <div align="center">出试题</div>
          </td>
          <td height="38" width="17%"> 
            <div align="center">出试卷 </div>
          </td>
          <td height="38" width="16%"> 
            <div align="center">试题查询维护</div>
          </td>
          <td height="38" width="16%"> 
            <div align="center">试卷查询维护</div>
          </td>
            <td height="38" width="17%"> 
              <div align="center">试题信息查询</div>
          </td>
            <td height="38" width="16%"> 
              <div align="center">试卷信息查询</div>
          </td>
        </tr>
      </table>
    </td>
    <td height="99" width="17%"> </td>
  </tr>
  <tr>
    <td width="19%" height="10">&nbsp;</td>
    <td width="64%" height="10">&nbsp;</td>
    <td height="100" width="17%"> </td>
  </tr>

</table>

 </form>  
    <td width="20%" height="20">&nbsp;</td>
  
  <tr>
    <td width="19%">&nbsp;</td>
    <td width="61%">&nbsp;</td>
    <td width="20%">&nbsp;</td>
  </tr>

</html>

⌨️ 快捷键说明

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