?? deletetouchman.asp
字號(hào):
<%
%>
<!--#include file='../conn.asp'-->
<!--#include file='../IsUser.asp'-->
<%
TouchManID = request("TouchManID")
BackID = request("backid")
if TouchManID <> "" then
set rs=conn.execute("select * from TouchMan where TouchManID="&TouchManID)
if rs.bof or rs.eof then
response.write "<script language=javascript>"
response.write"alert('該客戶聯(lián)系人不存在!');"
response.write"location.href='TouchMan.asp';"
response.write "</script>"
response.end
end if
NewTouchManID = rs("TouchManID")
CreatorID =rs("TouchManCreatorID")
if CreatorID <> User_ID then
response.write "<script language=javascript>"
response.write"alert('你不能刪除該聯(lián)系人資料!');"
response.write"location.href='TouchMan.asp?TouchManID="& TouchManID &"';"
response.write "</script>"
response.end
end if
rs.close
set rs=nothing
conn.execute("delete from TouchMan where TouchManID="& TouchManID) '刪除記錄
%>
<html>
<head>
<title>刪除聯(lián)系人</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"><META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<LINK
href="../css.css" type=text/css rel=stylesheet>
</head>
<body>
<br>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align=center>
<tr>
<td width="100%" height="197" align="center">
<table border="0" cellspacing="0" cellpadding="0" height="85" bgcolor="#99ccff" width="100%">
<tr>
<td align="center">
<%if BackID<>"" then%>
<a href="TouchMan.asp?TouchManID=<%=BackID%>" class=linkblue2>已刪除該聯(lián)系人記錄</a>
<%else%>
<a href="TouchMan.asp" class=linkblue2>已刪除該聯(lián)系人記錄</a>
<%end if%>
<%
response.write "<script>"
if BackID<>"" then
response.write "setTimeout("&Chr(34)&"location.replace('TouchMan.asp?TouchManID="&BackID&"')"&Chr(34)&",2000)"
else
response.write "setTimeout("&Chr(34)&"location.replace('TouchMan.asp')"&Chr(34)&",2000)"
end if
response.write "</script>"
%>
</td>
</tr>
</table>
</td>
</tr>
</table>
<p>
</body>
</html>
<%
else
response.write "<script language=javascript>"
response.write"alert('訪問方式錯(cuò)誤!');"
response.write"location.href='/index.asp';"
response.write "</script>"
response.end
end if
%>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -