<!--#include file="../inc/conn.asp" -->
<%
if request.cookies("name")="" then
	response.write "<SCRIPT language=JavaScript>alert('你还没有登录,请先登录！');"
   	response.write "history.go(-1);"
   	response.write "</script>"        
    response.end
end if
sqlstr="select * from sms where bbssystem=1 order by indate desc"
set rs0=server.createobject("adodb.recordset")
rs0.open sqlstr,conn,1,1
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="../css/xmwuye.css" rel=stylesheet type=text/css>
<title><%=request.cookies("name")%>的收件箱</title>
</head>

<body topmargin="5">
<div align="center"> 
  <TABLE align=center bgColor=#a4b6d7 border=0 cellPadding=0 cellSpacing=0 width="99%">
    <TR> 
      <TD height=25> <div align="center"><font color="#FFFFFF"><strong>欢迎<font color="#CC3300"><%=request.cookies("name")%></font>网友来管理你的论坛短信</strong></font></div></TD>
    </TR>
  </TABLE>
  <TABLE align=center bgColor=#a4b6d7 border=0 cellPadding=0 cellSpacing=0 width="99%">
    <TR> 
      <TD height=28 bgcolor="#e8f5ff"> 
        <div align="center"> 
          <form name="form1" method="post" action="" style="MARGIN-BOTTOM: 0px">
            短信搜索: 
            <input name="searchstr" type="text" id="searchstr" size="25">
            <select name="smtype" id="smtype">
              <option value="title" selected>短信标题</option>
              <option value="content">短信内容</option>
            </select>
            <input type="submit" name="Submit" value="查找短信">
            <input name="button" type="button" id="button" value="发送短信" onClick="javascript:window.location.href='postsms.asp'">
            <input name="send" type="button" id="send" value="收件箱" onClick="javascript:window.location.href='mysms.asp'">
            <input name="re" type="button" id="re" value="发件箱" onClick="javascript:window.location.href='mysms.asp?t=my'">
          </form>
          <font color="#FFFFFF"></font></div></TD>
    </TR>
  </TABLE>
<%
if not rs0.eof and request("t")<>"my" then
%>
<table border="0" width="99%" cellspacing="0" cellpadding="0" bgcolor="#A4B6D7" align="center">
    <tr bgcolor="#b1d6fa">
      <td height="23" valign="middle"> 
        <div align="center"><b>系统信息</b></div></td>
      <td class="new14"><b>标 题：<%=rs0("title")%></b></td>
    </tr>
    <tr bgcolor="#f3f5ff">
      <td valign="top" width="20%" bgcolor="#e8f5FF"><div align="center">
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr> 
              <td><div align="center"> <IMG height=84 src=../bbs/userheadimg/cache5.gif width=84></div></td>
            </tr>
            <tr> 
              <td height="20"><div align="center">系统管理员</div></td>
            </tr>
            <tr> 
              <td height="12">&nbsp;</td>
            </tr>
          </table>
        </div></td>
      <td valign="top" bgcolor="#f6f6f6"><table width="100%" border="0" cellspacing="3" cellpadding="3">
          <tr>
            <td height="80" valign="top" class="new14"> 内 容：<%=rs0("content")%></td>
          </tr>
        </table>
        <table width="100%" border="0" cellspacing="5" cellpadding="0">
          <tr>
            <td height="1" background="../bbs/userheadimg/bg_text1.gif"></td>
          </tr>
          <tr>
            <td><table width="100%" border=0 cellspacing=0 cellpadding=0>
                <tr>
                  <td width="55%" class=new14><font color="#000000"> 
                    <%if request.cookies("bbsadmin")=1 then%>
                    操作选项：[<a class=a03 href=delsms.asp?id=<%=rs0("id")%>>删除</a>][<a class=a03 href=editsms.asp?id=<%=rs0("id")%>>编辑</a>] 
                    <%end if%>
                    </font></td>
                  <td width="45%"><div align="right">发信时间:<%=rs0("indate")%>&nbsp;</div></td>
                </tr>
              </table></td>
          </tr>
        </table></td>
    </tr>
  </table>
<%
end if
rs0.close
sqlstr="select * from sms where bbssystem=2 and accepter='"&request.cookies("name")&"' order by indate desc"
set rs0=server.createobject("adodb.recordset")
rs0.open sqlstr,conn,1,1
if not rs0.eof and request("t")<>"my" then
%>
<table border="0" width="99%" cellspacing="0" cellpadding="0" bgcolor="#A4B6D7" align="center">
    <tr bgcolor="#b1d6fa">
      <td height="23" valign="middle"> 
        <div align="center"><b>系统信息</b></div></td>
      <td class="new14"><b>标 题：<%=rs0("title")%></b></td>
    </tr>
    <tr bgcolor="#f3f5ff">
      <td valign="top" width="20%" bgcolor="#e8f5FF"><div align="center">
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr> 
              <td><div align="center"> <IMG height=84 src=../bbs/userheadimg/cache5.gif width=84></div></td>
            </tr>
            <tr> 
              <td height="20"><div align="center">系统管理员</div></td>
            </tr>
            <tr> 
              <td height="12">&nbsp;</td>
            </tr>
          </table>
        </div></td>
      <td valign="top" bgcolor="#f6f6f6"><table width="100%" border="0" cellspacing="3" cellpadding="3">
          <tr>
            <td height="80" valign="top" class="new14"> 内 容：<%=rs0("content")%></td>
          </tr>
        </table>
        <table width="100%" border="0" cellspacing="5" cellpadding="0">
          <tr>
            <td height="1" background="../bbs/userheadimg/bg_text1.gif"></td>
          </tr>
          <tr>
            <td><table width="100%" border=0 cellspacing=0 cellpadding=0>
                <tr>
                  <td width="55%" class=new14><font color="#000000"> 
                    <%if request.cookies("bbsadmin")=1 then%>
                    操作选项：[<a class=a03 href=delsms.asp?id=<%=rs0("id")%>>删除</a>][<a class=a03 href=editsms.asp?id=<%=rs0("id")%>>编辑</a>] 
                    <%end if%>
                    <%if rs0("sender")<>"" then%>[<a class=a03 href="agree.asp?id=<%=rs0("id")%>&postuser=<%=rs0("sender")%>&accepter=<%=rs0("accepter")%>&agree=Y">同意</a>][<a class=a03 href="disagree.asp?id=<%=rs0("id")%>&postuser=<%=rs0("sender")%>&accepter=<%=rs0("accepter")%>&agree=N">不同意</a>]<%end if%>
                    </font></td>
                  <td width="45%"><div align="right">发信时间:<%=rs0("indate")%>&nbsp;</div></td>
                </tr>
              </table></td>
          </tr>
        </table></td>
    </tr>
  </table>
<%
end if
rs0.close
%>  
<%
if request("searchstr")<>"" then
searchstr="and "&request("smtype")&" like '%"&request("searchstr")&"%'"
end if
if request("t")="my" then
sql="select * from sms where sender='"&request.cookies("name")&"' "&searchstr&" and bbssystem=0 order by indate desc"
else
sql="select * from sms where accepter='"&request.cookies("name")&"' "&searchstr&" and bbssystem=0 order by indate desc"
end if

set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
if not rs.eof then
'sys_info="Y"
i=1
do while not rs.eof
if request("t")="my" then
str="select * from clubuser where clubuser_name='"&request.cookies("name")&"'"
else
str="select * from clubuser where clubuser_name='"&rs("sender")&"'"
end if

set rsa=server.createobject("adodb.recordset")
rsa.open str,conn,3,1
if not rsa.eof then
   jingyuan=rsa("jingyuan")
   tili=rsa("tili")
   img=rsa("userimg")
   clubuser_reg_date=formatdatetime(rsa("clubuser_reg_date"),2)  
else
   jingyuan=0
   tili=100
   img="cache5.gif"			     
end if
                  if jingyuan<=50 then
				     touxian="小野人"
				  elseif jingyuan>50 and jingyuan<=150 then
				     touxian="野人"
				  elseif jingyuan>150 and jingyuan<=500 then
				     touxian="土人"
				  elseif jingyuan>500 and jingyuan<=1000 then
				     touxian="咕噜"
				  elseif jingyuan>1000 and jingyuan<=2000 then
				     touxian="大咕噜"
				  elseif jingyuan>2000 and jingyuan<=4000 then
				     touxian="咕噜队长"
				  elseif jingyuan>4000 and jingyuan<=8000 then
				     touxian="初级守卫"
				  elseif jingyuan>8000 and jingyuan<=10000 then
				     touxian="守卫队长"
				  elseif jingyuan>10000 and jingyuan<=11000 then
				     touxian="斗士"
				  elseif jingyuan>11000 and jingyuan<=12000 then
				     touxian="大斗士"
				  elseif jingyuan>12000 and jingyuan<=14000 then
				     touxian="斗士长"
				  elseif jingyuan>14000 and jingyuan<=16000 then
				     touxian="骑士"
				  elseif jingyuan>16000 and jingyuan<=18000 then
				     touxian="青铜骑士"
				  elseif jingyuan>18000 and jingyuan<=20000 then
				     touxian="白银骑士"
				  elseif jingyuan>20000 and jingyuan<=22000 then
				     touxian="黄金骑士"
				  elseif jingyuan>22000 and jingyuan<=24000 then
				     touxian="圣骑士"
				  elseif jingyuan>24000 and jingyuan<=26000 then
				     touxian="神秘头衔"
				  elseif jingyuan>26000 and jingyuan<=28000 then
				     touxian="神秘头衔"
				  elseif jingyuan>28000 then
				     touxian="神秘头衔"					 					 					 					 					 					 					 					 					 
				  end if
'#############################################
				  if jingyuan<=50 then
				     jibie="<img src=../bbs/userheadimg/class1.gif width=63 height=10>"
				  elseif jingyuan>50 and jingyuan<=150 then
				     jibie="<img src=../bbs/userheadimg/class2.gif width=63 height=10>"
				  elseif jingyuan>150 and jingyuan<=500 then
				     jibie="<img src=../bbs/userheadimg/class3.gif width=63 height=10>"
				  elseif jingyuan>500 and jingyuan<=1000 then
				     jibie="<img src=../bbs/userheadimg/class4.gif width=63 height=10>"
				  elseif jingyuan>1000 and jingyuan<=2000 then
				     jibie="<img src=../bbs/userheadimg/class5.gif width=63 height=10>"
				  elseif jingyuan>2000 and jingyuan<=4000 then
				     jibie="<img src=../bbs/userheadimg/class6.gif width=63 height=10>"
				  elseif jingyuan>4000 and jingyuan<=8000 then
				     jibie="<img src=../bbs/userheadimg/class7.gif width=63 height=10>"
				  elseif jingyuan>8000 and jingyuan<=10000 then
				     jibie="<img src=../bbs/userheadimg/class8.gif width=63 height=10>"
				  elseif jingyuan>10000 and jingyuan<=11000 then
				     jibie="<img src=../bbs/userheadimg/class9.gif width=63 height=10>"
				  elseif jingyuan>11000 and jingyuan<=12000 then
				     jibie="<img src=../bbs/userheadimg/class10.gif width=63 height=10>"
				  elseif jingyuan>12000 and jingyuan<=14000 then
				     jibie="<img src=../bbs/userheadimg/class11.gif width=63 height=10>"
				  elseif jingyuan>14000 and jingyuan<=16000 then
				     jibie="<img src=../bbs/userheadimg/class12.gif width=63 height=10>"
				  elseif jingyuan>16000 and jingyuan<=18000 then
				     jibie="<img src=../bbs/userheadimg/class13.gif width=63 height=10>"
				  elseif jingyuan>18000 and jingyuan<=20000 then
				     jibie="<img src=../bbs/userheadimg/class14.gif width=63 height=10>"
				  elseif jingyuan>20000 and jingyuan<=22000 then
				     jibie="<img src=../bbs/userheadimg/class15.gif width=63 height=10>"
				  elseif jingyuan>22000 and jingyuan<=24000 then
				     jibie="<img src=../bbs/userheadimg/class16.gif width=63 height=10>"
				  elseif jingyuan>24000 and jingyuan<=26000 then
				     jibie="<img src=../bbs/userheadimg/class17.gif width=63 height=10>"
				  elseif jingyuan>26000 and jingyuan<=28000 then
				     jibie="<img src=../bbs/userheadimg/class18.gif width=63 height=10>"
				  elseif jingyuan>28000 then
				     jibie="<img src=../bbs/userheadimg/class19.gif width=63 height=10>"					 					 					 					 					 					 					 					 					 
				  end if
%>
  <TABLE align="center" bgColor="#a4b6d7" border=0 cellPadding=0 cellSpacing=0 width="99%">
    <TBODY>
      <TR bgColor=#f2f8ff> 
        <TD width="20%" height="23" vAlign=middle bgColor=#b1d6fa class=font10_5><div align="center">第<%=i%>条</div></TD>
        <TD bgColor=#b1d6fa class=new14><B> 标 题：<%=rs("title")%></B> </TD>
      </TR>
    </TBODY>
  </TABLE>
  <TABLE width="99%" border=0 align="center" cellPadding=0 cellSpacing=0 bgColor="#FFFFFF">
    <TBODY>
      <TR bgColor=#f2f8ff>
        <TD bgColor=#e8f5ff class=font10_5 rowSpan=2 vAlign=top width="20%"><DIV align=center>
            <TABLE border=0 cellPadding=0 cellSpacing=0 width="100%">
              <TBODY>
                <TR>
                  <TD><div align="center"><IMG height=84 src=../bbs/userheadimg/cache5.gif width=84></div></TD>
                </TR>
                <TR> 
                  <TD height=20>·网名：<%=rsa("clubuser_nickname")%></TD>
                </TR>
                <TR> 
                  <TD height=20>·头衔：<%=touxian%></TD>
                </TR>
                <TR> 
                  <TD height=20>·级别：<%=jibie%></TD>
                </TR>
                <TR> 
                  <TD height=20>·资历：<%=tili%></TD>
                </TR>
                <TR> 
                  <TD height=20>·资历：<%=jingyuan%></TD>
                </TR>
                <TR> 
                  <TD height=20>·注册：<%=clubuser_reg_date%></TD>
                </TR>
              </TBODY>
            </TABLE>
          </DIV></TD>
      </TR>
      <TR bgColor=#f2f8ff>
        <TD bgColor=#f6f6f6 class=new14 vAlign=top><TABLE border=0 cellPadding=3 cellSpacing=3 width="100%">
            <TBODY>
              <TR>
                <TD height="160" vAlign=top class=new14>内 容：<%=rs("content")%></TD>
              </TR>
            </TBODY>
          </TABLE>
          <TABLE border=0 cellPadding=0 cellSpacing=5 width="100%">
            <TBODY>
              <TR>
                <TD background="../bbs/images/bg_text1.gif" height="1"></TD>
              </TR>
              <TR>
                <TD align=left class=new14><table width="100%" border=0 cellspacing=0 cellpadding=0>
                    <tr>
                      <td width="52%" class=new14>&nbsp;<font color="#000000">操作选项：[<a class=a03 href=delsms.asp?id=<%=rs("id")%>>删除</a>][<a class=a03 href=editsms.asp?id=<%=rs("id")%>>编辑</a>]<%if request("t")<>"my" then%>[<%if rs("replysign")=0 then%><a class=a03 href=replysms.asp?id=<%=rs("id")%>>回复</a><%else%><font color="#FF0000">已回复</font><%end if%>]<%end if%>
					  </font></td>
                      <td width="48%"><div align="right">发信时间:&nbsp;<%=rs("indate")%>&nbsp;</div></td>
                    </tr>
                  </table></TD>
              </TR>
            </TBODY>
          </TABLE></TD>
      </TR>
    </TBODY>
  </TABLE>
  <%
rsa.close
i=i+1
rs.movenext
loop
rs.close
set rs=nothing
conn.close
end if
'if sysinfo<>"Y" or sys_info<>"Y" then
%>
<!--<TABLE align="center" bgColor="#a4b6d7" border=0 cellPadding=0 cellSpacing=0 width="99%">
  <TBODY>
    <TR bgColor=#f2f8ff> 
      <TD height="23" vAlign=middle bgColor=#b1d6fa class=font10_5> <div align="center"></div>
        </TD>
    </TR>
  </TBODY>
</TABLE>
<TABLE width="99%" border=0 align="center" cellPadding=0 cellSpacing=0 bgColor="#FFFFFF">
  <TBODY>
    <TR bgColor=#f2f8ff> 
      <TD height="400" vAlign=middle bgColor=#f6f6f6 class=font10_5><div align="center">你现在还没有收到论坛短信.</div></TD>
    </TR>
  </TBODY>
</TABLE>-->
<%'end if%>
  <script language="JavaScript" src="../inc/bbstail.js"></script>
</div>
</body>
</html>
