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

📄 statusmod.asp

📁 这是用asp做的一个网上考试题库系统
💻 ASP
字号:
<%
  if request("back")<>"" then
     response.redirect "../teacherroom.asp"
  end if   
   Set objConn = Server.CreateObject ("ADODB.Connection")
   strConnection = "Data Source = ks;"
   strConnection = strConnection & "User ID =lili;Password=;"
   objConn.Open strConnection
   set objRS = CreateObject("ADODB.Recordset") 

      for i=1 to Request("mark").count
          sql="Select Status from TestPaper where PaperID="&request("mark")(i)
          objRS.open sql,objConn,2,3
          status=objRS("Status") 
         if request("lock")<>"" then
            if status=0 then
                objRS("Status")=1
            end if
            if status=2 then
                  objRS("Status")=3
            end if
         end if  
         if request("unlock")<>"" then
            if status=1 then
                objRS("Status")=0
            elseif status=3 then
                  objRS("Status")=2
            end if
         end if
          if request("visible")<>"" then
            if status=0 then
                objRS("Status")=2
            elseif status=1 then
                  objRS("Status")=3
            end if
         end if
          if request("invisible")<>"" then
            if status=2 then
                objRS("Status")=0
            elseif status=3 then
                  objRS("Status")=1
            end if
         end if
         objRS.Update
         objRS.Close
        next                            
      response.redirect ("Paperwh.asp")
%>

⌨️ 快捷键说明

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