<!--#include file="conn.asp" -->
<% adm_power_page=2 '分配本页的用户访问权限 %>
<!--#include file="admin_dn.asp" -->
<% 
if Trim(Request.QueryString("w"))="del" then
sql="delete from news where id="&Request.QueryString("id")
conn.execute(sql)
%>

<script language="VBScript" type="text/VBScript">
msgbox "记录删除成功...."
</script>

<%

end if 


 %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>:::管理页面:::</title>
<link href="css.css" rel="stylesheet" type="text/css">
</head>

<body leftmargin="2" topmargin="0">
<p><strong>首页公告/新闻 管理</strong></p>
<p>&nbsp;</p>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
  <tr bgcolor="#000066"> 
    <td width="6%"> 
      <div align="center"><font color="#FFFFFF">id</font></div></td>
    <td width="49%"> 
      <div align="center"><font color="#FFFFFF">文章标题</font></div></td>
    <td width="12%"> 
      <div align="center"><font color="#FFFFFF">所属类别</font></div></td>
    <td width="13%"> 
      <div align="center"><font color="#FFFFFF">阅读次数</font></div></td>
    <td width="9%"> 
      <div align="center"><font color="#FFFFFF">编辑</font></div></td>
    <td width="11%"> 
      <div align="center"><font color="#FFFFFF">删除</font></div></td>
  </tr>
  <% 
  sql="select * from news order by id desc "
  rs.open sql,conn,1,1
  while not rs.eof 
  
   %>
  <tr bgcolor="#EEF7FF" onmouseover="this.style.backgroundColor='#FFF0F0';return true;" onmouseout="this.style.backgroundColor='#EEF7FF';"> 
    <td><div align="center"><font color="#FF0000"><%= rs("id") %></font></div></td>
    <td><a href="../qlist.asp?id=<%=rs("id")%>" target="_blank"><%= rs("title") %></a></td>
    <td><div align="center"><%= rs("ll") %></div></td>
    <td><div align="center"><%= rs("txt") %></div></td>
    <td><div align="center"><a href="adm_1_edit.asp?id=<%=rs("id")%>">修改</a></div></td>
    <td><div align="center"><a href="adm_2.asp?w=del&id=<%=rs("id")%>"><img src="images/delete.gif" alt="删除此文档...请小心使用.." width="18" height="18" border="0"></a></div></td>
  </tr>
  <% rs.movenext
  wend
  rs.close %>
  <tr> 
    <td height="19" colspan="6"> 　</td>
  </tr>
</table>
<hr width="95%" size="1" noshade>
<p>点文章标题为，打开些文档，你在删除文章时请小心使用,一但删除将无法恢复..</p>
</body>
</html>
