<!--#include file="conn.asp"-->
<!--#include file="inc/publicfun.asp"-->
<!--#include file="inc/md5.asp"-->
<!--#include file="bbsuser.asp"-->
<%
userid=request.cookies("clubuser_id")
pltype=request("pltype")
tyname="pltype"
%>
<!--#include file="memberinfo.asp"-->
<html><head><meta http-equiv=content-type content="text/html; charset=gb2312">
</head>
<body>
<center>
<title><%=username%>的评论管理中心</title>
<link rel="stylesheet" type="text/css" href="<%=cssfile%>">
<!--#include file="usernav.asp" -->
<%if pltype=0 then%>
<!--#include file="bokerhead.asp" -->
<%elseif pltype=1 then%>
<!--#include file="photohead.asp" -->
<%elseif pltype=2 then%>
<!--#include file="haoyouhead.asp" -->
<%end if%>
<div class="stage">
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="layout">
<tr>
<td valign="top" class="c2t3">
<div id="m_blog" class="modbox">
<!--#include file="usercalog.asp" -->
</div>
</td>
<td valign="top" class="c2t1">
<div id="m_blog" class="modbox">
              <table width="100%"  border="0" cellspacing="0" cellpadding="0">
                <tr valign="middle"> 
                  <td height="50" colspan="5" class=new14> 
                    <div align="center"><%if pltype=0 then response.write "日志" else 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"> <div align="left"><strong>内容</strong></div></td>
                  <td width="7%" ><div align="center">隐藏</div></td>
                  <td width="8%" ><div align="center">编辑</div></td>
                  <td width="7%" ><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 userid="&request.cookies("clubuser_id")&" and 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" ><div class="opt">(<%=rs("netname")%>)<br>
                    <a href="myblog.asp?id=<%=rs("blogid")%>" target="_blank"><%=rs("plcontent")%></a></div></td>
                  <td height="25" 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" align="center"><div class="opt"><a href="blog_editpl.asp?id=<%=rs("id")%>">编辑</a></div></td>
                  <td height="25" 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;<%= pagenar(wzpagecount,userid,tyname,pltype)%></td>
                </tr>
                <%else%>
                <tr> 
                  <td colspan="5" height="25">你还没有任何评论</td>
                </tr>
                <%end if%>
              </table>
            </div>
</td>
</tr></table>
</div>
</div>
<br><center>
    <!--#include file="tail.asp" -->
  </center>
</center>
</body>
</html>
<%closedb%>