<!--#include file="../conn.asp" -->
<!--#include file="../admin/check_master.asp" -->
<!--#include file="../inc/publicfun.asp" -->
<%
pltype=request("pltype")
tyname="pltype"
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>评论管理</title>

<link href="../css/xmwuye.css" rel="stylesheet" type="text/css">
</head>
<script language="javascript" src="../js/publicfun.js"></script>
<body>
<table width="98%"  border="0" align="center" cellpadding="0" cellspacing="0">
  <tr valign="middle"> 
    <td height="50" colspan="5" bgcolor="#FFFFFF" class=new14> <div align="center">
        <%
		if pltype=0 then
		   response.write "日志" 
		elseif pltype=1 then
		   response.write "相册"
		elseif pltype=2 then
		  response.write "专辑"
		end if%>
        评论管理</div></td>
  </tr>
  <tr> 
    <td height="1" colspan="5" bgcolor="#336699" class=new14><spacer height="1" type="block"></td>
  </tr>
  <tr> 
    <td width="78%" height="25" bgcolor="#FFFFFF"> <div align="left"><strong>内容</strong></div></td>
    <td width="7%" bgcolor="#FFFFFF"><div align="center">隐藏</div></td>
    <td width="8%" bgcolor="#FFFFFF"><div align="center">编辑</div></td>
    <td width="7%" bgcolor="#FFFFFF"><div align="center">删除</div></td>
  </tr>
  <tr> 
    <td height="1" colspan="5" background="../blogimages/dotbg.gif"><spacer height="1" type="block"></td>
  </tr>
  <%
sql="select * from ftblog_pl where pltype="&pltype&" order by pldate desc"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
if not rs.eof then
   wzrep =30
   wzpage = clng(request.querystring("page"))
   if len(wzpage) = 0 or wzpage = 0 then wzpage = 1
   rs.PageSize=wzrep
   rs.AbsolutePage=wzpage
   wzpagecount=rs.PageCount
   wzcount=rs.RecordCount
   for i = 0 to wzrep-1
   if rs.eof then exit for
%>
  <tr> 
    <td height="25" bgcolor="#FFFFFF"><div class="opt">(<%=rs("netname")%>)<br>
        <%=rs("plcontent")%></div></td>
    <td height="25" bgcolor="#FFFFFF" align="center"><div class="opt"> 
        <%if rs("plqs")=0 then%>
        <a href="plop.asp?id=<%=rs("id")%>&op=top&v=1">显示</a> 
        <%else%>
        <a href="plop.asp?id=<%=rs("id")%>&op=top&v=0">隐藏</a> 
        <%end if%>
      </div></td>
    <td height="25" bgcolor="#FFFFFF" align="center"><div class="opt"><a href="../admin_blog_editpl.asp?id=<%=rs("id")%>">编辑</a></div></td>
    <td height="25" bgcolor="#FFFFFF" align="center"><div class="opt"><a href="plop.asp?id=<%=rs("id")%>&op=del">删除</a></div></td>
  </tr>
  <tr> 
    <td height="1" colspan="5" background="../blogimages/dotbg.gif"><spacer height="1" type="block"></td>
  </tr>
<%
rs.movenext
next
rs.close
%>
  <tr> 
    <td colspan="5" height="35"> &nbsp;共<font color=red><%= wzcount%></font>条 
      <font color=red><%= wzrep%></font>/页 共<font color=red><%= wzpagecount%></font>页 
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<%= pagination(wzpagecount,"")%></td>
  </tr>
  <%else%>
  <tr> 
    <td colspan="5" height="25">你还没有任何评论</td>
  </tr>
  <%end if%>
</table>
</body>
</html>
