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

数据库编程

开发平台:

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. <%
  8. Dim straction
  9. straction = Request("action")
  10. if straction="Unmessage" then
  11. User_Conn.execute("update FS_ME_Users set ismessage= 0 where UserNumber='"& Fs_User.UserNumber &"'")
  12. strShowErr = "<li>订阅本站资料取消</li>"
  13. Response.Redirect("lib/Success.asp?ErrCodes="&Server.URLEncode(strShowErr)&"&ErrorUrl=../main.asp")
  14. Response.end
  15. Elseif straction = "ismessage" then
  16. User_Conn.execute("update FS_ME_Users set ismessage= 1 where UserNumber='"& Fs_User.UserNumber &"'")
  17. strShowErr = "<li>订阅本站资料成功</li>"
  18. Response.Redirect("lib/Success.asp?ErrCodes="&Server.URLEncode(strShowErr)&"&ErrorUrl=../main.asp")
  19. Response.end
  20. Elseif straction = "Open" then
  21. User_Conn.execute("update FS_ME_Users set isOpen= 1 where UserNumber='"& Fs_User.UserNumber &"'")
  22. strShowErr = "<li>对外开放资料开启</li>"
  23. Response.Redirect("lib/Success.asp?ErrCodes="&Server.URLEncode(strShowErr)&"&ErrorUrl=../main.asp")
  24. Response.end
  25. Elseif straction = "Close" then
  26. User_Conn.execute("update FS_ME_Users set isOpen= 0 where UserNumber='"& Fs_User.UserNumber &"'")
  27. strShowErr = "<li>对外开放资料取消</li>"
  28. Response.Redirect("lib/Success.asp?ErrCodes="&Server.URLEncode(strShowErr)&"&ErrorUrl=../main.asp")
  29. Response.end
  30. End if
  31. %>
  32. <html xmlns="http://www.w3.org/1999/xhtml">
  33. <title>User Manage Center-网站内容管理系统</title>
  34. <meta name="keywords" content="风讯cms,cms,FoosunCMS,FoosunOA,FoosunVif,vif,风讯网站内容管理系统">
  35. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  36. <meta content="MSHTML 6.00.3790.2491" name="GENERATOR" />
  37. <link href="images/skin/Css_<%=Request.Cookies("FoosunUserCookies")("UserLogin_Style_Num")%>/<%=Request.Cookies("FoosunUserCookies")("UserLogin_Style_Num")%>.css" rel="stylesheet" type="text/css">
  38. <style type="text/css">
  39. <!--
  40. .STYLE1 {font-size: 14px}
  41. -->
  42. </style>
  43. <head></head>
  44. <body>
  45. <table width="98%" border="0" align="center" cellpadding="1" cellspacing="1" class="table">
  46.   <tr>
  47.     <td>
  48.       <!--#include file="top.asp" -->
  49.     </td>
  50.   </tr>
  51. </table>
  52. <table width="98%" height="135" border="0" align="center" cellpadding="1" cellspacing="1" class="table">
  53.     <tr class="back"> 
  54.       <td   colspan="2" class="xingmu" height="26"> <!--#include file="Top_navi.asp" -->
  55.     </td>
  56.     </tr>
  57.     <tr class="back"> 
  58.       <td width="18%" valign="top" class="hback"> <div align="left"> 
  59.           <!--#include file="menu.asp" -->
  60.         </div></td>
  61.       <td width="82%" valign="top" class="hback"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  62.           <tr> 
  63.             <td width="60%"  valign="top"> 
  64.               <table width="98%" height="281" border="0" align="center" cellpadding="3" cellspacing="1" class="table">
  65.               <tr> 
  66.                 <td height="29" colspan="4"  class="hback_1"> <span class="bigtitle"><strong>·基本信息</strong></span><strong><a href="ShowUser.asp?UserNumber=<%=Fs_User.UserNumber%>" target="_blank">&lt;详细信息&gt;</a>     推荐:</strong><a href="award/award.asp?action=myaward">积分抽奖</a></td>
  67.               </tr>
  68.               <tr> 
  69.                 <td width="18%" height="24" class="hback"> <div align="center" class="hback">用户姓名</div></td>
  70.                 <td width="36%" class="hback"><%=Fs_User.RealName%></td>
  71.                 <td colspan="2" rowspan="7" class="hback"> <div align="center"></div>
  72.                   <div align="center"> 
  73.                     <%
  74.   Dim strHeadPicsizearr,strHeadPicsizearrw,strHeadPicsizearrh
  75.   if not isNull(Fs_User.HeadPicsize) then 
  76.   strHeadPicsizearr = split(Fs_User.HeadPicsize,",")
  77.   strHeadPicsizearrw = strHeadPicsizearr(0)
  78.   strHeadPicsizearrh = strHeadPicsizearr(1)
  79.   End if
  80.   if Trim(Fs_User.HeadPic) <>"" or len(Trim(Fs_User.HeadPic)) >0 then
  81.   %>
  82.                     <table width="42" border="0" cellpadding="1" cellspacing="1" bgcolor="#CCCCCC" class="table">
  83.                       <tr> 
  84.                         <td height="40" bgcolor="#FFFFFF"><img src="<%=Fs_User.HeadPic%>" width="<% = strHeadPicsizearr(0)%>" height="<% = strHeadPicsizearr(1)%>"></td>
  85.                       </tr>
  86.                     </table>
  87.                   </div>
  88.                   <div align="center"></div></td>
  89.                 <%Else%>
  90.                 <img src="images/noHeadpic.gif" border="0"> 
  91.                 <%End if%>
  92.               </tr>
  93.               <tr> 
  94.                 <td height="24" class="hback"> <div align="center" class="hback">用户昵称</div></td>
  95.                 <td class="hback"><%=Fs_User.NickName%></td>
  96.               </tr>
  97.               <tr> 
  98.                 <td height="24" class="hback"> <div align="center" class="hback">用 户 名</div></td>
  99.                 <td class="hback"><%=Fs_User.UserName%></td>
  100.               </tr>
  101.               <tr> 
  102.                 <td height="24" class="hback"> <div align="center" class="hback">用户编号</div></td>
  103.                 <td class="hback"><%=Fs_User.UserNumber%></td>
  104.               </tr>
  105.               <tr> 
  106.                 <td height="24" class="hback"> <div align="center" class="hback">电子邮件</div></td>
  107.                 <td class="hback"><%=Fs_User.Email%> </td>
  108.               </tr>
  109.               <tr> 
  110.                 <td height="24" class="hback"> <div align="center" class="hback">登 陆 IP</div></td>
  111.                 <td height="24" class="hback"><%=Fs_User.LastLoginIP%></td>
  112.               </tr>
  113.               <tr> 
  114.                 <td height="24" class="hback"> <div align="center" class="hback">到期日期</div></td>
  115.                 <td class="hback"> <%
  116.    if Fs_User.CloseTime ="3000-1-1" then
  117.       Response.Write"没限制"
  118. Else
  119. Response.Write Fs_User.CloseTime
  120. End if
  121.   %> </td>
  122.               </tr>
  123.               <tr> 
  124.                 <td height="24" class="hback"> <div align="center" class="hback">登陆时间</div></td>
  125.                 <td class="hback"><%=Fs_User.LastLoginTime%></td>
  126.                 <td width="18%" class="hback"> <div align="center" class="hback">资料开放</div></td>
  127.                 <td width="28%" class="hback"> <%
  128.     if Fs_User.isOpen=0 then
  129. Response.Write("<a href=""main.asp?action=Open"">隐私</a>")
  130. Else
  131. Response.Write("<a href=""main.asp?action=Close"">开放</a>")
  132. End if
  133.   %> </td>
  134.               </tr>
  135.               <tr> 
  136.                 <td height="24" class="hback"><div align="center" class="hback">注册日期</div></td>
  137.                 <td class="hback"><%=Fs_User.RegTime%></td>
  138.                 <td class="hback"><div align="center" class="hback">订阅本站</div></td>
  139.                 <td class="hback"> <%
  140.     if Fs_User.ismessage=0 then
  141. Response.Write("<a href=main.asp?Action=ismessage>未定阅</a>")
  142. Else
  143. Response.Write("<a href=main.asp?action=Unmessage>已订阅</a>")
  144. End if
  145.   %> </td>
  146.               </tr>
  147.               <tr>
  148.                 <td height="24" class="hback"><div align="center" class="hback">登陆次数</div></td>
  149.                 <td class="hback"><%=Fs_User.NumLoginNum%></td>
  150.                 <td class="hback">&nbsp;</td>
  151.                 <td class="hback">&nbsp;</td>
  152.               </tr>
  153.             </table>
  154.               
  155.             <table width="98%" height="97" border="0" align="center" cellpadding="3" cellspacing="1" class="table">
  156.               <tr> 
  157.                 <td height="22" colspan="4" class="hback_1"><span class="bigtitle"><strong>·资源管理</strong></span></td>
  158.               </tr>
  159.               <tr> 
  160.                 <td width="18%" height="24" class="hback"><div align="center"><a href="infomanage.asp">我的专栏</a></div></td>
  161.                 <td width="82%" colspan="3" class="hback">
  162. <%
  163. Dim RsInfoObj
  164. Set RsInfoObj = server.CreateObject(G_FS_RS)
  165. RsInfoObj.open "select  Top 4 ClassID,ClassCName,ClassEName,ParentID,UserNumber,ClassTypes,AddTime,ClassContent From FS_ME_InfoClass where ParentID=0 and UserNumber='"& Fs_User.UserNumber&"' order by ClassID desc",User_Conn,1,1
  166.  if Not RsInfoObj.eof then
  167.  Do while Not RsInfoObj.eof
  168. Response.Write "<a href=""ShowInfoClass.asp?ClassID="& RsInfoObj("ClassID") & "&UserNumber=" & RsInfoObj("UserNumber") & """ Title=""" & RsInfoObj("ClassContent") & """>" & RsInfoObj("ClassCName") & "</a>┆"
  169.   RsInfoObj.movenext
  170.   Loop
  171. Response.Write "<a href=""infomanage.asp"">More..."
  172. Else
  173.    Response.Write("没有专栏,<a href=""infomanage.asp"" title=""建立专栏""><b>建立</b></a>")
  174. End if
  175. RsInfoObj.close:set RsInfoObj = nothing
  176.   %>
  177.                   </a> </td>
  178.               </tr>
  179.               <tr> 
  180.                 <td height="24" class="hback"><div align="center"><a href="GroupClass.asp">我的社群</a></div></td>
  181.                 <td colspan="3" class="hback"> <%
  182. Dim RsGroupObj
  183. Set RsGroupObj = server.CreateObject(G_FS_RS)
  184. RsGroupObj.open "select  Top 4 gdID,ClassID,Title,Content,UserNumber,isLock From FS_ME_GroupDebateManage where UserNumber='"& Fs_User.UserNumber&"' order by ClassID desc",User_Conn,1,1
  185.  if Not RsGroupObj.eof then
  186.  Do while Not RsGroupObj.eof
  187.   Response.Write "<a href=""Group_unit.asp?GDID="& RsGroupObj("gdID")& """ Title=""" & RsGroupObj("Content") & """>" & RsGroupObj("Title") & "</a>&nbsp;&nbsp;&nbsp;"&vbNewLine
  188.   if cbool(RsGroupObj("isLock")) then response.Write(" 等待审核... ")
  189.   Response.Write "<a href=""GroupClass.asp?Act=Edit&gdID="& RsGroupObj("gdID")& """>〖修改〗</a>&nbsp;&nbsp;&nbsp;"
  190.   RsGroupObj.movenext
  191.   Loop
  192. Response.Write "<a href=""GroupClass.asp"">More..."
  193. Else
  194.    Response.Write("没有社群,<a href=""GroupClass.asp?Act=Add"" title=""建立社群""><b>建立</b></a>")
  195. End if
  196. RsGroupObj.close:set RsGroupObj = nothing
  197.   %> </td>
  198.               </tr>
  199.             </table>
  200. <%If  Fs_User.isCorp = 0  then%>
  201.               <table width="98%"  border="0" align="center" cellpadding="3" cellspacing="1" class="table">
  202.                 <tr> 
  203.                   <td height="28" colspan="4" class="hback_1"><span class="bigtitle"><strong>·企业资料</strong></span></td>
  204.                 </tr>
  205.                 <tr> 
  206.                   <td height="37" colspan="4" class="hback"> 
  207.                     <div align="left">您没开通企业资料!<a href="OpenCorp.asp">现在开通</a> 
  208.                     </div></td>
  209.                 </tr>
  210.               </table> 
  211.               <%Else%>          
  212.               <table width="98%"  border="0" align="center" cellpadding="3" cellspacing="1" class="table">
  213.                 <tr> 
  214.                   <td height="26" colspan="4" class="hback_1"><span class="bigtitle"><strong>·企业资料</strong></span>     <a href="OpenCorp.asp" class="sd">修改</a></td>
  215.                 </tr>
  216. <%
  217. Dim RsCorpObj
  218. Set RsCorpObj = server.CreateObject(G_FS_RS)
  219. RsCorpObj.open "select  CorpID,C_Name,C_ShortName,C_Province,C_City,C_Address,C_PostCode,C_Tel,C_Fax,C_BankName,C_BankUserName,isYellowPage,isYellowPageCheck From FS_ME_CorpUser where UserNumber='"& Fs_User.UserNumber&"'",User_Conn,1,1
  220. if Not RsCorpObj.eof then
  221. %>
  222.                 <tr> 
  223.                   <td width="18%" height="24" class="hback"> <div align="center">公司名称</div></td>
  224.                   <td width="82%" colspan="3" class="hback"> <% = RsCorpObj("C_Name") %> </td>
  225.                 </tr>
  226.                 <tr> 
  227.                   <td height="24" class="hback"> <div align="center">公司简称</div></td>
  228.                   <td colspan="3" class="hback"> <% = RsCorpObj("C_ShortName") %> </td>
  229.                 </tr>
  230.                 <tr> 
  231.                   <td height="24" class="hback"> <div align="center">公司地址</div></td>
  232.                   <td colspan="3" class="hback"> <% = RsCorpObj("C_Province") &RsCorpObj("C_City") &RsCorpObj("C_Address")%>,&nbsp;&nbsp;邮编:<% = RsCorpObj("C_PostCode") %> </td>
  233.                 </tr>
  234.                 <tr> 
  235.                   <td height="24" class="hback"> <div align="center">公司电话</div></td>
  236.                   <td colspan="3" class="hback"> <% = RsCorpObj("C_Tel") %> </td>
  237.                 </tr>
  238.                 <tr> 
  239.                   <td height="24" class="hback"> <div align="center">公司传真</div></td>
  240.                   <td colspan="3" class="hback"> <% = RsCorpObj("C_Fax") %> </td>
  241.                 </tr>
  242.                 <tr> 
  243.                   <td height="24" class="hback"> <div align="center">银行帐户</div></td>
  244.                   <td colspan="3" class="hback">银行: <% = RsCorpObj("C_BankName") %>,帐号: <% = RsCorpObj("C_BankUserName") %> </td>
  245.                 </tr>
  246.                 <tr> 
  247.                   <td height="24" class="hback"> <div align="center">黄页开通</div></td>
  248.                   <td colspan="3" class="hback">
  249.   <%
  250.      if  RsCorpObj("isYellowPage") = 0 then
  251.   Response.Write("还没开通黄页,&nbsp;&nbsp;<a href=""Corp_Info.asp?CorpID="&RsCorpObj("CorpID") &"&YellowPage=Open""><b>开通</b></a>") 
  252.  Else
  253.    if RsCorpObj("isYellowPageCheck")=0 then
  254. Response.Write("已经开通黄页,&nbsp;&nbsp;还没通过")
  255. Else
  256. Response.Write("已经开通黄页,&nbsp;&nbsp;<a href=""Corp_Info.asp?CorpID="&RsCorpObj("CorpID") &"&YellowPage=Close""><b>关闭黄页功能</b>")
  257. End if
  258.  End if
  259.  %> </td>
  260.                 </tr>
  261.                 <%
  262. Else
  263.      Response.Write("<tr><td height=""40"" colspan=""4"" class=""hback""><b>是企业会员,但没找到企业资料</b></a></td></tr>")
  264. End if
  265. RsCorpObj.close
  266. Set RsCorpObj = nothing
  267. %>
  268.               </table>
  269.   <%End if%>
  270.     </td>
  271.             <td valign="top"> <table width="98%" height="176" border="0" align="center" cellpadding="1" cellspacing="1" class="table">
  272.                 <tr> 
  273.                   <td height="27"  class="hback_1"><span class="bigtitle"><strong>·最新公告</strong></span></td>
  274.                 </tr>
  275.                 <tr> 
  276.                   <td valign="top" class="hback">
  277.   <%
  278. Dim RsNewsObj
  279. Set RsNewsObj = server.CreateObject(G_FS_RS)
  280. RsNewsObj.open "select  Top 6 NewsID,Title,Content,Addtime,GroupID,NewsPoint,isLock From FS_ME_News where Islock=0 order by NewsID desc",User_Conn,1,1
  281.  if Not RsNewsObj.eof then
  282.  Do while Not RsNewsObj.eof
  283. Response.Write "<img src=""images/dot.gif"" border=""0""></img><a href=""ShowCallboard.asp?NewsID="& RsNewsObj("NewsID") & """ Title=""" & RsNewsObj("Content") & """>" & RsNewsObj("Title") & "</a>&nbsp;<font style=""font-size:9px"">("& year(RsNewsObj("Addtime"))&"-"&month(RsNewsObj("Addtime"))&"-"&day(RsNewsObj("Addtime")) &")</font><br>"
  284.   RsNewsObj.movenext
  285.   Loop
  286. Else
  287.    Response.Write("没有公告")
  288. End if
  289. RsNewsObj.close:set RsNewsObj = nothing
  290.   %>
  291.                     <table width="98%" border="0" cellspacing="0" cellpadding="0">
  292.                       <tr>
  293.                         <td><div align="right"><a href="callboard.asp">&gt;&gt;more..</a></div></td>
  294.                       </tr>
  295.                     </table> </td>
  296.                 </tr>
  297.               </table>
  298.               
  299.             <table width="98%" height="198" border="0" align="center" cellpadding="3" cellspacing="1" class="table">
  300.               <tr> 
  301.                   <td width="50%" height="27"  class="hback_1"><span class="bigtitle"><strong>·我的好友</strong></span></td>
  302.                 </tr>
  303.                 <tr> 
  304.                   
  305.                 <td height="167" valign="top" class="hback"> 
  306.                   <%
  307. Dim RsFriendObj
  308. Set RsFriendObj = server.CreateObject(G_FS_RS)
  309. RsFriendObj.open "select  Top 7 FriendID,UserNumber,FriendType,F_UserNumber,AddTime,Updatetime From FS_ME_Friends where UserNumber='"& Fs_User.UserNumber &"' and FriendType = 0 order by UpdateTime desc,FriendID desc",User_Conn,1,3
  310.  if Not RsFriendObj.eof then
  311.     Response.Write("<table width=""100%"" border=""0"" cellspacing=""0"" cellpadding=""0"">")
  312.  Do while Not RsFriendObj.eof
  313.   Dim Tmp_UserNumber,Tmp_UserName,strsendMail,RsTmpobj
  314. Set RsTmpobj = server.CreateObject(G_FS_RS)
  315. RsTmpobj.open "Select  top 1 NickName,UserName From FS_ME_Users where UserNumber = '"& RsFriendObj("F_UserNumber") &"'",User_Conn,1,1
  316. If Not RsTmpobj.eof then
  317. Tmp_UserNumber =RsTmpobj("NickName") 
  318. Tmp_UserName  =RsTmpobj("UserName") 
  319. Strsendmail ="<a href=message_write.asp?ToUserNumber="&RsFriendObj("F_UserNumber")&" title=""发送消息"">短信</a>&nbsp;|&nbsp;<a href=book_write.asp?ToUserNumber="&RsFriendObj("F_UserNumber")&"&M_Type=0 title=""发送留言"">留言</a>"
  320. Response.Write "<tr><td width=""70%""><img src=""images/dot.gif"" border=""0""></img><a href=""ShowUser.asp?UserNumber="& RsFriendObj("F_UserNumber") & """ target=""_blank"">" & Tmp_UserNumber & "("&Tmp_UserName&")</td><td align=""center"">"& Strsendmail &"</a></td></tr>"
  321.   RsFriendObj.movenext
  322. Else
  323. RsFriendObj.movenext
  324. End if
  325. Loop
  326. Response.Write("</table>")
  327. Else
  328.    Response.Write("没有好友")
  329. End if
  330. set RsTmpobj = nothing
  331. RsFriendObj.close
  332. set RsFriendObj = nothing
  333.   %>
  334.                   </td>
  335.                 </tr>
  336.               </table>
  337.             <table width="98%" height="124" border="0" align="center" cellpadding="3" cellspacing="1" class="table">
  338.               <tr> 
  339.                 <td width="50%" height="27"  class="hback_1"><span class="bigtitle"><strong>·排行</strong></span>(<a href="Top_User.asp?type=int" target="sys_Frame">积分</a>┊<a href="Top_User.asp?type=money" target="sys_Frame">金币</a>┊</span><a href="Top_User.asp?type=active" target="sys_Frame">最活跃</a>┊<a href="Top_User.asp?type=hits" target="sys_Frame">人气</a>)</td>
  340.               </tr>
  341.               <tr> 
  342.                 <td height="94" valign="top" class="hback"><iframe src="top_user.asp?type=int" name="sys_Frame" scrolling="no" frameborder="0" align="middle" width="100%" height="175"></iframe></td>
  343.               </tr>
  344.             </table>
  345.             
  346.           </td>
  347.           </tr>
  348.         </table></td>
  349.     </tr>
  350.     <tr class="back"> 
  351.       <td height="20"  colspan="2" class="xingmu"> <div align="left"> 
  352.           <!--#include file="Copyright.asp" -->
  353.         </div></td>
  354.     </tr>
  355. </table>
  356. </body>
  357. </html>
  358. <%
  359. Set Fs_User = Nothing
  360. %>
  361. <!--Powsered by Foosun Inc.,Product:FoosunCMS V4.0系列-->