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

📄 delete.asp

📁 人事管理始终是一个及其复杂的工作。本系统对学校教职工人事档案管理尤其是对学校年报工作有着极大方便的意义。该系统是ASP程序网络版系统
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT"%> 
<!--#include file="Connections/conn.asp" -->
<%
' *** Restrict Access To Page: Grant or deny access to this page
MM_authorizedUsers="2"
MM_authFailedURL="admin/accessfail.asp"
MM_grantAccess=false
If Session("MM_Username") <> "" Then
  If (false Or CStr(Session("MM_UserAuthorization"))="") Or _
         (InStr(1,MM_authorizedUsers,Session("MM_UserAuthorization"))>=1) Then
    MM_grantAccess = true
  End If
End If
If Not MM_grantAccess Then
  MM_qsChar = "?"
  If (InStr(1,MM_authFailedURL,"?") >= 1) Then MM_qsChar = "&"
  MM_referrer = Request.ServerVariables("URL")
  if (Len(Request.QueryString()) > 0) Then MM_referrer = MM_referrer & "?" & Request.QueryString()
  MM_authFailedURL = MM_authFailedURL & MM_qsChar & "accessdenied=" & Server.URLEncode(MM_referrer)
  Response.Redirect(MM_authFailedURL)
End If
%>
<%
' *** Edit Operations: declare variables

MM_editAction = CStr(Request("URL"))
If (Request.QueryString <> "") Then
  MM_editAction = MM_editAction & "?" & Request.QueryString
End If

' boolean to abort record edit
MM_abortEdit = false

' query string to execute
MM_editQuery = ""
%>
<%
' *** Delete Record: declare variables

if (CStr(Request("MM_delete")) <> "" And CStr(Request("MM_recordId")) <> "") Then

  MM_editConnection = MM_conn_STRING
  MM_editTable = "jg"
  MM_editColumn = "ID"
  MM_recordId = "" + Request.Form("MM_recordId") + ""
  MM_editRedirectUrl = "ok.asp"

  ' append the query string to the redirect URL
  If (MM_editRedirectUrl <> "" And Request.QueryString <> "") Then
    If (InStr(1, MM_editRedirectUrl, "?", vbTextCompare) = 0 And Request.QueryString <> "") Then
      MM_editRedirectUrl = MM_editRedirectUrl & "?" & Request.QueryString
    Else
      MM_editRedirectUrl = MM_editRedirectUrl & "&" & Request.QueryString
    End If
  End If
  
End If
%>
<%
' *** Delete Record: construct a sql delete statement and execute it

If (CStr(Request("MM_delete")) <> "" And CStr(Request("MM_recordId")) <> "") Then

  ' create the sql delete statement
  MM_editQuery = "delete from " & MM_editTable & " where " & MM_editColumn & " = " & MM_recordId

  If (Not MM_abortEdit) Then
    ' execute the delete
    Set MM_editCmd = Server.CreateObject("ADODB.Command")
    MM_editCmd.ActiveConnection = MM_editConnection
    MM_editCmd.CommandText = MM_editQuery
    MM_editCmd.Execute
    MM_editCmd.ActiveConnection.Close

    If (MM_editRedirectUrl <> "") Then
      Response.Redirect(MM_editRedirectUrl)
    End If
  End If

End If
%>
<%
Dim Rsjg__MMColParam
Rsjg__MMColParam = "1"
if (Request.QueryString("ID") <> "") then Rsjg__MMColParam = Request.QueryString("ID")
%>
<%
set Rsjg = Server.CreateObject("ADODB.Recordset")
Rsjg.ActiveConnection = MM_conn_STRING
Rsjg.Source = "SELECT *  FROM jg  WHERE ID = " + Replace(Rsjg__MMColParam, "'", "''") + ""
Rsjg.CursorType = 0
Rsjg.CursorLocation = 2
Rsjg.LockType = 3
Rsjg.Open()
Rsjg_numRows = 0
%>
<html>
<head>
<title>轻燕工作室中学人事管理系统-删除教师所有信息</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="files/cssresult.css" type="text/css">
</head>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" background="files/bg.jpg">
<p align="center"><font color="#FF0000"><b><font color="#FF0000"><b><font color="#FF0000"><b><font color="#0000FF"><span class="cssresult"><img src="admin/top.gif" width="777" height="106" usemap="#Map" border="0" align="middle"></span></font></b></font></b></font><font color="#FF0000"><b><font color="#FF0000"><b><font color="#0000FF"><span class="cssresult"> 
  <map name="Map"> 
    <area shape="rect" coords="7,79,59,104" href="index1.asp" target="_self">
    <area shape="rect" coords="62,79,113,106" href="search.asp" target="_self">
    <area shape="rect" coords="116,78,208,103" href="add.asp" target="_self">
    <area shape="rect" coords="307,76,359,106" href="admin/admuserlogin.asp" target="_self">
    <area shape="rect" coords="696,76,748,104" href="admin/loginout.asp" target="_self">
    <area shape="rect" coords="639,76,693,102" href="index.asp" target="_self">
    <area shape="rect" coords="212,78,303,103" href="view.asp" target="_self">
    <area shape="rect" coords="691,11,762,36" href="help.htm" target="_blank">
  </map>
  </span></font></b></font></b></font><font color="#0000FF"><span class="cssresult"></span></font></b></font><font color="#FF0000"><b><font color="#0000FF"><span class="cssresult"><font color="#FF0000"> 
  </font></span></font></b></font><font color="#0000FF"><b><font color="#660000"><br>
  <br>
  您的确要删除</font> </b></font><b><font color="#FF0000">[</font><font color="#FF0000"><%=Rsjg("name")%>]<font color="#0000FF"> <font color="#663300">老师的全部信息吗?</font></font></font></b></p>
<form name="form1" method="POST" action="<%=MM_editAction%>">
  <table width="777" border="1" cellspacing="0" cellpadding="0" align="center" class="cssresult">
    <tr> 
      <td width="6%"><font color="#0000FF">姓名</font></td>
      <td width="17%"><font color="#FF0000"><b><%=Rsjg("name")%> </b></font></td>
      <td width="18%"><font color="#0000FF">第一学历</font></td>
      <td width="25%"><%=Rsjg("firstxueli")%></td>
      <td width="13%"><font color="#0000FF">任教学科</font></td>
      <td width="21%" colspan="2"><%=Rsjg("xueke")%> </td>
    </tr>
    <tr> 
      <td width="6%"><font color="#0000FF">出生</font></td>
      <td width="17%"><%=Rsjg("birthday")%> </td>
      <td width="18%"><font color="#0000FF">第一学历毕业学校</font></td>
      <td width="25%"><%=Rsjg("firstxlgradufrom")%></td>
      <td width="13%"><font color="#0000FF">政治面貌</font></td>
      <td width="21%" colspan="2"><%=Rsjg("mianmao")%> </td>
    </tr>
    <tr> 
      <td width="6%"><font color="#0000FF">年龄</font></td>
      <td width="17%"><%=Rsjg("age")%> </td>
      <td width="18%"><font color="#0000FF">第一学历毕业时间 </font></td>
      <td width="25%"><%=Rsjg("firstxuelidate")%></td>
      <td width="13%"><font color="#0000FF">入团或党时间</font></td>
      <td width="21%" colspan="2"><%=Rsjg("mianmaotime")%> </td>
    </tr>
    <tr> 
      <td width="6%"><font color="#0000FF">性别</font></td>
      <td width="17%"><%=Rsjg("sex")%> </td>
      <td width="18%"><font color="#0000FF">最后学历</font></td>
      <td width="25%"><%=Rsjg("lastxueli")%></td>
      <td width="13%"><font color="#0000FF">开始工作时间</font></td>
      <td width="21%" colspan="2"><%=Rsjg("workstart")%> </td>
    </tr>
    <tr> 
      <td width="6%"><font color="#0000FF">民族</font></td>
      <td width="17%"><%=Rsjg("mingzu")%> </td>
      <td width="18%"><font color="#0000FF">最后学历毕业学校 </font></td>
      <td width="25%"><%=Rsjg("lastxlgradufrom")%></td>
      <td width="13%"><font color="#0000FF">身份证号</font></td>
      <td width="21%" colspan="2"><%=Rsjg("shenfenzheng")%> </td>
    </tr>
    <tr> 
      <td width="6%" height="21"><font color="#0000FF">籍贯</font></td>
      <td width="17%" height="21"><%=Rsjg("jiguan")%> </td>
      <td width="18%"><font color="#0000FF">最后学历毕业时间 </font></td>
      <td width="25%" height="21"><%=Rsjg("lastxldate")%></td>
      <td width="13%" height="21"><font color="#0000FF">是否人事代理</font></td>
      <td width="21%" height="21" colspan="2"><%=Rsjg("renshidaili")%> </td>
    </tr>
    <tr> 
      <td width="6%"><font color="#0000FF">专业</font></td>
      <td width="17%"><%=Rsjg("zhuanye")%> </td>
      <td width="18%"><font color="#0000FF">职称 </font></td>
      <td width="25%"><%=Rsjg("zhicheng")%></td>
      <td width="13%"><font color="#0000FF">联系电话</font></td>
      <td width="21%" colspan="2"><%=Rsjg("phone")%> </td>
    </tr>
    <tr> 
      <td width="6%"><font color="#0000FF">分类</font></td>
      <td width="17%"><%=Rsjg("leibie")%> </td>
      <td width="18%"><font color="#0000FF">取得职称时间</font></td>
      <td width="25%"><%=Rsjg("zhichengdate")%></td>
      <td width="13%"><font color="#0000FF">职务</font></td>
      <td width="21%" colspan="2"><%=Rsjg("zhiwu")%> </td>
    </tr>
    <tr> 
      <td width="6%"><font color="#0000FF">工龄</font></td>
      <td width="17%"><%=Rsjg("workage")%> </td>
      <td width="18%"><font color="#0000FF">取得职称受聘时间 </font></td>
      <td width="25%"><%=Rsjg("zhichpingyongdate")%></td>
      <td width="13%"><font color="#0000FF">任教部门</font></td>
      <td width="21%" colspan="2"><%=Rsjg("renjiaobumen")%></td>
    </tr>
    <tr> 
      <td width="6%"><font color="#0000FF">编制</font></td>
      <td width="17%"><%=Rsjg("bianzhi")%></td>
      <td width="18%">&nbsp;</td>
      <td width="25%">&nbsp;</td>
      <td width="13%">&nbsp;</td>
      <td width="21%" colspan="2">&nbsp;</td>
    </tr>
    <tr> 
      <td width="6%"><font color="#0000FF">编别</font></td>
      <td width="17%"><%=Rsjg("bianzhileibie")%></td>
      <td width="18%">&nbsp;</td>
      <td width="25%">&nbsp;</td>
      <td width="13%">&nbsp;</td>
      <td width="21%" colspan="2">&nbsp;</td>
    </tr>
    <tr bgcolor="#FFCCCC"> 
      <td width="6%" bgcolor="#66CC33"><font color="#0000FF">备注</font></td>
      <td colspan="6" bgcolor="#66CC33"><%=Rsjg("beizhu")%></td>
    </tr>
  </table>
  <div align="center">
<input type="submit" name="Submit" value="我要删除">
    <input type="hidden" name="MM_delete" value="true">
    <input type="hidden" name="MM_recordId" value="<%= Rsjg.Fields.Item("ID").Value %>">
  </div>
</form>
<p align="center">&nbsp;</p>
</body>
</html>
<%
Rsjg.Close()
%>

⌨️ 快捷键说明

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