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

📄 testdelconfirm.asp

📁 一篇不错的好论文
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT"%> 
<!--#include file="Connections/StudentConn.asp" -->
<!--#include file="CheckLogin.asp"-->
<%
Dim Recordset1__MMColParam
Recordset1__MMColParam = "1"
if (Request.QueryString("id") <> "") then Recordset1__MMColParam = Request.QueryString("id")
%>
<%
set Recordset1 = Server.CreateObject("ADODB.Recordset")
Recordset1.ActiveConnection = MM_StudentConn_STRING
Recordset1.Source = "SELECT * FROM TestName WHERE id = " + Replace(Recordset1__MMColParam, "'", "''") + ""
Recordset1.CursorType = 0
Recordset1.CursorLocation = 2
Recordset1.LockType = 3
Recordset1.Open()
Recordset1_numRows = 0
%>
<%
' *** Go To Record and Move To Record: create strings for maintaining URL and Form parameters

' create the list of parameters which should not be maintained
MM_removeList = "&index="
If (MM_paramName <> "") Then MM_removeList = MM_removeList & "&" & MM_paramName & "="
MM_keepURL="":MM_keepForm="":MM_keepBoth="":MM_keepNone=""

' add the URL parameters to the MM_keepURL string
For Each Item In Request.QueryString
  NextItem = "&" & Item & "="
  If (InStr(1,MM_removeList,NextItem,1) = 0) Then
    MM_keepURL = MM_keepURL & NextItem & Server.URLencode(Request.QueryString(Item))
  End If
Next

' add the Form variables to the MM_keepForm string
For Each Item In Request.Form
  NextItem = "&" & Item & "="
  If (InStr(1,MM_removeList,NextItem,1) = 0) Then
    MM_keepForm = MM_keepForm & NextItem & Server.URLencode(Request.Form(Item))
  End If
Next

' create the Form + URL string and remove the intial '&' from each of the strings
MM_keepBoth = MM_keepURL & MM_keepForm
if (MM_keepBoth <> "") Then MM_keepBoth = Right(MM_keepBoth, Len(MM_keepBoth) - 1)
if (MM_keepURL <> "")  Then MM_keepURL  = Right(MM_keepURL, Len(MM_keepURL) - 1)
if (MM_keepForm <> "") Then MM_keepForm = Right(MM_keepForm, Len(MM_keepForm) - 1)

' a utility function used for adding additional parameters to these strings
Function MM_joinChar(firstItem)
  If (firstItem <> "") Then
    MM_joinChar = "&"
  Else
    MM_joinChar = ""
  End If
End Function
%>
<%
Dim Repeat1__numRows
Repeat1__numRows = -1
Dim Repeat1__index
Repeat1__index = 0
Recordset1_numRows = Recordset1_numRows + Repeat1__numRows
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0048)http://www.cjol.com/headhunting/addexcellent.asp -->
<HTML>
<HEAD>
<TITLE>考试管理&gt;&gt;确认删除考试信息</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2600.0" Name=GENERATOR>
<link href="home.css" rel="stylesheet" type="text/css">
</HEAD>
<BODY text=#000000 bgColor=#ffffff leftMargin=0 topMargin=0>
<!--#include file="Top.asp"-->
<TABLE cellSpacing=0 cellPadding=0 width=750 align=center border=0>
  <TBODY> 
  <TR> 
    <TD vAlign=top width=46 background=images/p_left_2.gif></TD>
      <TD height="200" width="20" align="center">&nbsp;</TD>
    <TD height="200" width="588"><table border="0" cellspacing="0" cellpadding="0">
          <tr> 
            <td width="150" height="30"><img src="images/friendsite.GIF" width="19" height="19"><a href="TestManage.asp">考试管理</a></td>
            <td width="150" height="30"><img src="images/friendsite.GIF" width="19" height="19"><a href="SubjectManage.asp">考试科目管理</a></td>
          </tr>
        </table>
        <br>
        <strong><font size="3">考试管理--&gt;删除考试确认 </font></strong> 
        <% If Not Recordset1.EOF Or Not Recordset1.BOF Then %>
      <br>
      <br>
      <font color="#FF0000"><b>警告:<br>
      &nbsp;&nbsp;&nbsp;&nbsp;一日删除此考试信息,则此考试中的所有记录也将同时被删除!<br>
      <br>
      确定要删除此考试吗?<br>
      </b></font><br>
      <table width="300" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td height="25" align="right">考试名称: </td>
          <td height="25"><%=(Recordset1.Fields.Item("TestName").Value)%></td>
        </tr>
        <tr> 
          <td height="25" align="right">数据库对应的表名:</td>
          <td height="25"><%=(Recordset1.Fields.Item("SheetName").Value)%></td>
        </tr>
        <tr align="center"> 
            <td height="25" colspan="2"> <A HREF="TestDel.asp?<%= MM_keepNone & MM_joinChar(MM_keepNone) & "id=" & Recordset1.Fields.Item("id").Value & "&SheetName=" & Recordset1.Fields.Item("SheetName").Value %>">【确认删除考试】</A>&nbsp;&nbsp;&nbsp;&nbsp;<a href="TestManage.asp">【不删除,返回管理页面】</a></td>
        </tr>
      </table>
      <br>
      <% End If ' end Not Recordset1.EOF Or NOT Recordset1.BOF %>
      <% If Recordset1.EOF And Recordset1.BOF Then %>
      <p align="center"><br>
        <br>
        找不到任何考试,请添加考试!<br>
        <br>
      </p>
      <% End If ' end Recordset1.EOF And Recordset1.BOF %>
    </TD>
  </TR>
  </TBODY> 
</TABLE>
<!--#include file="CopyRight.asp"-->
</BODY>
</HTML>
<%
Recordset1.Close()
%>

⌨️ 快捷键说明

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