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

数据库编程

开发平台:

ASP/ASPX

  1. <% Option Explicit %>
  2. <!--#include file="../../FS_Inc/Const.asp" -->
  3. <!--#include file="../../FS_Inc/Function.asp" -->
  4. <!--#include file="../../FS_InterFace/MF_Function.asp" -->
  5. <!--#include file="../../FS_InterFace/MF_LoadLabel.asp" -->
  6. <%
  7. Dim conn,Str_NS_NewsID,Rs_NS_News,Str_NS_News_Templet,StrSql
  8. Dim f_Phy_Templet,f_FSO_OBJ,f_FILE_OBJ,f_FILE_STREAM_OBJ,f_File_Content,f_PAGES_DICT_OBJ,Page
  9. MF_Default_Conn
  10. Str_NS_NewsID=NoSqlHack(Trim(Request("NewsID")))
  11. Page=NoSqlHack(Trim(Request("Page")))
  12. If isnumeric(Page) then
  13. Page=Cint(Page)
  14. Else
  15. Page=0
  16. End if
  17. If Str_NS_NewsID<>"" Then
  18. StrSql="SELECT Templet FROM FS_NS_News WHERE isLock=0 AND isDraft =0 and isRecyle=0 and NewsID='"&Str_NS_NewsID&"'"
  19. 'Response.Write StrSql
  20. Set Rs_NS_News=conn.Execute(StrSql)
  21. If Not Rs_NS_News.eof Then
  22. Str_NS_News_Templet=Rs_NS_News(0)
  23. Else
  24. Response.Write "<script language=""JavaScript"" type=""text/javascript"" src=""../FS_Inc/PublicJs.js""></script>"&vbcrlf
  25. Response.Write "<SCRIPT LANGUAGE=""JavaScript"">ShowErr(""错误:n参数错误"");</SCRIPT>"
  26. End If
  27. Else
  28. Response.Write "<script language=""JavaScript"" type=""text/javascript"" src=""../FS_Inc/PublicJs.js""></script>"&vbcrlf
  29. Response.Write "<SCRIPT LANGUAGE=""JavaScript"">ShowErr(""错误:n参数错误"");</SCRIPT>"
  30. End If
  31. If G_VIRTUAL_ROOT_DIR<>"" Then
  32. Str_NS_News_Templet="/"&G_VIRTUAL_ROOT_DIR&Str_NS_News_Templet
  33. Else
  34. Str_NS_News_Templet=Str_NS_News_Templet
  35. End If
  36. Response.Write Get_Dynamic_Refresh_Content(Str_NS_News_Templet,Str_NS_NewsID,"NS",Page,"news")
  37. %>