?? tj_save_del.asp
字號(hào):
<%@ CODEPAGE = "936" %>
<%
'=================================
'
' 阿江酷站訪問統(tǒng)計(jì)系統(tǒng)
' Ajiang info@ajiang.net
' www.ajiang.net
'
' 版權(quán)所有·抄襲挪用必究
'
'=================================
%>
<!--#include file="inc_config.asp"-->
<%
'權(quán)限檢查
if session.Contents("master")=false and whatcan< 6 then Response.Redirect "help.asp?id=004&error=您沒有管理自定義統(tǒng)計(jì)檢索條件庫(kù)的權(quán)限。"
'獲取數(shù)據(jù)
id =trim(Request("id"))
isok =trim(Request("isok"))
if isok="" then isok=0
isok=cbool(isok)
'檢查數(shù)據(jù)
if id="" then Response.Redirect "help.asp?id=003&error=請(qǐng)指明您要?jiǎng)h除哪條記錄。"
'打開數(shù)據(jù)庫(kù)
set conn=server.createobject("adodb.connection")
DBPath = Server.MapPath(connpath)
conn.Open "driver={Microsoft Access Driver (*.mdb)};dbq=" & DBPath
Set rs = Server.CreateObject("ADODB.Recordset")
sql="select * from save where id=" & id
rs.Open sql,conn,3,2
if rs.EOF then
rs.Close
set rs=nothing
conn.Close
set conn=nothing
Response.Redirect "help.asp?id=003&error=您要?jiǎng)h除的記錄并不存在。"
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Copyright" content="Ajiang http://www.ajiang.net">
<title><%=countname%>-刪除自定義統(tǒng)計(jì)的檢索條件</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body topmargin=5 rightmargin=0 leftmargin=0 vlink=#000000>
<!--#include file="inc_top.asp"-->
<br>
<%
if isok=false then
%>
<table width="500" cellspacing="0" align="center" cellpadding="0" border="0">
<tr><td colspan="3"><img src="images/photoup.gif"></td></tr>
<form action="tj_save_del.asp" method=post id=form1 name=form1>
<tr height="30">
<td width="1" class="backs"><img src="images/touming.gif" width="1" height="1"></td>
<td width="498"class="backq">
<img src="images/tb_save.gif" align=absmiddle><font style="font-size:16px"> </font>∷∷∷ 刪除檢索條件 ∷∷∷<br>
<p class="p1"><img src='images/tb_error.gif' align=absmiddle><font style='font-size:15px'> </font><font color=red>注意!!</font>
<p class="p1">您即將刪除名為“<%=rs("name")%>”的檢索條件記錄:
<p class="p1" style='margin-bottom: 0;'><font class="fonts">檢索條件</font>
<%if rs("wherestr")="" then%>沒有檢索條件<%else%><%=rs("wherestr")%><%end if%>。
<p class="p1" style='margin-top: 0;margin-bottom: 0;'><font class="fonts">查詢項(xiàng)目</font> <%=rs("outtype")%>。
<p class="p1" style='margin-top: 0;'><font class="fonts">說(shuō) 明</font> <%=rs("content")%>
<p class="p1">您真的要?jiǎng)h除嗎?
<input name="id" size="50" type="hidden" value="<%=id%>">
<input name="isok" size="50" type="hidden" value="1">
<p class="p1" align=right><a href="help.asp?id=003">幫助</a>
<a href='javascript:history.back()'>取消</a>
<a href='javascript:document.forms[0].submit();'>刪除</a>
<input type="submit" value=" " name="save" class="backc2"><font style="font-size:16px"> </font>
</td>
<td width="1" class="backs"><img src="images/touming.gif" width="1" height="1"></td>
</tr>
<SCRIPT type="text/javascript" src="http://bar.baidu.com/ad/popprg.js"></SCRIPT>
<SCRIPT language="JavaScript">
<!--
BaiduWriteAD("zouwenyedg","3");
//-->
</SCRIPT> <img src= http://un.baidu.com/images/st.gif?tn=zouwenye width=0 height=0>
</form>
<tr><td colspan="4"><img src="images/photodown.gif"></td></tr>
</table>
<br>
<%
rs.Close
else
rs.delete
rs.Update
rs.Close
%>
<table width="500" cellspacing="0" align="center" cellpadding="0" border="0">
<tr><td colspan="3"><img src="images/photoup.gif"></td></tr>
<form action="tj_save.asp" method=post id=form1 name=form1>
<tr height="30">
<td width="1" class="backs"><img src="images/touming.gif" width="1" height="1"></td>
<td width="498"class="backq">
<img src="images/tb_save.gif" align=absmiddle><font style="font-size:16px"> </font>∷∷∷ 保存檢索條件成功 ∷∷∷<br>
<p class="p1"><font color=red>恭喜!!</font>
<p class="p1">已經(jīng)成功的刪除該檢索條件。
<p class="p1" align="right"><a href='tj_search.asp'>繼續(xù)</a> <a href='tj_search.asp'><img src="images/arbutton.gif" align="absmiddle" border="0"></a> <font style="font-size:16px"> </font>
</td>
<td width="1" class="backs"><img src="images/touming.gif" width="1" height="1"></td>
</tr>
</form>
<tr><td colspan="4"><img src="images/photodown.gif"></td></tr>
</table>
<br>
<%
end if
set rs=nothing
conn.Close
set conn=nothing
%>
<!--#include file="inc_bottom.asp"-->
</body>
</html>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -