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

📄 news_dele.asp

📁 OFFICE办公自动化
💻 ASP
字号:
<%
'功能:删除新闻
'参数:	request("id")#要删除新闻的ID; request("Style")=int #当前栏目; request("page")=int #当前页码
%>

<!--#include file="../inc/Secure.asp"-->
<!--#include file="../inc/conn.asp"-->

<%
'response.buffer=false

'------------------------------------------------设置参数
LoginID=trim(session("LoginID")) : if LoginID="" then LoginID=0 '当前用户ID
currentpage=request("page") : if currentpage="" then currentpage=1 '当前页码
Style=request("Style"):if Style="" then Style=0 '当前栏目
pid=request("id") '新闻ID
'------------------------------------------------
'------------------------------------------------删除记录
oConn.Execute "DELETE FROM tbioaInfomation WHERE ID="&pid
'------------------------------------------------
%>


<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../css/main.css" type=text/css>
<title>main</title>
<base target="FrmMain">
</head>

<body topmargin="10" leftmargin="10">

<!--#include file="news_manage_menu.htm"-->

<hr width="100%" size=1 color="#000000">
<br>

<div align="center">
<table width="400" cellspacing="1" cellpadding="2" class="tab">
  <tr>
    <td width="100%" class="tdTop">
      <table border="0" width="100%" cellspacing="0" cellpadding="0">
        <tr>
          <td class="tdTop">
            <p align="left"><img border="0" src="../images/icon_title.gif" align="left">删除新闻</p>
          </td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td width="25%" class="td1">
      <table border="0" width="100%" cellspacing="10" cellpadding="0">
        <tr>
          <td width="36%">
            <p align="right"><img border="0" src="../images/edit.gif" width="32" height="32">
          </td>
          <td width="64%"><p> </p>
            <p>新闻已经成功删除!</p>
            <p><img border="0" src="../images/icon_return.gif" align="left"><a href="news_manage_list.asp?Style=<%=Style%>&page=<%=currentpage%>">返回新闻列表</a></p>
          </td>
        </tr>
        <tr>
          <td width="100%" colspan="2">
          </td>
        </tr>
      </table> 
    </td>
  </tr>
  <tr>
    <td width="25%" class="tdBottom">
    </td>
  </tr>
</table>
</div>
</body>

</html>

<%'释放对象变量
oConn.close
%> 

⌨️ 快捷键说明

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