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

📄 result.asp

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

Set objConn = Server.CreateObject ("ADODB.Connection")
  strConnection = "Data Source = ksxt;"
  strConnection = strConnection & "User ID =lili;Password=;" 
objConn.Open strConnection
Set objRS = Server.CreateObject ("ADODB.Recordset")
Set objRS.ActiveConnection = objConn

 strQ="Select * from ItemTable where ItemID="&Request.QueryString("id")
 objRS.Open strQ
 %>
<html>
<style>
  .bodyStyle {font-family: "Verdana", "Arial";
              font-size: 10pt;
              color:  #00309c}

  .bodyStyle2 {font: 10pt "Verdana", "Arial";
               margin-left:12pt;
              background-image:  url(../djst/share/blue_gradient.jpg);
              background-attachment: fixed;
              color:  #00309c;
              width:532px}

  A:HOVER {
           text-decoration: none }

  A:LINK { text-decoration: none }

  A:ACTIVE { 
             text-decoration: none }

  A:VISITED { text-decoration: none }

  TABLE   {margin-right: 20pt;
           font-size: 10pt;
           font-family: "Verdana", "Arial"}

  .active  {font-weight: bold;
            color: #00309c}
  .active2 {font-weight: bold;
            color: #405040}
  .visited {font-weight: normal;
            color: #405040 }

  .1      {margin-left: 0pt}
  .2      {margin-left: 16pt;
           width: 100pt}
  .3      {margin-left: 32pt;
           width: 90pt}
  .4      {margin-left: 45pt;
           width: 50pt}

</style>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312">


<body class=bodyStyle2 bgcolor=#FFFFCC>
<form method="post"name=form1 action="./modcl.asp" ENCTYPE="multipart/form-data" >
  
<table width="100%" border="0" bgcolor="#FF9999">
    <tr bgcolor="#FF9999"> 
      <td nowrap height="25"> 
      <% select Case trim(objRS("Itemtype"))
       Case 1:typename1="单项选择题:"
       Case 2:typename1="多项选择题:"
       Case 3:typename1="填空题:"
       Case 4:typename1="判断题:"
       Case 5:typename1="分析题:"
       end select
       %>
        <h1> <font size="2" color="#3333FF"><%=typename1%>(注意:黑体字项必须填写)</font></h1>
      </td>
  </tr>
</table>
  <table border=1 align="center" bordercolor=#ffffff bordercolorlight=#000000 cellspacing=0 width="766">
    <tr> 
      <td width="136" align="right" nowrap height="34"><font color="#FF3333">知 
        识 点:</font></td>
      <td width="161" nowrap height="34"> <%=objRS("KnowLedgeObject")%> </td>
      <td width="108" nowrap height="34"> 
        <p align="right"><font color="#FF0000"><a href="../Selknowledge.asp?tx=1"><font color="#0000FF">多知识点选择</font></a></font> 
      </td>
      <td width="63" align="right" height="34" nowrap> 
        <div align="center">用途: </div>
      </td>
      <td width="92" align="right" nowrap height="34"> 
        <select name="WorkType" size='1' style='width: 80; height: 23; position: relative'>" 
          
          <option value="Test" selected>用于考试</option>
          <option value="Work">用于作业</option>
          <option value="All">作业和考试</option>
        </select>
      </td>
      <td width="180" height="34"> 
        <input type="hidden" name="KID" size="4" >
      
    </tr>
    <tr> 
      <td width="136" align="right" nowrap> 
        <div align="right"><b>难 度:</b></div>
      </td>
      <td colspan="5"> 
       <%if( trim(objRS("Difficulty"))=0.9) then%>
       <input type="radio" value="0.9" name="nd" checked 
      id=nd>
        <%else %>
        <input type="radio" value="0.9" name="nd" 
        id=nd>
        <%end if%>
        难:1-0.8;
        <%if(trim(objRS("Difficulty"))=0.7) then%>  
        <input type="radio" value="0.7" name="nd"  checked
      id=nd> 
        <%else %>
        <input type="radio" value="0.7" name="nd" 
        id=nd>
        <%end if%>
       
        较难:0.8-0.6;
         <%if(trim(objRS("Difficulty"))=0.5) then%> 
        <input type="radio" value="0.5" name="nd" checked id=nd>
        <%else %>
        <input type="radio" value="0.5" name="nd" 
        id=nd>
        <%end if%>
        中:0.6-0.4; 
         <%if(trim(objRS("Difficulty"))=0.3) then%>  
        <input type="radio" value="0.3" name="nd" checked id=nd> 
          <%else %>
        <input type="radio" value="0.3" name="nd" 
        id=nd>
        <%end if%> 
        较易:0.4-0.2;
       <%if(trim(objRS("Difficulty"))=0.1) then%>  
        <input type="radio" value="0.1" name="nd" checked id=nd> 
        <%else %>
        <input type="radio" value="0.1" name="nd" 
        id=nd>
        <%end if%> 
        易:0.2-0</td> 
    </tr> 
    <tr>  
      <td width="136" align="right" nowrap><b>区 分 度:</b></td> 
      <td colspan="5">  
       <%if(trim(objRS("Division"))=0.9) then%>    
        <input type="radio" value="0.9" name="qfd" checked   
      id=qfd> 
       <%else %>
        <input type="radio" value="0.9" name="qfd" 
        id=qfd>
        <%end if%> 
        优:1-0.8;  
       <%if(trim(objRS("Division"))=0.7) then%>     
      <input type="radio" value="0.7" name="qfd"   checked
      id=qfd> 
         <%else %>
        <input type="radio" value="0.7" name="qfd" 
        id=qfd>
        <%end if%> 
        良:0.8-0.6;
         <%if(trim(objRS("Division"))=0.5) then%> 
        <input type="radio" value="0.5"  name="qfd" checked  
      id=qfd> 
       <%else %>
        <input type="radio" value="0.5" name="qfd" 
        id=qfd>
        <%end if%> 
        中:0.6-0.4;  
        <%if(trim(objRS("Division"))=0.3) then%> 
        <input type="radio" value="0.3" name="qfd"   checked
      id=qfd> 
        <%else %>
        <input type="radio" value="0.3" name="qfd" 
        id=qfd>
        <%end if%> 
        较差:0.4-0.2;
        <%if(trim(objRS("Division"))=0.1) then%> 
        <input type="radio" value="0.1"  name="qfd" checked id=qfd >
        <%else %>
        <input type="radio" value="0.1" name="qfd" 
        id=qfd>
        <%end if%>  
        差:0.2-0</td> 
    </tr> 
    <tr>  
      <td width="136" align="right" nowrap><b>认知分类:</b></td> 
      <td colspan="5">  
        <input type="radio" name="rzhfl" value="1" id=rzhfl checked> 
        <span style="FONT-FAMILY: 宋体; mso-bidi-font-size: 10.0pt; mso-ascii-font-family: Times New Roman; mso-hansi-font-family: Times New Roman; mso-bidi-font-family: Times New Roman; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA"><font size="3">知道,</font></span>  
        <input type="radio" name="rzhfl" value="2" id=rzhfl> 
        <span style="FONT-FAMILY: 宋体; mso-bidi-font-size: 10.0pt; mso-ascii-font-family: Times New Roman; mso-hansi-font-family: Times New Roman; mso-bidi-font-family: Times New Roman; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA"><font size="3">领会,</font></span>  
        <input type="radio" name="rzhfl" value="3" id=rzhfl> 
        <span style="FONT-FAMILY: 宋体; mso-bidi-font-size: 10.0pt; mso-ascii-font-family: Times New Roman; mso-hansi-font-family: Times New Roman; mso-bidi-font-family: Times New Roman; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA"><font size="3">运用,</font></span>  
        <input type="radio" name="rzhfl" value="4" id=rzhfl> 
        <span style="FONT-FAMILY: 宋体; mso-bidi-font-size: 10.0pt; mso-ascii-font-family: Times New Roman; mso-hansi-font-family: Times New Roman; mso-bidi-font-family: Times New Roman; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA"><font size="3">分析,</font></span>  
        <input type="radio" name="rzhfl" value="5" id=rzhfl> 
        <span style="FONT-FAMILY: 宋体; mso-bidi-font-size: 10.0pt; mso-ascii-font-family: Times New Roman; mso-hansi-font-family: Times New Roman; mso-bidi-font-family: Times New Roman; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA"><font size="3">综合,</font></span>  
        <input type="radio" name="rzhfl" value="6" id=rzhfl> 
        <span style="FONT-FAMILY: 宋体; mso-bidi-font-size: 10.0pt; mso-ascii-font-family: Times New Roman; mso-hansi-font-family: Times New Roman; mso-bidi-font-family: Times New Roman; mso-font-kerning: 1.0pt; mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA"><font size="3">评价</font></span></td> 
    </tr> 
    <tr>  
      <td width="136" align="right" nowrap>考试要求:</td> 
      <td colspan="5">  
        <input name="ksyq" size="87"   
     > 
      </td> 
    </tr> 
    <tr>  
      <td width="136" align="right" nowrap>评分标准:</td> 
      <td colspan="5">  
        <input name="pjbzh" size="87"   
     > 
      </td> 
    </tr> 
    <tr>  
      <td width="136" align="right" nowrap><b>建议的考试得分:</b></td> 
      <td colspan="2">  
        <input name="jyfsh" size="34" value=0  
     > 
      </td> 
      <td align="right" colspan="2" nowrap>建议的考试时间:</td> 
      <td width="180">  
        <input name="jyshj" size="20" value=0  
     > 
        秒</td> 
    </tr> 
    <tr>  
      <td width="136" align="right" nowrap><b>出 题 人:</b></td> 
      <td colspan="2">  
        <input name="chtr" size="34" value=<%=Session("Username")%>>  
     
      </td> 
      <td align="right" colspan="2" nowrap><b>出题日期:</b></td> 
      <td width="180">  
        <input name="chtrq" size="28" value=<%=date()%>  
     > 
      </td> 
    </tr> 
    <tr>  
      <td width="136" align="right" nowrap><b>审 订 人:</b></td> 
      <td colspan="2">  
        <input name="shdr" size="34" value=<%=Session("Username")%>  
     > 
      </td> 
      <th align="right" colspan="2"><b>审订日期:</b></th> 
      <td width="180">  
        <input name="shdrq" size="28" value=<%=date()%>  
     > 
      </td> 
    </tr> 
  </table> 
 <%  
   objRS.Close
   objConn.Close 
   Set objRS= Nothing
   Set objConn = Nothing
 %> 

</form>
</body>
</html>

⌨️ 快捷键说明

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