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

数据库编程

开发平台:

ASP/ASPX

  1. <!--#include file="NS_Public.asp" -->
  2. <!--#include file="MS_Public.asp" -->
  3. <!--#include file="DS_Public.asp" -->
  4. <!--#include file="ME_Public.asp" -->
  5. <!--#include file="MF_Public.asp" -->
  6. <!--#include file="SD_Public.asp" -->
  7. <!--#include file="HS_Public.asp" -->
  8. <!--#include file="AP_Public.asp" -->
  9. <!--#include file="Other_Public.asp" -->
  10. <%
  11. Function Replace_All_Flag(f_File_Cont,f_NewsID,sysFlag,PageType)
  12. if Request.Cookies("FoosunMFCookies")("FoosunMFDomain")="" or Request.Cookies("FoosunMFCookies")=Empty then
  13. MFConfig_Cookies:NSConfig_Cookies:DSConfig_Cookies
  14. end If
  15. If (request.Cookies("FoosunMSCookies")("FoosunMSDomain")="" Or Request.Cookies("FoosunMSCookies")=Empty) And IsExist_SubSys("MS") Then
  16. MSConfig_Cookies
  17. End If
  18. Dim f_REG_EX,f_REG_MATCH,f_REG_MATCHS,f_REG_PLACE_OBJ,f_TEST_LABLE_CONT_MATCHS,f_TEST_LABLE_CONT_MATCH,f_MORE_PAGES_DICT_OBJ
  19. Dim f_REG_Head_Str,f_REG_Tailor_Str,f_Match_Str,f_Lable_Cont,f_RERESH_OBJ,f_Sys_ID,f_Lable_Para_Value,f_Raw_Data
  20. Dim f_LABLE_DICT_OBJ,f_Lable,f_DICT_ITEMS_OBJ,f_DICT_KEYS_OBJ,f_i,f_j,f_ARRAY_OBJ,f_More_Pages_Flag_TF,f_NEWS_CONT_REPLACE_FLAG_OBJ
  21. Dim f_DICT_MATCHS,f_Replace_Flag_TF,f_NEWS_CONT_REG_OBJ,f_NEWS_CONT_MATCHS,f_Lable_News_Cont,f_Lable_One_Page_News_Cont,Str_MFFlag
  22. f_More_Pages_Flag_TF = False
  23. f_REG_Head_Str = "{FS400_"
  24. f_REG_Tailor_Str = "}"
  25. Set f_MORE_PAGES_DICT_OBJ = Server.CreateObject(G_FS_DICT)
  26. Set f_LABLE_DICT_OBJ = Server.CreateObject(G_FS_DICT)
  27. Set f_REG_EX = New RegExp
  28. f_REG_EX.Pattern = f_REG_Head_Str & ".*?" & f_REG_Tailor_Str
  29. f_REG_EX.IgnoreCase = True
  30. f_REG_EX.Global = True
  31. Set f_REG_MATCHS = f_REG_EX.Execute(f_File_Cont)
  32. f_Raw_Data = f_File_Cont
  33. For Each f_REG_MATCH in f_REG_MATCHS
  34. f_Match_Str = f_REG_MATCH.Value
  35. f_Lable = f_Match_Str
  36. f_Match_Str = Replace(f_Match_Str,Chr(13) & Chr(10),"")
  37. Set f_REG_PLACE_OBJ = New RegExp
  38. f_REG_PLACE_OBJ.IgnoreCase = True
  39. f_REG_PLACE_OBJ.Global = True
  40. f_Match_Str=Get_Label_Content(f_Match_Str)
  41. '{FS:Ad=AdLIST┆广告ID$100┆SpanId$Ad_HTML_ID}
  42. f_REG_PLACE_OBJ.Pattern = "{FS:.*}"
  43. Set f_TEST_LABLE_CONT_MATCHS = f_REG_PLACE_OBJ.Execute(f_Match_Str)
  44. if (f_TEST_LABLE_CONT_MATCHS.Count>0) then
  45. for Each f_TEST_LABLE_CONT_MATCH in f_TEST_LABLE_CONT_MATCHS
  46. f_Lable_Para_Value = f_TEST_LABLE_CONT_MATCH.Value
  47. f_Sys_ID = Mid(f_Lable_Para_Value,5,2)
  48. f_Lable_Para_Value = Mid(f_Lable_Para_Value,8,Len(f_Lable_Para_Value) - 8)
  49. Str_MFFlag=False
  50. if IsExist_SubSys(f_Sys_ID) then
  51. Select Case f_Sys_ID
  52. Case "NS"
  53. Set f_RERESH_OBJ = New cls_NS
  54. Case "MS"
  55. Set f_RERESH_OBJ = New cls_MS
  56. Case "DS"
  57. Set f_RERESH_OBJ = New cls_DS
  58. Case "ME"
  59. Set f_RERESH_OBJ = New cls_ME
  60. Case "MF"
  61. Set f_RERESH_OBJ = New cls_MF
  62. Str_MFFlag=True
  63. Case "SD"
  64. Set f_RERESH_OBJ = New cls_SD
  65. Case "HS"
  66. Set f_RERESH_OBJ = New cls_HS
  67. Case "AP"
  68. Set f_RERESH_OBJ = New cls_AP
  69. Case Else
  70. Set f_RERESH_OBJ = New cls_Other
  71. End Select
  72. If Str_MFFlag Then
  73. f_Lable_Cont = f_RERESH_OBJ.get_LableChar(f_Lable_Para_Value,f_NewsID,sysFlag&"_"&PageType)
  74. Else
  75. f_Lable_Cont = f_RERESH_OBJ.get_LableChar(f_Lable_Para_Value,f_NewsID)
  76. End If
  77. f_Match_Str = Replace(f_Match_Str,f_TEST_LABLE_CONT_MATCH.Value,f_Lable_Cont)
  78. End If
  79. Set f_RERESH_OBJ = Nothing
  80. Next
  81. End If
  82. If Not f_LABLE_DICT_OBJ.Exists(f_Lable) Then
  83. f_LABLE_DICT_OBJ.Add f_Lable,f_Match_Str
  84. End If
  85. Set f_REG_PLACE_OBJ = Nothing
  86. Next
  87. f_MORE_PAGES_DICT_OBJ.Add "-3",""
  88. f_DICT_ITEMS_OBJ = f_LABLE_DICT_OBJ.Items
  89. f_DICT_KEYS_OBJ = f_LABLE_DICT_OBJ.Keys
  90. for f_i = 0 to f_LABLE_DICT_OBJ.Count - 1
  91. if Not f_More_Pages_Flag_TF then
  92. f_Replace_Flag_TF = False
  93. Set f_REG_PLACE_OBJ = New RegExp
  94. f_REG_PLACE_OBJ.Pattern = "{foosun_page_news}.*{/foosun_page_news}"
  95. f_REG_PLACE_OBJ.IgnoreCase = True
  96. f_REG_PLACE_OBJ.Global = True
  97. Set f_DICT_MATCHS = f_REG_PLACE_OBJ.Execute(f_DICT_ITEMS_OBJ(f_i))
  98. If (f_DICT_MATCHS.Count>=1) And (f_More_Pages_Flag_TF=False) Then
  99. f_More_Pages_Flag_TF = True
  100. 'response.write f_DICT_ITEMS_OBJ(f_i)&"---"&f_DICT_MATCHS(0).Value&"<BR>"
  101. f_ARRAY_OBJ = Split(f_DICT_ITEMS_OBJ(f_i),f_DICT_MATCHS(0).Value)
  102. f_MORE_PAGES_DICT_OBJ.Add "-2",f_DICT_KEYS_OBJ(f_i)
  103. f_MORE_PAGES_DICT_OBJ.Add "-1",f_DICT_MATCHS(0).Value
  104. For f_j = LBound(f_ARRAY_OBJ) To UBound(f_ARRAY_OBJ)
  105. If Len(f_ARRAY_OBJ(f_j)) > 1 Then
  106. If Not f_MORE_PAGES_DICT_OBJ.Exists(f_j) Then
  107. f_MORE_PAGES_DICT_OBJ.Add f_j,f_ARRAY_OBJ(f_j)
  108. 'response.write f_j&"---"&f_ARRAY_OBJ(f_j)&"<BR>"
  109. End If
  110. End If
  111. Next
  112. f_Replace_Flag_TF = True
  113. End If
  114. f_REG_PLACE_OBJ.Pattern = "[fs:page]"
  115. Set f_DICT_MATCHS = f_REG_PLACE_OBJ.Execute(f_DICT_ITEMS_OBJ(f_i))
  116. Set f_NEWS_CONT_REG_OBJ = New RegExp
  117. f_NEWS_CONT_REG_OBJ.IgnoreCase = True
  118. f_NEWS_CONT_REG_OBJ.Global = True
  119. f_NEWS_CONT_REG_OBJ.Pattern = "[FS:CONTENT_START][^]*[FS:CONTENT_END]"
  120. Set f_NEWS_CONT_MATCHS = f_NEWS_CONT_REG_OBJ.Execute(f_DICT_ITEMS_OBJ(f_i))
  121. If (f_DICT_MATCHS.Count>=1) And (f_More_Pages_Flag_TF=False) And (f_NEWS_CONT_MATCHS.Count=1) Then
  122. f_More_Pages_Flag_TF = True
  123. f_MORE_PAGES_DICT_OBJ.Add "-2",f_DICT_KEYS_OBJ(f_i)
  124. f_MORE_PAGES_DICT_OBJ.Add "-1","newsmorepage"
  125. f_Lable_News_Cont = f_NEWS_CONT_MATCHS(0).Value
  126. Set f_NEWS_CONT_REPLACE_FLAG_OBJ = New RegExp
  127. f_NEWS_CONT_REPLACE_FLAG_OBJ.IgnoreCase = True
  128. f_NEWS_CONT_REPLACE_FLAG_OBJ.Global = True
  129. f_NEWS_CONT_REPLACE_FLAG_OBJ.Pattern = "[FS:CONTENT_START]"
  130. f_Lable_News_Cont = f_NEWS_CONT_REPLACE_FLAG_OBJ.Replace(f_Lable_News_Cont,"")
  131. f_NEWS_CONT_REPLACE_FLAG_OBJ.Pattern = "[FS:CONTENT_END]"
  132. f_Lable_News_Cont = f_NEWS_CONT_REPLACE_FLAG_OBJ.Replace(f_Lable_News_Cont,"")
  133. Set f_NEWS_CONT_REPLACE_FLAG_OBJ = Nothing
  134. f_ARRAY_OBJ = Split(f_Lable_News_Cont,f_DICT_MATCHS(0).Value)
  135. for f_j = LBound(f_ARRAY_OBJ) To UBound(f_ARRAY_OBJ)
  136. if Len(f_ARRAY_OBJ(f_j)) > 1 then
  137. f_Lable_One_Page_News_Cont = f_DICT_ITEMS_OBJ(f_i)
  138. f_Lable_One_Page_News_Cont = Replace(f_Lable_One_Page_News_Cont,f_NEWS_CONT_MATCHS(0).Value,f_ARRAY_OBJ(f_j))
  139. If Not f_MORE_PAGES_DICT_OBJ.Exists(f_j) Then
  140. f_MORE_PAGES_DICT_OBJ.Add f_j,f_Lable_One_Page_News_Cont
  141. End If
  142. End If
  143. Next
  144. f_Replace_Flag_TF = True
  145. End If
  146. Set f_NEWS_CONT_REG_OBJ = Nothing
  147. Set f_REG_PLACE_OBJ = Nothing
  148. If Not f_Replace_Flag_TF Then
  149. f_Raw_Data = Replace(f_Raw_Data,f_DICT_KEYS_OBJ(f_i),f_DICT_ITEMS_OBJ(f_i))
  150. End If
  151. Else
  152. f_Raw_Data = Replace(f_Raw_Data,f_DICT_KEYS_OBJ(f_i),f_DICT_ITEMS_OBJ(f_i))
  153. End If
  154. Next
  155. f_MORE_PAGES_DICT_OBJ.Item("-3") = f_Raw_Data
  156. f_LABLE_DICT_OBJ.RemoveAll
  157. Set f_LABLE_DICT_OBJ = Nothing
  158. Set Replace_All_Flag = f_MORE_PAGES_DICT_OBJ
  159. Set f_MORE_PAGES_DICT_OBJ = Nothing
  160. End Function
  161. Function Get_Templet_Content(Str_Templet_File_Path)
  162. Dim f_Phy_Templet,f_FSO_OBJ,f_FILE_OBJ,f_FILE_STREAM_OBJ
  163. If Str_Templet_File_Path<>"" Then
  164. f_Phy_Templet = Server.MapPath(Str_Templet_File_Path)
  165. Set f_FSO_OBJ = Server.CreateObject(G_FS_FSO)
  166. ' Response.Write(f_Phy_Templet)
  167. ' Response.End()
  168. if f_FSO_OBJ.FileExists(f_Phy_Templet) = False then
  169. Get_Templet_Content = "模板不存在,请添加模板后再生成!"
  170. else
  171. Set f_FILE_OBJ = f_FSO_OBJ.GetFile(f_Phy_Templet)
  172. Set f_FILE_STREAM_OBJ = f_FILE_OBJ.OpenAsTextStream(1)
  173. if Not f_FILE_STREAM_OBJ.AtEndOfStream then
  174. Get_Templet_Content = f_FILE_STREAM_OBJ.ReadAll
  175. else
  176. Get_Templet_Content = "模板内容为空"
  177. end if
  178. end if
  179. 'Get_Templet_Content = Get_Templet_Content & Get_JS_CopyRight("NewsID")
  180. Set f_FILE_STREAM_OBJ = Nothing
  181. Set f_FILE_OBJ = Nothing
  182. Set f_FSO_OBJ = Nothing
  183. Else
  184. Get_Templet_Content="模板不存在,请添加模板后再生成!"
  185. End If
  186. End Function
  187. Function Get_Dynamic_Refresh_Content(Str_Templet,Str_GoID,sysFlag,Page,PageType)
  188. Dim f_PAGES_DICT_OBJ,f_Temf_File_Content,f_MORE_PAGES_DICT_ITEMS_OBJ,f_MORE_PAGES_DICT_KEYS_OBJ,f_More_Page_Link_Str
  189. Dim f_i,int_count,f_PLACE_OBJ,f_Temp_More_Page_Link_Str,f_More_Page_Array,f_File_Content,Str_Page_Style
  190. Dim patrn(1),strng
  191. patrn(0)="</head>"
  192. patrn(1)="<body"
  193. strng=Get_JS_CopyRight("NewsId")
  194. If VarType(Page)<>2 Then
  195. Page=1
  196. ElseIf Page<1 Then
  197. Page=1
  198. End If
  199. Set f_PAGES_DICT_OBJ = Replace_All_Flag(Get_Templet_Content(Str_Templet),Str_GoID,sysFlag,PageType)
  200. f_File_Content = f_PAGES_DICT_OBJ.Item("-3")
  201. f_MORE_PAGES_DICT_ITEMS_OBJ = f_PAGES_DICT_OBJ.Items
  202. f_MORE_PAGES_DICT_KEYS_OBJ = f_PAGES_DICT_OBJ.Keys
  203. Rem 建立正则对象
  204. Set f_PLACE_OBJ = New RegExp
  205. Rem ============
  206. if f_PAGES_DICT_OBJ.Count > 3 then
  207. int_count=1
  208. for f_i = 3 to f_PAGES_DICT_OBJ.Count - 1
  209. f_More_Page_Link_Str = f_PAGES_DICT_OBJ.Item("-1")
  210. If Page>f_PAGES_DICT_OBJ.Count - 3 Then
  211. Page=f_PAGES_DICT_OBJ.Count - 3
  212. End If
  213. If f_More_Page_Link_Str = "newsmorepage" Then
  214. f_More_Page_Link_Str = Get_More_Page_Link_Str("","","",f_PAGES_DICT_OBJ.Count - 3,Page)
  215. Else
  216. f_PLACE_OBJ.Pattern = "{Foosun_Page_news}"
  217. f_PLACE_OBJ.IgnoreCase = True
  218. f_PLACE_OBJ.Global = True
  219. f_Temp_More_Page_Link_Str = f_PLACE_OBJ.Replace(f_More_Page_Link_Str,"")
  220. f_PLACE_OBJ.Pattern = "{/Foosun_Page_news}"
  221. f_Temp_More_Page_Link_Str = f_PLACE_OBJ.Replace(f_Temp_More_Page_Link_Str,"")
  222. f_More_Page_Array = Split(f_Temp_More_Page_Link_Str,",")
  223. Str_Page_Style=Split(f_More_Page_Array(1),"|")
  224. if UBound(f_More_Page_Array) < 1 then
  225. f_More_Page_Link_Str = ""
  226. else
  227. f_More_Page_Link_Str = Get_More_Page_Link_Str(Trim(f_More_Page_Array(0)),Trim(Str_Page_Style(0)),Trim(Str_Page_Style(1)),f_PAGES_DICT_OBJ.Count - 3,Page)
  228. end if
  229. end If
  230. If Page>0 And int_count=Page Then
  231. f_Temf_File_Content = Replace(f_File_Content,f_PAGES_DICT_OBJ.Item("-2"),f_MORE_PAGES_DICT_ITEMS_OBJ(f_i) & "<br>" & f_More_Page_Link_Str)
  232. Exit For
  233. ElseIf int_count=1 Then
  234. f_Temf_File_Content = Replace(f_File_Content,f_PAGES_DICT_OBJ.Item("-2"),f_MORE_PAGES_DICT_ITEMS_OBJ(f_i) & "<br>" & f_More_Page_Link_Str)
  235. Exit For
  236. End If
  237. int_count=int_count+1
  238. Next
  239. Else
  240. f_Temf_File_Content = f_File_Content
  241. End If
  242. Rem 加入版权信息和关键JS文件(正则搜索)
  243. f_PLACE_OBJ.Pattern = patrn(0)
  244. f_PLACE_OBJ.IgnoreCase = True
  245. f_PLACE_OBJ.Global = False
  246. f_PLACE_OBJ.Multiline = True
  247. If f_PLACE_OBJ.Test(f_Temf_File_Content) Then
  248. f_Temf_File_Content=f_PLACE_OBJ.Replace(f_Temf_File_Content,patrn(0)&vbNewLine&strng)
  249. Else
  250. f_PLACE_OBJ.Pattern = patrn(1)
  251. If f_PLACE_OBJ.Test(f_Temf_File_Content) Then
  252. f_Temf_File_Content=f_PLACE_OBJ.Replace(f_Temf_File_Content,patrn(1)&vbNewLine&strng)
  253. Else
  254. f_Temf_File_Content=strng&vbNewLine&f_Temf_File_Content
  255. End If
  256. End If
  257. Rem ===================================
  258. Set f_PLACE_OBJ = Nothing
  259. Get_Dynamic_Refresh_Content=f_Temf_File_Content
  260. f_PAGES_DICT_OBJ.RemoveAll
  261. Set f_PAGES_DICT_OBJ = Nothing
  262. End Function
  263. Function Get_More_Page_Link_Str(f_More_Page_Link_Type,f_More_Page_Link_Color,f_More_Page_Css,f_Page_Count,f_More_Page_Index)
  264. Dim f_i,Str_Link,LinkUrl,Str_Style
  265. Dim str_nonLinkColor,str_toF,str_toP10,str_toP1,str_toN1,str_toN10,str_toL,StartPage,EndPage,I
  266. If f_More_Page_Index>f_Page_Count Then
  267. f_More_Page_Index=f_Page_Count
  268. End If
  269. If f_More_Page_Link_Type="" Then
  270. f_More_Page_Link_Type=0
  271. End If
  272. Str_Link=""
  273. LinkUrl = ThisPageUrl("page","submit")
  274. Str_Style=""
  275. If f_More_Page_Link_Color<>"" Then
  276. Str_Style=Str_Style&" style=""color: #"&f_More_Page_Link_Color&";"""
  277. End If
  278. If f_More_Page_Css<>"" Then
  279. Str_Style=Str_Style&" class="""&f_More_Page_Css&""""
  280. End If
  281. If f_Page_Count>1 Then
  282. Select Case f_More_Page_Link_Type
  283. Case 1
  284. If f_More_Page_Index=1 Then
  285. Str_Link=Str_Link&"上一页"
  286. Str_Link=Str_Link&"&nbsp;<a href="""&LinkUrl&f_More_Page_Index+1&""""&Str_Style&">下一页</a>"
  287. ElseIf (f_More_Page_Index+1)>f_Page_Count Then
  288. Str_Link=Str_Link&"<a href="""&LinkUrl&f_More_Page_Index-1&""""&Str_Style&">上一页</a>"
  289. Str_Link=Str_Link&"&nbsp;下一页"
  290. Else
  291. Str_Link=Str_Link&"<a href="""&LinkUrl&f_More_Page_Index-1&""""&Str_Style&">上一页</a>"
  292. Str_Link=Str_Link&"&nbsp;<a href="""&LinkUrl&f_More_Page_Index+1&""""&Str_Style&">下一页</a>"
  293. End If
  294. Case 2
  295. Str_Link="共"&f_Page_Count&"页,"
  296. For f_i=1 To f_Page_Count
  297. If f_i= f_More_Page_Index Then
  298. Str_Link=Str_Link&",第"&f_i&"页"
  299. Else
  300. Str_Link=Str_Link&",<a href="""&LinkUrl&f_i&""""&Str_Style&">第"&f_i&"页</a>"
  301. End If
  302. Next
  303. Case 3
  304. Str_Link="共"&f_Page_Count&"页。"
  305. For f_i=1 To f_Page_Count
  306. If f_i= f_More_Page_Index Then
  307. Str_Link=Str_Link&"&nbsp;"&f_i&""
  308. Else
  309. Str_Link=Str_Link&"&nbsp;<a href="""&LinkUrl&f_i&""""&Str_Style&">"&f_i&"</a>"
  310. End If
  311. Next
  312. Case Else
  313. str_nonLinkColor="#999999" '非热链接颜色
  314. str_toF="<font face=""webdings"">9</font>"   '首页
  315. str_toP10="<font face=""webdings"">7</font>" '上十
  316. str_toP1="<font face=""webdings"">3</font>" '上一
  317. str_toN1="<font face=""webdings"">4</font>" '下一
  318. str_toN10="<font face=""webdings"">8</font>" '下十
  319. str_toL="<font face=""webdings"">:</font>" '尾页
  320. Str_Link=""
  321. if f_More_Page_Index=1 then
  322. Str_Link=Str_Link& "<font color="&str_nonLinkColor&" title=""首页"">"&str_toF&"</font> " &vbNewLine
  323. Else
  324. Str_Link=Str_Link& "<a href="""&LinkUrl&"1"""&Str_Style&" title=""首页"">"&str_toF&"</a> " &vbNewLine
  325. End If
  326. if f_More_Page_Index<11 then
  327. StartPage = 1
  328. else
  329. If f_More_Page_Index>(fix(f_More_Page_Index / 10) * 10) Then
  330. StartPage = (fix(f_More_Page_Index / 10) * 10)+1
  331. Else
  332. StartPage = ((fix(f_More_Page_Index / 10)-1) * 10)+1
  333. End If
  334. end if
  335. EndPage=StartPage+9
  336. If EndPage>f_Page_Count Then
  337. EndPage=f_Page_Count
  338. End If
  339. If StartPage>10 Then
  340. Str_Link=Str_Link& "<a href="""&LinkUrl&f_More_Page_Index-10&""""&Str_Style&" title=""上10页"">"&str_toP10&"</a> "  &vbNewLine
  341. Else
  342. Str_Link=Str_Link& "<font color="&str_nonLinkColor&" title=""上10页"">"&str_toP10&"</font> "  &vbNewLine
  343. End If
  344. If f_More_Page_Index > 1 Then
  345. Str_Link=Str_Link& "<a href="""&LinkUrl&f_More_Page_Index-1&""""&Str_Style&" title=""上一页"">"&str_toP1&"</a> "  &vbNewLine
  346. Else
  347. Str_Link=Str_Link& "<font color="&str_nonLinkColor&" title=""上一页"">"&str_toP1&"</font> "  &vbNewLine
  348. End If
  349. For I=StartPage To EndPage
  350. If I=f_More_Page_Index Then
  351. Str_Link=Str_Link& "<b>"&I&"</b>"  &vbNewLine
  352. Else
  353. Str_Link=Str_Link& "<a href="""&LinkUrl&I&""""&Str_Style&">" &I& "</a>"  &vbNewLine
  354. End If
  355. Next
  356. If f_More_Page_Index < f_Page_Count Then
  357. Str_Link=Str_Link& " <a href="""&LinkUrl&f_More_Page_Index+1&""""&Str_Style&" title=""下一页"">"&str_toN1&"</a> "  &vbNewLine
  358. Else
  359. Str_Link=Str_Link& "<font color="&str_nonLinkColor&" title=""下一页"">"&str_toN1&"</font> "  &vbNewLine
  360. End If
  361. If EndPage<f_Page_Count Then
  362. If (f_More_Page_Index+10)>f_Page_Count Then
  363. Str_Link=Str_Link& " <a href="""&LinkUrl&f_Page_Count&""""&Str_Style&"  title=""下10页"">"&str_toN10&"</a> "  &vbNewLine
  364. Else
  365. Str_Link=Str_Link& " <a href="""&LinkUrl&f_More_Page_Index+10&""""&Str_Style&" title=""下10页"">"&str_toN10&"</a> "  &vbNewLine
  366. End If
  367. Else
  368. Str_Link=Str_Link& " <font color="&str_nonLinkColor&"  title=""下10页"">"&str_toN10&"</font> "  &vbNewLine
  369. End If
  370. if f_More_Page_Index<f_Page_Count Then
  371. Str_Link=Str_Link& "<a href="""&LinkUrl&f_Page_Count&""""&Str_Style&" title=""尾页"">"&str_toL&"</a>"  &vbNewLine
  372. Else
  373. Str_Link=Str_Link& "<font color="&str_nonLinkColor&" title=""尾页"">"&str_toL&"</font>"  &vbNewLine
  374. End If
  375. End Select
  376. End If
  377. Get_More_Page_Link_Str=Str_Link
  378. End Function
  379. '*********************************************************
  380. ' 目的:分页的页面参数保持
  381. '          提交查询的一致性
  382. ' 输入:moveParam:分页参数
  383. '         removeList:要移除的参数
  384. ' 返回:分页Url
  385. '*********************************************************
  386. Function ThisPageUrl(moveParam,removeList)
  387. dim strName
  388. dim KeepUrl,KeepForm,KeepMove
  389. removeList=removeList&","&moveParam
  390. KeepForm=""
  391. For Each strName in Request.Form
  392. '判断form参数中的submit、空值
  393. if not InstrRev(removeList,strName, -1, 1)>0 and Request.Form(strName)<>"" then
  394. KeepForm=KeepForm&"&"&strName&"="&Server.URLencode(Request.Form(strName))
  395. end if
  396. removeList=removeList&","&strName
  397. Next
  398. KeepUrl=""
  399. For Each strName In Request.QueryString
  400. If not (InstrRev(removeList,strName, -1, 1)>0) Then
  401. KeepUrl = KeepUrl & "&" & strName & "=" & Server.URLencode(Request.QueryString(strName))
  402. End If
  403. Next
  404. KeepMove=KeepForm&KeepUrl
  405. If (KeepMove <> "") Then
  406.   KeepMove = Right(KeepMove, Len(KeepMove) - 1)
  407.   KeepMove = Server.HTMLEncode(KeepMove) & "&"
  408. End If
  409. ThisPageUrl = Request.ServerVariables("URL") & "?" & KeepMove & moveParam & "="
  410. End Function
  411. Function Get_JS_CopyRight(f_type)
  412. Get_JS_CopyRight = "<script language=""JavaScript"" src=""http://" & Get_MF_Domain & "/FS_Inc/Prototype.js""></script>" & vbNewLine
  413. Get_JS_CopyRight = Get_JS_CopyRight & "<!--Created Page at " & Now() & ",by Foosun.Cn,Foosun Content Management Systeme 4.0.0(FoosunCMS)--> "
  414. End Function
  415. %>