<!--#include file="conn.asp" -->
<!--#include file="u/inc.asp" -->
<%
rightpage=1
if session("username")="" or session("userid")="" then
response.Redirect("u/login.asp?action=err")
response.End()
else
username=session("username")
userid=session("userid")
end if
%>
<%
set rs22=server.CreateObject("adodb.Recordset")
SQLc = "SELECT count(*) FROM diary WHERE display=0 and userid="&userid&""
Rs22.Open Sqlc,conn,1,1
Count = rs22(0)
rs22.close
%>
<%
userid=session("userid")
set rs=server.CreateObject("adodb.Recordset")
SQLc = "SELECT count(*) FROM diaryuser WHERE display=0 and userid="&userid&""
Rs.Open Sqlc,conn,1,1
Count = rs(0)
sql2="select * from diaryuser where userid="&userid&""
Rs.Open Sql2,conn,1,1
IF Not Rs.Eof Then
money=rs("money")
fenmian=rs("fenmian")
shuyu=rs("shuyu")
name=rs("username")
bookname=rs("bookname")
gongao=rs("gongao")
amount=rs("amount")
showinfo=rs("showinfo")
showbook=rs("showbook")
Musicyesno=rs("musicyesno")
bgrnd=rs("bgimg")
if  isnull(bgrnd) or bgrnd="0" then bgrnd=diarydir&"diary/index_bg1.jpg"
image=rs("image")
sex=rs("sex")
rs.close
if image="k" then
image="01.gif"
end if
if sex="girl" then
image="face/g"+image
else
image="face/b"+image
end if
count1=amount-count
sql2="select * from diary where userid="&userid&" order by diaryid desc"
%>
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=sitename%></title>
<meta name="keywords" content="<%=sitegjc%>" />
<meta name="description" content="<%=sitems%> www.rijiren.com" />
<link href="<%=alltubg%>css.css" rel="stylesheet" type="text/css">
<script src="<%=alltubg%>alt.js"></script>
<style>
<!--
.style1 {color: #2579cf}
.fs{font-size:8pt}
.td{line-height :20px}
.line{BACKGROUND-ATTACHMENT: fixed; BACKGROUND-IMAGE: url('img/line0.gif'); BACKGROUND-POSITION: center;  BACKGROUND-REPEAT: repeat-x}
-->
</style>
</head>
<body background="<%=bgrnd%>" topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" oncontextmenu="return false" ondragstart="return false" onselectstart="return false">
<table width="985" border="0" cellspacing="0" cellpadding="0" align="center" style="margin:0 auto;">
  <tr> 
    <td> <!--#include file="u/head.asp" -->
	<%
	uid=userid
user=username%>
      <table width="985" border="0" cellspacing="0" cellpadding="0" height="452">
        <tr> 
          <td width="20">&nbsp;</td>
          <td height="452" background="diary/bg1.gif" width="703"> 
            <table width="703" border="0" cellspacing="0" cellpadding="0" height="452">
              <tr> 
                <td height="10" width="54"></td>
                <td width="288"></td>
                <td rowspan="3" width="21"></td>
                <td width="284"></td>
                <td width="57"></td>
              </tr>
              <tr> 
                <td height="370">&nbsp;</td>
                <td width="288">
                  <table border="0" width="288" id="table6" cellspacing="0" cellpadding="0" height="370">
                    <tr> 
                      <td rowspan="4" height="200" width="105"><img src="<%=alltubg%><%=image%>" width="100" height="200"></td>
                      <td width="60" height="24"> <font color="#00ACF0"> <img border="0" src="diary/diary_name.jpg" width="60" height="24"></font></td>
                      <td width="123" height="24"> <font color="#00ACF0"><b>　<%=bookname%></b></font></td>
                    </tr>
                    <tr> 
                      <td width="59" height="24" valign="middle"> <font color="#FF6600"> 
                        <img border="0" src="diary/user.jpg" width="60" height="24"></font></td>
                      <td width="123" height="24" valign="middle"> <font color="#FF6600"><b>　<%=name%></b></font></td>
                    </tr>
                    <tr> 
                      <td colspan="2" valign="middle" height="50"><font color="#666666">共有<%=amount%>篇 
                        其中<br>
                        公开日记<%=count1%>篇 私人日记<%=count%>篇</font> </td>
                    </tr>
                    <tr> 
                      <td colspan="2" valign="middle" height="100%"> 
                        <table width="100%" border="0" cellpadding="0" cellspacing="0" height="102">
                          <tr> 
                            <td colspan="2" height="51"><font color="#00ACF0"><a href="u/add.asp" target="_self"><img border="0" src="diary/add.gif" width="78" height="33"></a></font></td>
                          </tr>
                          <tr> 
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                    <tr> 
                      <%
Path=siteurl&diarydir&"?i="&userid
%>
                      <td width="288" colspan="3" height="20"> 
                        <table width="100%" border="0" cellpadding="0" cellspacing="0">
                          <tr> 
                            <td width="105"> 
                              
                        <div align="center"><font color="#00ACF0"><a href="u/ok.asp?action=logout" target="_self"><font color="#00ACF0">退出登陆</font></a></font></div>
                            </td>
                            <td width="65%">&nbsp;</td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                    <tr valign="top"> 
                      <td colspan="3" height="150"> 
                        <table width="270" border="0" cellpadding="0" cellspacing="0" height="40" align="center" bordercolor="#666699">
                          <tr> 
                            <td height="20" align="center"><font color="#6666CC">控 
                              制 面 板</font></td>
                          </tr>
                          <tr> 
                            <td height="20"> 
                              <div align="center"><a href="u/mdiary.asp?a=all" target="showpage"><font color="#6666CC">日记列表</font></a> 
                                 <a href="u/mdiarylist.asp?userid=<%=session("userid")%>" target="showpage"><font color="#6666CC">日记分类</font></a>  
                                <a href="u/muserinfo.asp?a=url&path=<%=path%>" target="showpage"><font color="#6666CC">日记地址</font></a></div>
                            </td>
                          </tr>
                          <tr> 
                            <td height="20"> 
                              <div align="center"> <a href="u/mroleset.asp?userid=<%=session("userid")%>" target="showpage"><font color="#6666CC">人物属性</font></a> 
                                <a href="u/mdiaryset.asp?userid=<%=session("userid")%>" target="showpage"><font color="#6666CC">日记属性</font></a></div>
                            </td>
                          </tr>
                          <tr> 
                            <td height="20" valign="middle" align="center"><a href="u/mguest.asp" target="showpage"><font color="#6666CC">留言管理</font></a> 
                              <font color="#CCCCCC"><a href="u/mmusic.asp" target="showpage"><font color="#6666CC">音乐管理</font></a> 
                              <a href="u/mreplay.asp" target="showpage"><font color="#6666CC">评论管理</font></a></font></td>
                          </tr>
                          <tr> 
                            <td height="20" valign="middle" align="center"> 
                              </td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                    <tr> 
                      <td width="288" colspan="3"></td>
                    </tr>
                  </table>
                </td>
                <td height="370" width="284" background="diary/mybook.gif"><IFRAME src="u/mdiary.asp?a=all" frameBorder=0 width="284" scrolling=no height="370" name="showpage" allowtransparency="true" style="background-color=transparent"> 
                  </IFRAME></td>
    <%
end if
%>
                <td>&nbsp;</td>
              </tr>
              <tr> 
                <td height="67">&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
              </tr>
            </table>
          </td>
          <td width="272">
            <!--#include file="u/right1.asp" -->
          </td>
        </tr>
      </table>
      <!--#include file="u/bottom.asp" -->
    </td>
  </tr>
  <tr> 
    <td></td>
  </tr>
</table>
</body>
</html>


