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

数据库编程

开发平台:

ASP/ASPX

  1. <%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
  2. <% Option Explicit %>
  3. <!--#include file="../FS_Inc/Const.asp"-->
  4. <!--#include file="../FS_InterFace/MF_Function.asp" -->
  5. <!--#include file="../FS_InterFace/ns_Function.asp" -->
  6. <!--#include file="../FS_Inc/Function.asp" -->
  7. <!--#include file="../FS_Inc/Func_page.asp" -->
  8. <%
  9. Dim Conn,User_Conn
  10. MF_Default_Conn
  11. Dim Configobj,PageS,sql_1,MSTitle,ShowIP,s_IsUser,Style
  12. Set Configobj=server.CreateObject (G_FS_RS)
  13. sql_1="select ID,Title,IPShow,IsUser,IsAut,PageSize,Style From FS_WS_Config"
  14. configobj.open sql_1,Conn,1,1
  15. if not configobj.eof then
  16. PageS=configobj("PageSize")
  17. MSTitle=configobj("Title")
  18. ShowIP=configobj("IPShow")
  19. s_IsUser = configobj("IsUser")
  20. Style = configobj("Style")
  21. if Style<>"" then
  22. Style = Style
  23. else
  24. Style = "3"
  25. end if
  26. end if
  27. Response.Cookies("FoosunUserCookies")("UserLogin_Style_Num") = Style
  28. %>
  29. <html>
  30. <HEAD>
  31. <TITLE>FoosunCMS留言系统公告信息</TITLE>
  32. <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
  33. <link href="../<% = G_USER_DIR %>/images/skin/Css_<%=Request.Cookies("FoosunUserCookies")("UserLogin_Style_Num")%>/<%=Request.Cookies("FoosunUserCookies")("UserLogin_Style_Num")%>.css" rel="stylesheet" type="text/css">
  34. </HEAD>
  35. <%
  36. if NoSqlHack(request.QueryString("action"))="showone" and NoSqlHack(Request.QueryString("boardid"))="0" then
  37. dim TellRs,Sql
  38. Set TellRs=server.CreateObject (G_FS_RS)
  39. Sql="select ID,Topic,Content,Person,IsUse,PV,AddUser,AddDate From FS_WS_NewsTell where IsUse='1'"
  40. TellRs.open Sql,Conn,1,1
  41. if not TellRs.eof then
  42. %>
  43.       <table width="98%" border="0" align="center" cellpadding="4" cellspacing="1" class="table">
  44.   <tr>
  45.     <th valign="top" align="middle" class="xingmu"><%=TellRs("Topic")%></th>
  46.   </tr>
  47.   <tr>
  48.     <td class="hback" style="LEFT: 0px; WIDTH: 100%; WORD-WRAP: break-word" valign="top"><br />
  49.         <blockquote> <%=TellRs("Content")%> </blockquote>
  50.     </td>
  51.   </tr>
  52.   <tr>
  53.     <td class="hback" valign="center">
  54.       <table cellspacing="0" cellpadding="0" width="100%" border="0">
  55.         <tr>
  56.           <td class="tablebody2" align="left">&nbsp;&nbsp;&nbsp;<b>发布人</b>: 
  57.             <%=TellRs("AddUser")%>&nbsp;
  58.             <bgsound src="dfdf" border="0" />
  59.           </td>
  60.           <td class="hback" align="right"><b>发布时间</b>: 
  61.              <%=TellRs("AddDate")%>&nbsp;&nbsp;&nbsp;</td>
  62.         </tr>
  63.       </table>
  64.     </td>
  65.   </tr>
  66. </table>
  67. <%
  68. end if
  69. Set TellRs=nothing
  70. else
  71. Response.Write("请不要直接提交本页!")
  72. Response.end 
  73. end if
  74. Set Conn=nothing
  75. %>
  76. </body>
  77. </html>