<!--#include file="conn.asp"-->
<!--#include file="inc/publicfun.asp"-->
<!--#include file="inc/ubbcode.asp"-->
<%
userid=request.QueryString("userid")
%>
<!--#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="c2t1">
<div id="mod_bloglist" class="mod" rel="drag">
	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="modth">
	<tr><td class="modtl" width="7">&nbsp;</td>
	<td class="modtc" nowrap><div class="modhead"><span class="modtit">文章列表</span></div></td>
	<td class="modtc" nowrap align="right"></td>
	<td class="modtr" width="7">&nbsp;</td>
	</tr></table>
<div id="m_blog" class="modbox">
<%
sql="select ftblog.id,ftblog.blogtitle,ftblog.blogtypeid,ftblog.xinqin,ftblog_type.blogtype,ftblog.blogcontent,ftblog.writedate,ftblog.blogplnum,ftblog.hits from ftblog,ftblog_type where ftblog.blogtypeid=ftblog_type.id and ftblog.sign=0 and ftblog.blogqs=0 and ftblog.userid="&userid&" and ftblog_type.blogphoto=0 order by ftblog.id desc"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,3,1
if not rs.eof then
   wzrep =8
   wzpage = clng(request.querystring("page"))
   if len(wzpage) = 0 or wzpage = 0 then wzpage = 2
   rs.PageSize=wzrep
   rs.AbsolutePage=wzpage
   wzpagecount=rs.PageCount
   wzcount=rs.RecordCount
  for i = 0 to wzrep-1
    if rs.eof then exit for
%>
	<div class="line">&nbsp;</div>
	<div class="tit"><a href="myblog.asp?id=<%=rs("id")%>&userid=<%=userid%>&blogtypeid=<%=rs("blogtypeid")%>"><%=rs("blogtitle")%></a></div>
	<div class="date"><%=rs("writedate")%> &nbsp;&nbsp;<%if rs("xinqin")<>"" then%>心情:&nbsp;<%=rs("xinqin")%><%end if%></div>
	<%=left(nohtml(rs("blogcontent")),200)%><%if len(nohtml(rs("blogcontent")))>200 then response.write "......" end if%>
    <div class="opt"><a href="boker.asp?blogtypeid=<%=rs("blogtypeid")%>&userid=<%=userid%>" title="查看该分类中所有文章">类别：<%=rs("blogtype")%></a> | <a href="myblog.asp?id=<%=rs("id")%>&userid=<%=userid%>#comment" title="查看该文章的所有评论">评论(<%=rs("blogplnum")%>)</a> | <a href="myblog.asp?id=<%=rs("id")%>&userid=<%=userid%>" title="浏览全文">浏览(<%=rs("hits")%>)</a></div>
<%
  rs.movenext
  next
rs.close
set rs=nothing
%>
<div class="line">&nbsp;</div>
<div class="ftblog"><%= pagination(wzpagecount,userid)%></div>
<%else%>
<div class="date">数据为空</div>
<%end if%>
</div>
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="8">
<tr><td class="modbl" width="7">&nbsp;</td>
<td class="modbc">&nbsp;</td>
<td class="modbr" width="7">&nbsp;</td>
</tr></table>
</div>

</td>
<td class="c2t2">&nbsp;</td>
<td valign="top" class="c2t3">
<div id="mod_profile" class="mod" rel="drag">
<!--#include file="Rblog.asp" -->
</div>
</td>
</tr></table>
</div>
</div>
<br><center>
    <!--#include file="tail.asp" -->
  </center>
</center>
<script src="homehits.asp?userid=<%=userid%>"></script>
</body>
</html>
<%closedb%>