<!--#include file="conn.asp"-->
<!--#include file="inc/md5.asp"-->
<!--#include file="bbsuser.asp"-->
<!--#include file="inc/publicfun.asp"-->
<%
userid=request.cookies("clubuser_id")
blogtypeid=request("blogtypeid")
tyname="blogtypeid"
if blogtypeid="" then
   typestr=""
else
   typestr="and blogtypeid='"&blogtypeid&"'"
end if
%>
<!--#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" -->
<!--#include file="bokerhead.asp" -->
<div class="stage">
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="layout">
<tr>
<td valign="top" class="c2t3">
<div id="mod_profile" class="mod" rel="drag">
<!--#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="40" colspan="5" class=new14 align="left"><div class="opt"> 
                    <img src="blogimages/post.gif" width="15" height="15"> 
                      <strong><a href="blogcenter_add.asp">发表</a></strong></div></td>
                </tr>
                <tr> 
                  <td height="1" colspan="5" bgcolor="#336699" class=new14><spacer height="1" type="block"></td>
                </tr>
                <tr> 
                  <td width="70%" height="25"> <div align="left"><strong>&nbsp;&nbsp;标题</strong></div></td>
                  <td width="7%"><div align="center">查看</div></td>
                  <td width="8%"><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 where userid="&request.cookies("clubuser_id")&" "&typestr&" order by writedate desc"
set rsblog=server.createobject("adodb.recordset")
rsblog.open sql,conn,1,1
if not rsblog.eof then
   wzrep =30
   wzpage = clng(request.querystring("page"))
   if len(wzpage) = 0 or wzpage = 0 then wzpage = 1
   rsblog.PageSize=wzrep
   rsblog.AbsolutePage=wzpage
   wzpagecount=rsblog.PageCount
   wzcount=rsblog.RecordCount
   for i = 0 to wzrep-1
   if rsblog.eof then exit for		  
%>
                <tr> 
                  <td height="25"><div class="opt">&nbsp;&nbsp;<a href="blog_edit.asp?id=<%=rsblog("id")%>"><%=rsblog("writedate")%></a>&nbsp; 
                    <a href="blog_edit.asp?id=<%=rsblog("id")%>"><%=rsblog("blogtitle")%></a></div></td>
                  <td height="25" align="center"><div class="opt"><a href="myblog.asp?id=<%=rsblog("id")%>&userid=<%=userid%>&blogtypeid=<%=rsblog("blogtypeid")%>" target="_blank">查看</a></div></td>
                  <td height="25" align="center"><div class="opt">
                      <%if rsblog("blogtop")=1 then%>
                      <a href="blogop.asp?id=<%=rsblog("id")%>&op=top&v=0">取消</a>
                      <%else%>
                      <a href="blogop.asp?id=<%=rsblog("id")%>&op=top&v=1">置顶</a>
                      <%end if%>
                    </div></td>
                  <td height="25" align="center"><div class="opt">
                      <%if rsblog("blogtj")=1 then%>
                      <a href="blogop.asp?id=<%=rsblog("id")%>&op=tj&t=0">取消</a>
                      <%else%>
                      <a href="blogop.asp?id=<%=rsblog("id")%>&op=tj&t=1">推荐</a>
                      <%end if%>
                    </div></td>
                  <td height="25" align="center"><div class="opt"><a href="blogop.asp?id=<%=rsblog("id")%>&op=del&htm=<%=rsblog("bloghtmfile")%>&blogtypeid=<%=rsblog("blogtypeid")%>">删除</a></div></td>
                </tr>
                <tr> 
                  <td height="1" colspan="5" background="blogimages/dotbg.gif"><spacer height="1" type="block"></td>
                </tr>
                <%
rsblog.movenext
next
rsblog.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,blogtypeid)%></td>
                </tr>
                <%else%>
                <tr> 
                  <td colspan="5" height="25">你还没有任何文章</td>
                </tr>
                <%end if%>
              </table>
              <br>
            </div>

</td>
</tr></table>
</div>
</div>
<br><center>
    <!--#include file="tail.asp" -->
  </center>
</center>
</body>
</html>
<%closedb%>