<!--#include file="conn.asp"-->
<!--#include file="ad_chk.asp"-->
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href=inc/css.css rel=STYLESHEET type=text/css>
<body topmargin="5" leftmargin="5" rightmargin="5" bottommargin="5">
<%
if Request.Cookies("WrzcNet")("admin_class")<>0 then
response.write "你没有这个权限!"
response.end
end if
%>
<%
if request("action")="del" then
huo_id=request("huo_id")
set rs=server.createobject("adodb.recordset")
sql="select * from WrzcNet_huo where huo_id="&huo_id&""
rs.open sql,conn,1,3
if rs.eof then
response.redirect "ad_fahuo.asp"
response.end
else
rs.delete
rs.update
end if
rs.close
set rs=nothing
call deleok(delet,"ad_fahuo.asp")
end if
%>
<table border="0" cellpadding="5" cellspacing="0" class="st">
<tr bgcolor="#6894d8"><td width="200" class="sa">标题</td>
	<td width="100" class="sa">日期</td>
<td colspan="2" align="center" width="80" class="sa">操作</td></tr>
<%page=request("page")
  if page="" then page=1
  if not(isnumeric(page)) then page=1
  if page<1 then page=1
  page=int(page)
  set rs=server.createobject("adodb.recordset")
  sql="select * from WrzcNet_huo order by huo_id DESC"
  rs.open sql,conn,1,1
  if rs.eof then%>
<tr><td colspan="4" bgcolor="#FFFFFF">没有内容</td></tr>
<%else
  rs.pagesize=20
  totalrec=rs.recordcount
  totalpage=rs.pagecount
  if page>totalpage then page=totalpage
  rs.absolutepage=page
  rs.cachesize=rs.pagesize
  i=0
  do while not rs.eof and (i<rs.pagesize)
  i=i+1%>
<tr bgcolor="#FFFFFF"> 
  <td class="s<%=i mod 2%>"><a href="ad_edithuo.asp?huo_id=<%=rs("huo_id")%>"><%=rs("huo_name")%></a></td>
  <td class="s<%=i mod 2%>"><%=rs("huo_date")%></td>
  <td class="s<%=i mod 2%>" align="center"><a href="ad_fahuo.asp?huo_id=<%=rs("huo_id")%>&action=del"  onClick="return confirm('您确定进行删除操作吗？')">删除</a></td>
  <td class="s<%=i mod 2%>" align="center"><a href="ad_edithuo.asp?huo_id=<%=rs("huo_id")%>">修改</a></td></tr>
<%rs.movenext
loop
rs.close
set rs=nothing
i=i+1
end if%>
<tr><td colspan="4" class="s<%=i mod 2%>">
共<font color=red><%=totalpage%></font>页 第<%=page%>页&nbsp;&nbsp;
<%if page-1>0 then%><a href="ad_fahuo.asp?page=<%=page-1%>">上一页</a><%else%>上一页<%end if%>&nbsp;&nbsp;
<%if page+1<=totalpage then%><a href="ad_fahuo.asp?page=<%=page+1%>">下一页</a> <%else%>下一页<%end if%>
</td></tr></table><!--#include file="ad_bottom.asp"-->