Message_receive.asp
上传用户:jisenq
上传日期:2014-06-29
资源大小:7216k
文件大小:7k
源码类别:

数据库编程

开发平台:

ASP/ASPX

  1. <% Option Explicit %>
  2. <!--#include file="../FS_Inc/Const.asp" -->
  3. <!--#include file="../FS_InterFace/MF_Function.asp" -->
  4. <!--#include file="../FS_Inc/Function.asp" -->
  5. <!--#include file="lib/strlib.asp" -->
  6. <!--#include file="lib/UserCheck.asp" -->
  7. <html xmlns="http://www.w3.org/1999/xhtml">
  8. <title>短信-收件箱-网站内容管理系统</title>
  9. <meta name="keywords" content="风讯cms,cms,FoosunCMS,FoosunOA,FoosunVif,vif,风讯网站内容管理系统">
  10. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  11. <meta content="MSHTML 6.00.3790.2491" name="GENERATOR" />
  12. <meta name="Keywords" content="Foosun,FoosunCMS,Foosun Inc.,风讯,风讯网站内容管理系统,风讯系统,风讯新闻系统,风讯商城,风讯b2c,新闻系统,CMS,域名空间,asp,jsp,asp.net,SQL,SQL SERVER" />
  13. <link href="images/skin/Css_<%=Request.Cookies("FoosunUserCookies")("UserLogin_Style_Num")%>/<%=Request.Cookies("FoosunUserCookies")("UserLogin_Style_Num")%>.css" rel="stylesheet" type="text/css">
  14. <head>
  15. <body>
  16. <table width="98%" border="0" align="center" cellpadding="1" cellspacing="1" class="table">
  17.   <tr>
  18.     <td>
  19.       <!--#include file="top.asp" -->
  20.     </td>
  21.   </tr>
  22. </table>
  23. <table width="98%" height="135" border="0" align="center" cellpadding="1" cellspacing="1" class="table">
  24.   
  25.     <tr class="back"> 
  26.       <td   colspan="2" class="xingmu" height="26"> <!--#include file="Top_navi.asp" --> </td>
  27.     </tr>
  28.     <tr class="back"> 
  29.       <td width="18%" valign="top" class="hback"> <div align="left"> 
  30.           <!--#include file="menu.asp" -->
  31.         </div></td>
  32.       <td width="82%" valign="top" class="hback"><table width="98%" border="0" align="center" cellpadding="5" cellspacing="1" class="table">
  33.           <tr class="hback"> 
  34.             
  35.           <td class="hback"><strong>位置:</strong><a href="../">网站首页</a> &gt;&gt; 
  36.             <a href="main.asp">会员首页</a> &gt;&gt; 短信-收件箱</td>
  37.           </tr>
  38.         </table>
  39.         
  40.       <table width="98%" border="0" align="center" cellpadding="5" cellspacing="1" class="table">
  41.         <tr class="hback"> 
  42.           <td colspan="4" class="hback"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  43.               <tr> 
  44.                 <td width="27%"> 共搜索到<strong> 
  45.                   <%
  46. Dim RsUserFriendObj,RsUserFriendSQL
  47. Dim strpage,strSQLs
  48. strpage=request("page")
  49. if len(strpage)=0 Or strpage<1 or trim(strpage)=""  Then strpage="1"
  50. Set RsUserFriendObj = Server.CreateObject(G_FS_RS)
  51. If cint(Request("type"))=0 or  trim(Request("type"))="" then
  52.   strSQLs = " and FriendType=0 " 
  53. Elseif cint(Request("type"))=1 then
  54.   strSQLs = " and FriendType=1 " 
  55. Elseif cint(Request("type"))=2 then
  56.   strSQLs = " and FriendType=2 " 
  57. End if
  58. RsUserFriendSQL = "Select UserNumber,FriendType,F_UserNumber,AddTime,Updatetime From FS_ME_Friends  where UserNumber='"&Fs_User.UserNumber&"' "& strSQLs &" Order by FriendID desc"
  59. RsUserFriendObj.Open RsUserFriendSQL,User_Conn,1,3
  60. Response.Write "<Font color=red>" & RsUserFriendObj.RecordCount&"</font>"
  61. %>
  62.                   </strong> 个朋友</td>
  63.                 <form action="Message_receive.asp"  method="post" name="myform" id="myform">
  64.                   <td width="7%"><div align="left">空间占用</div></td>
  65.                   <td width="66%">&nbsp;</td>
  66.                 </form>
  67.               </tr>
  68.             </table></td>
  69.         </tr class="hback">
  70.         <tr class="hback"> 
  71.           <td width="34%" class="xingmu"><div align="left"><strong>用户编号</strong></div></td>
  72.           <td width="25%" class="xingmu"><div align="left"><strong>用户名</strong></div></td>
  73.           <td width="41%" class="xingmu"><div align="left"><strong>操作</strong></div></td>
  74.         </tr>
  75.         <%
  76. Dim select_count,select_pagecount,i
  77. if RsUserFriendObj.eof then
  78.    RsUserFriendObj.close
  79.    set RsUserFriendObj=nothing
  80.    Response.Write"<TR><TD colspan=""3""  class=""hback"">没有记录。</TD></TR>"
  81. else
  82. RsUserFriendObj.pagesize = 15
  83. RsUserFriendObj.absolutepage=cint(strpage)
  84. select_count=RsUserFriendObj.recordcount
  85. select_pagecount=RsUserFriendObj.pagecount
  86. for i=1 to RsUserFriendObj.pagesize
  87. if RsUserFriendObj.eof Then exit For 
  88. Dim Returvaluestr
  89. Returvaluestr = Fs_User.GetFriendName(RsUserFriendObj("F_UserNumber"))
  90. if RsUserFriendObj("F_UserNumber") = "0" then
  91.   exit For 
  92. Else
  93. %>
  94.         <tr class="hback"> 
  95.           <td class="hback"><div align="left">·<a href="ShowUser.asp?UserNumber=<% = RsUserFriendObj("F_UserNumber")%>"> 
  96.               <% = RsUserFriendObj("F_UserNumber")%></a></div></td>
  97.           <td class="hback"><div align="left"><a href="ShowUser.asp?UserNumber=<% = RsUserFriendObj("F_UserNumber")%>"> <% = Returvaluestr%></a></div></td>
  98.           <td class="hback"><div align="left"> <a href="message_write.asp?ToUserNumber=<% = RsUserFriendObj("F_UserNumber")%>">发信</a>|<a href="book_write.asp?ToUserNumber=<% = RsUserFriendObj("F_UserNumber")%>">留言</a>|<a href="Friend.asp?Action=del&UserNumber=<% = RsUserFriendObj("F_UserNumber")%>">删除</a>|<a href="Friend_Move.asp?UserNumber=<% = RsUserFriendObj("F_UserNumber")%>">转移</a></div></td>
  99.         </tr>
  100.         <%
  101. End if
  102.   RsUserFriendObj.MoveNext
  103.   Next
  104.   %>
  105.         <tr class="hback"> 
  106.           <td colspan="4" class="xingmu"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
  107.               <tr> 
  108.                 <td width="80%"> <span class="top_navi"> 
  109.                   <% 
  110. Response.write"&nbsp;共<b>"& select_pagecount &"</b>页<b>&nbsp;" & select_count &"</b>条记录,本页是第<b>"& strpage &"</b>页。"
  111. if int(strpage)>1 then
  112. Response.Write"&nbsp;<a href=Callboard.asp?page=1&Keyword="&Request("Keyword")&"&Name="& Request("Name")&"&searchtype="&Request("searchtype")&">第一页</a>&nbsp;&nbsp;"
  113. Response.Write"&nbsp;<a href=Callboard.asp?page="&cstr(cint(strpage)-1)&"&Keyword="&Request("Keyword")&"&Name="& Request("Name")&"&searchtype="&Request("searchtype")&">上一页</a>&nbsp;&nbsp;"
  114. End if
  115. If int(strpage)<select_pagecount then
  116. Response.Write"&nbsp;<a href=Callboard.asp?page="&cstr(cint(strpage)+1)&"&Keyword="&Request("Keyword")&"&Name="& Request("Name")&"&searchtype="&Request("searchtype")&">下一页</a>&nbsp;"
  117. Response.Write"&nbsp;<a href=Callboard.asp?page="& select_pagecount &"&Keyword="&Request("Keyword")&"&Name="& Request("Name")&"&searchtype="&Request("searchtype")&">最后一页</a>&nbsp;&nbsp;"
  118. End if
  119. Response.Write"<br>"
  120. RsUserFriendObj.close
  121. Set RsUserFriendObj=nothing
  122. End if
  123. %>
  124.                   </SPAN></td>
  125.               </tr>
  126.             </table></td>
  127.         </tr>
  128.       </table> </td>
  129.     </tr>
  130.     <tr class="back"> 
  131.       <td height="20"  colspan="2" class="xingmu"> <div align="left"> 
  132.           <!--#include file="Copyright.asp" -->
  133.         </div></td>
  134.     </tr>
  135. </table>
  136. </body>
  137. </html>
  138. <%
  139. Set Fs_User = Nothing
  140. %>
  141. <!--Powsered by Foosun Inc.,Product:FoosunCMS V4.0系列-->