in_topmb.asp
上传用户:stone001
上传日期:2016-10-28
资源大小:685k
文件大小:5k
源码类别:

WEB源码(ASP,PHP,...)

开发平台:

ASP/ASPX

  1. <%
  2. dim u_ID,u_sex,u_power,u_newmsg
  3. dim u_regdate
  4. dim u_icn,u_sf
  5. sqlstr="SELECT ID,sex,regdate,power,fobdate,newmsg FROM tblmates WHERE name='"&u_name&"'"
  6. rs.open sqlstr,conn,1,1
  7. '判断是否存在
  8. if rs.eof AND rs.bof then
  9. Session.Abandon
  10. Response.Redirect "log_err.asp?cmd=twosys"
  11. end if
  12. u_ID=rs("ID")
  13. u_sex=rs("sex")
  14. u_regdate=FormatDateTime(rs("regdate"),2)
  15. u_power=rs("power")
  16. u_fobdate=rs("fobdate")
  17. if isNULL(rs("newmsg")) then
  18. u_newmsg=0
  19. else
  20. u_newmsg=rs("newmsg")
  21. end if
  22. rs.close
  23. IF u_power<2 THEN
  24. if u_sex=true then
  25. u_icn="img/icn_gg.gif"
  26. else
  27. u_icn="img/icn_mm.gif"
  28. end if
  29. ELSE
  30. u_icn="img/icn_adm1.gif"
  31. END IF
  32. Select Case u_power
  33. Case 0
  34. u_sf="待审"
  35. Case 2
  36. u_sf="管理员"
  37. Case Else
  38. u_sf="成员"
  39. End Select
  40. '总管判断
  41. IF u_name=DEF_sysadm THEN
  42. u_icn="img/icn_admsys.gif"
  43. u_sf="总管"
  44. END IF
  45. %>
  46. <table align="center" width="700" height="95" border="0" cellspacing="0" cellpadding="0"><tr>
  47. <td width="100" height="100%" align="center">
  48. <img align="absmiddle" src="<% =DEF_logo %>" width="100" height="90" border="0" vspace="0" hspace="0">
  49. </td>
  50. <td width="300" align="center">
  51. <%
  52. IF right(DEF_top,3)="swf" THEN
  53. %>
  54. <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
  55.  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
  56.  WIDTH="<% =DEF_top_w %>" HEIGHT="<% =DEF_top_h %>" id="welcome" ALIGN="">
  57.  <PARAM NAME=movie VALUE="<% =DEF_top %>"> 
  58.  <PARAM NAME=quality VALUE=high>
  59.  <EMBED src="<% =DEF_top %>" quality=high  WIDTH="<% =DEF_top_w %>" HEIGHT="<% =DEF_top_h %>" NAME="welcome" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
  60. </OBJECT>
  61. <%  ELSE %>
  62. <img align="absmiddle" src="<% =DEF_top %>" border="0" onMouseOver="javascript:if(this.width>280)this.width=280;" onLoad="javascript:if(this.width>280)this.width=280;">
  63. <%
  64. END IF %>
  65. </td>
  66. <td>
  67. <table align="center" width="100%" height="86" cellspacing="0" cellpadding="0" style="border:2px solid <% =bg1 %>; background-color:<% =bg3 %>" class="intbl"><tr>
  68. <td width="200" height="100%">
  69. <table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0" style="padding-left:4px; padding-top:1px">
  70. <tr><td width="100%" height="25%">
  71. <img src="<% =u_icn %>" border="0" align="absmiddle">&nbsp;<font class="ft1"><% =u_name %></font>
  72. <% if u_name=DEF_sysadm then %>
  73. <a href="sys_confirm.asp" class="ccjh">【后台】</a>
  74. <% end if %>
  75. </td></tr>
  76. <tr><td width="100%" height="25%">
  77. <img src="img/icn_sms.gif" border="0" align="absmiddle">
  78. <% if u_newmsg=0 then %>
  79. <a href="msgbox.asp">新 消 息 [0]</a>
  80. <% else %>
  81. <% if InStr(1,Request.ServerVariables("URL"),"msg",1)=0 then %>
  82. <bgsound src="sound/msg.wav" loop="1">
  83. <% end if %>
  84. <a href="msgbox.asp" target="_blank"><span style="behavior:url(font.htc)">有 消 息 </span>[<font class="ft1"><b><% =u_newmsg %></b></font>]</a>
  85. <% end if %>
  86. &nbsp;&nbsp;<img src="img/icn_fj.gif" border="0" align="absmiddle">&nbsp;<a href="fjlist.asp">共享附件</a>
  87. </td></tr>
  88. <tr><td width="100%" height="25%">
  89. <img src="img/icn_info.gif" border="0" align="absmiddle">&nbsp;<a href="uinfo.asp">成员中心</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  90. <img src="img/icn_help.gif" border="0" align="absmiddle">&nbsp;<a href="uhelp.asp">班级规则</a>
  91. </td></tr>
  92. <tr><td width="100%" height="25%" align="right">
  93. [身份:<font class="ft1"><% =u_sf %></font>]
  94. &nbsp;&nbsp;&nbsp;&nbsp;<a href="logout.asp">[退出登录]</a>
  95. &nbsp;&nbsp;
  96. </td></tr>
  97. </table>
  98. </td>
  99. <td height="100%">
  100. <table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0" class="intbl">
  101. <tr><td width="100%"><a href="phbook.asp" class="btn"><img src="img/skin/<% =defstyle %>/btn_photo.gif" border="0" alt="班级相册<br>(正式成员版面)"></a></td></tr>
  102. <tr><td width="100%"><a href="txbook.asp" class="btn"><img src="img/skin/<% =defstyle %>/btn_txb.gif" border="0" alt="班级通讯簿<br>(正式成员版面)"></a></td></tr>
  103. <tr><td width="100%"><a href="talkbook.asp" class="btn"><img src="img/skin/<% =defstyle %>/btn_bbs.gif" border="0" alt="班级讨论区"></a></td></tr>
  104. </table>
  105. </td>
  106. </tr></table>
  107. </td>
  108. </tr></table>
  109. <table align="center" width="700" height="25" border="0" cellspacing="0" cellpadding="0" style="border:2px solid <% =bg1 %>; border-bottom:none; background-color:<% =bg3 %>"><tr>
  110. <td width="50%" height="100%">
  111. <b>&nbsp;<% =DEF_classname %></b>
  112. </td>
  113. <td width="50%" align="right">
  114. <b>班级网址:<a href="index.asp"><% =DEF_weburl %></a>&nbsp;</b>
  115. </td>
  116. </tr></table>