delmessage.asp

来自「一个毕业设计都投稿系统非常不错的,一个毕业设计都投稿系统非常不错的,」· ASP 代码 · 共 50 行

ASP
50
字号
<head>
<title>警告:您确定删除第<% =id %>篇文章吗?</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body background="images/bj.gif" topmargin="0" leftmargin="0">

<p align="center">

<!-- #include file="conn.asp" -->
<%   
  id=request("id") 
  yesno=request("confirm")
  if request("first")<>"yes" then
%>
<br>
<p align="center"><font color=red size=+1><b>警告:您确定删除第<% =id %>篇文章吗?</b></font><b><BR></b><br>
</p>
<table border=0 cellpadding=1 cellspaceing=0  align="center" width=50%>

<tr align="center">
<td width=50% align="center">
<form action="delmessage.asp?id=<% =id %>&confirm=yes&first=yes" method="post">
<input type=submit value="确定删除" onmouseover="this.style.color='#ff8800'" onmouseout="this.style.color='#eeeeee'">
</form>
</td>
<td width=50% align="center">
<form action="delmessage.asp?id=<% =id %>&confirm=no&first=yes"  method="post">
<input type=submit value="取消删除" onmouseover="this.style.color='#ff8800'" onmouseout="this.style.color='#eeeeee'">
</form> 
</td>
</tr>
</table>
<%  else
    if yesno="yes" then
    sql="delete from mail where id=" & id
    conn.execute(sql)
    conn.close  %>

    <%
    response.write "<font face=黑体  size=+1><br><br><br><center>第"& id &"篇文章已被删除!</font><br><br><a href=admin.asp>返回管理页面</a></center>"
    else
      response.write "<font face=黑体  color=red size=+1><br><br><br><center>取消删除动作!<a href=admin.asp>返回管理页面</a></center></font><BR><BR><BR>"  
    end if      
 end if        
%>
<BR>


</body>

⌨️ 快捷键说明

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