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

数据库编程

开发平台:

ASP/ASPX

  1. <% Option Explicit %>
  2. <!--#include file="../../FS_Inc/Const.asp" -->
  3. <!--#include file="../../FS_Inc/Function.asp"-->
  4. <!--#include file="inc/Function.asp"-->
  5. <!--#include file="../../FS_InterFace/MF_Function.asp" -->
  6. <%
  7. Dim Conn,CollectConn
  8. MF_Default_Conn
  9. MF_Collect_Conn
  10. MF_Session_TF
  11. Dim RsEditObj,EditSql,SiteID
  12. Set RsEditObj = Server.CreateObject ("ADODB.RecordSet")
  13. SiteID = Request("SiteID")
  14. if SiteID <> "" then
  15. EditSql="Select * from FS_Site where ID=" & SiteID
  16. RsEditObj.Open EditSql,CollectConn,1,3
  17. if RsEditObj.Eof then
  18. Response.write"<script>alert(""没有修改的站点"");location.href=""javascript:history.back()"";</script>"
  19. Response.end
  20. end if
  21. else
  22. Response.write"<script>alert(""没有修改的站点"");location.href=""javascript:history.back()"";</script>"
  23. Response.end
  24. end if
  25. Function SiteFolderList()
  26. Dim ClassListObj,SelectStr
  27. Set ClassListObj = CollectConn.Execute("Select * from FS_SiteFolder where 1=1 order by ID desc")
  28. do while Not ClassListObj.Eof
  29. if RsEditObj("Folder") = ClassListObj("ID") then
  30. SelectStr = "selected"
  31. else
  32. SelectStr = ""
  33. end if
  34. SiteFolderList = SiteFolderList & "<option " & SelectStr & " value="&ClassListObj("ID")&"" & ">&nbsp;&nbsp;|--" & ClassListObj("SiteFolder") & "</option><br>"
  35. ClassListObj.MoveNext
  36. loop
  37. ClassListObj.Close
  38. Set ClassListObj = Nothing
  39. End Function
  40. if Request.Form("Result") = "Edit" then
  41.     Dim RsAddObj,sql
  42.     if Request.Form("SiteName")="" or Request.Form("objURL")="" then
  43. Response.write"<script>alert(""请填写完整!"");location.href=""javascript:history.back()"";</script>"
  44. Response.end
  45. end if
  46. Set RsAddObj = Server.CreateObject ("ADODB.RecordSet")
  47. Sql = "select * from FS_Site where id=" & Request.Form("SiteID")
  48. RsAddObj.Open Sql,CollectConn,1,3
  49. RsAddObj("SiteName") = Request.Form("SiteName")
  50. RsAddObj("objURL") = Request.Form("objURL")
  51. 'On Error Resume Next 
  52. Dim ListSetting,LinkSetting,PageBodySetting,PageTitleSetting,OtherNewsPageSetting,AuthorSetting,SourceSetting,AddDateSetting,OtherPageSetting,StrErr
  53. StrErr = ""
  54. If InStr(Request.Form("ListSetting"),"[列表内容]")<>0 then
  55. ListSetting = Split(Request.Form("ListSetting"),"[列表内容]",-1,1)
  56. RsAddObj("ListHeadSetting") = ListSetting(0)
  57. RsAddObj("ListFootSetting") = ListSetting(1)
  58. ElseIf ListSetting(0)="" Or ListSetting(1)="" Or err Then
  59. Err.clear
  60. RsAddObj("ListHeadSetting") = "<body"
  61. RsAddObj("ListFootSetting") = "</body>"
  62. End If
  63. LinkSetting = Split(Request.Form("LinkSetting"),"[列表URL]",-1,1)
  64. RsAddObj("LinkHeadSetting") = LinkSetting(0)
  65. RsAddObj("LinkFootSetting") = LinkSetting(1)
  66. If err Then
  67. StrErr = "列表URL没有设置或设置不正确!"
  68. Err.clear
  69. End if
  70. PageBodySetting = Split(Request.Form("PageBodySetting"),"[新闻内容]",-1,1)
  71. RsAddObj("PagebodyHeadSetting") = PageBodySetting(0)
  72. RsAddObj("PagebodyFootSetting") = PageBodySetting(1)
  73. If err Then
  74. StrErr = StrErr & "rn新闻内容没有设置或设置不正确!"
  75. Err.clear
  76. End if
  77. PageTitleSetting = Split(Request.Form("PageTitleSetting"),"[新闻标题]",-1,1) 
  78. RsAddObj("PageTitleHeadSetting") = PageTitleSetting(0)
  79. RsAddObj("PageTitleFootSetting") = PageTitleSetting(1)
  80. If err Then
  81. StrErr = StrErr & "rn新闻标题没有设置或设置不正确!"
  82. Err.clear
  83. End If
  84. If InStr(Request.Form("AuthorSetting"),"[作者]")<>0 then
  85. AuthorSetting = Split(Request.Form("AuthorSetting"),"[作者]",-1,1)
  86. RsAddObj("AuthorHeadSetting") = AuthorSetting(0)
  87. RsAddObj("AuthorFootSetting") = AuthorSetting(1)
  88. End If
  89. If InStr(Request.Form("SourceSetting"),"[来源]")<>0 then
  90. SourceSetting = Split(Request.Form("SourceSetting"),"[来源]",-1,1)
  91. RsAddObj("SourceHeadSetting") = SourceSetting(0)
  92. RsAddObj("SourceFootSetting") = SourceSetting(1)
  93. End If
  94. If InStr(Request.Form("AddDateSetting"),"[加入时间]")<>0 then
  95. AddDateSetting = Split(Request.Form("AddDateSetting"),"[加入时间]",-1,1)
  96. RsAddObj("AddDateHeadSetting") = AddDateSetting(0)
  97. RsAddObj("AddDateFootSetting") = AddDateSetting(1)
  98. End if
  99. Select Case Request.Form("OtherNewsType")
  100. Case "0"
  101. RsAddObj("OtherNewsType") = Request.Form("OtherNewsType")
  102. RsAddObj("OtherNewsPageHeadSetting") = ""
  103. RsAddObj("OtherNewsPageFootSetting") = ""
  104. RsAddObj("OtherNewsPageIndexSetting") = ""
  105. RsAddObj("OtherNewsPageIndexSettingStartPageNum") = ""
  106. RsAddObj("OtherNewsPageIndexSettingEndPageNum") = ""
  107. RsAddObj("OtherNewsPageIndexSettingHandPageContent") = ""
  108. Case "1"
  109. RsAddObj("OtherNewsType") = Request.Form("OtherNewsType")
  110. If InStr(Request.Form("OtherNewsPageSetting"),"[分页新闻]")<>0 Then
  111. OtherNewsPageSetting = Split(Request.Form("OtherNewsPageSetting"),"[分页新闻]",-1,1)
  112. RsAddObj("OtherNewsPageHeadSetting") = OtherNewsPageSetting(0)
  113. RsAddObj("OtherNewsPageFootSetting") = OtherNewsPageSetting(1)
  114. End if
  115. RsAddObj("OtherNewsPageIndexSetting") = ""
  116. RsAddObj("OtherNewsPageIndexSettingStartPageNum") = ""
  117. RsAddObj("OtherNewsPageIndexSettingEndPageNum") = ""
  118. RsAddObj("OtherNewsPageIndexSettingHandPageContent") = ""
  119. Case "2"
  120. RsAddObj("OtherNewsType") = Request.Form("OtherNewsType")
  121. RsAddObj("OtherNewsPageHeadSetting") = ""
  122. RsAddObj("OtherNewsPageFootSetting") = ""
  123. RsAddObj("OtherNewsPageIndexSetting") = Request.Form("OtherNewsPageIndexSetting")
  124. RsAddObj("OtherNewsPageIndexSettingStartPageNum") = Request.Form("OtherNewsPageIndexSettingStartPageNum")
  125. RsAddObj("OtherNewsPageIndexSettingEndPageNum") = Request.Form("OtherNewsPageIndexSettingEndPageNum")
  126. RsAddObj("OtherNewsPageIndexSettingHandPageContent") = ""
  127. Case "3"
  128. RsAddObj("OtherNewsType") = Request.Form("OtherNewsType")
  129. RsAddObj("OtherNewsPageHeadSetting") = ""
  130. RsAddObj("OtherNewsPageFootSetting") = ""
  131. RsAddObj("OtherNewsPageIndexSetting") = ""
  132. RsAddObj("OtherNewsPageIndexSettingStartPageNum") = ""
  133. RsAddObj("OtherNewsPageIndexSettingEndPageNum") = ""
  134. RsAddObj("OtherNewsPageIndexSettingHandPageContent") = Request.Form("OtherNewsPageIndexSettingHandPageContent")
  135. Case Else
  136. RsAddObj("OtherNewsType") = "0"
  137. RsAddObj("OtherNewsPageHeadSetting") = ""
  138. RsAddObj("OtherNewsPageFootSetting") = ""
  139. RsAddObj("OtherNewsPageIndexSetting") = ""
  140. RsAddObj("OtherNewsPageIndexSettingStartPageNum") = ""
  141. RsAddObj("OtherNewsPageIndexSettingEndPageNum") = ""
  142. RsAddObj("OtherNewsPageIndexSettingHandPageContent") = ""
  143. End Select
  144. If StrErr<>"" Then
  145. Err.clear
  146. Response.Write "<script>alert('"& StrErr &"');history.back();</script>"
  147. Response.End
  148. End If 
  149. Select Case Request.Form("OtherType")
  150. Case "0"
  151. RsAddObj("OtherType") = Request.Form("OtherType")
  152. RsAddObj("IndexRule") = ""
  153. RsAddObj("StartPageNum") = ""
  154. RsAddObj("EndPageNum") = ""
  155. RsAddObj("HandPageContent") = ""
  156. RsAddObj("OtherPageHeadSetting") = ""
  157. RsAddObj("OtherPageFootSetting") = ""
  158. Case "1"
  159. RsAddObj("OtherType") = Request.Form("OtherType")
  160. RsAddObj("IndexRule") = ""
  161. RsAddObj("StartPageNum") = ""
  162. RsAddObj("EndPageNum") = ""
  163. RsAddObj("HandPageContent") = ""
  164. OtherPageSetting = Split(Request.Form("OtherPageSetting"),"[其他页面]",-1,1)
  165. RsAddObj("OtherPageHeadSetting") = OtherPageSetting(0)
  166. RsAddObj("OtherPageFootSetting") = OtherPageSetting(1)
  167. Case "2"
  168. RsAddObj("OtherType") = Request.Form("OtherType")
  169. RsAddObj("IndexRule") = Request.Form("IndexRule")
  170. RsAddObj("StartPageNum") = Request.Form("StartPageNum")
  171. RsAddObj("EndPageNum") = Request.Form("EndPageNum")
  172. RsAddObj("HandPageContent") = ""
  173. RsAddObj("OtherPageHeadSetting") = ""
  174. RsAddObj("OtherPageFootSetting") = ""
  175. Case "3"
  176. RsAddObj("OtherType") = Request.Form("OtherType")
  177. RsAddObj("IndexRule") = ""
  178. RsAddObj("StartPageNum") = ""
  179. RsAddObj("EndPageNum") = ""
  180. RsAddObj("HandPageContent") = Request.Form("HandPageContent")
  181. RsAddObj("OtherPageHeadSetting") = ""
  182. RsAddObj("OtherPageFootSetting") = ""
  183. Case Else
  184. RsAddObj("OtherType") = 0
  185. RsAddObj("IndexRule") = ""
  186. RsAddObj("StartPageNum") = ""
  187. RsAddObj("EndPageNum") = ""
  188. RsAddObj("HandPageContent") = ""
  189. RsAddObj("OtherPageHeadSetting") = ""
  190. RsAddObj("OtherPageFootSetting") = ""
  191. End Select
  192. RsAddObj("HandSetAuthor") = Request.Form("HandSetAuthor")
  193. RsAddObj("HandSetSource") = Request.Form("HandSetSource")
  194. if IsDate(Request.Form("HandSetAddDate")) then
  195. RsAddObj("HandSetAddDate") = Request.Form("HandSetAddDate")
  196. end if
  197. if Request.Form("IsIFrame") = "1" then
  198. RsAddObj("IsIFrame") = True
  199. else
  200. RsAddObj("IsIFrame") = False
  201. end if
  202. if Request.Form("IsScript") = "1" then
  203. RsAddObj("IsScript") = True
  204. else
  205. RsAddObj("IsScript") = False
  206. end if
  207. if Request.Form("IsClass") = "1" then
  208. RsAddObj("IsClass") = True
  209. else
  210. RsAddObj("IsClass") = False
  211. end if
  212. if Request.Form("IsFont") = "1" then
  213. RsAddObj("IsFont") = True
  214. else
  215. RsAddObj("IsFont") = False
  216. end if
  217. if Request.Form("IsSpan") = "1" then
  218. RsAddObj("IsSpan") = True
  219. else
  220. RsAddObj("IsSpan") = False
  221. end if
  222. if Request.Form("IsObject") = "1" then
  223. RsAddObj("IsObject") = True
  224. else
  225. RsAddObj("IsObject") = False
  226. end if
  227. if Request.Form("IsStyle") = "1" then
  228. RsAddObj("IsStyle") = True
  229. else
  230. RsAddObj("IsStyle") = False
  231. end if
  232. if Request.Form("IsDiv") = "1" then
  233. RsAddObj("IsDiv") = True
  234. else
  235. RsAddObj("IsDiv") = False
  236. end if
  237. if Request.Form("IsA") = "1" then
  238. RsAddObj("IsA") = True
  239. else
  240. RsAddObj("IsA") = False
  241. end if
  242. if Request.Form("Audit") = "1" then
  243. RsAddObj("Audit") = True
  244. else
  245. RsAddObj("Audit") = False
  246. end if
  247. if Request.Form("IsAutoCollect") <> "" then
  248. RsAddObj("IsAutoCollect") = True
  249. RsAddObj("CollectDate") = Clng(Request.Form("CollectDate"))
  250. else
  251. RsAddObj("IsAutoCollect") = False
  252. end if
  253. if Request.Form("TextTF") = "1" then
  254. RsAddObj("TextTF") = True
  255. else
  256. RsAddObj("TextTF") = False
  257. end If
  258. If Request.Form("IsReverse") = "1" Then
  259. RsAddObj("IsReverse") = "1"
  260. Else
  261. RsAddObj("IsReverse") = "0"
  262. End If
  263. if Request.Form("SaveRemotePic") = "1" then
  264. RsAddObj("SaveRemotePic") = True
  265. else
  266. RsAddObj("SaveRemotePic") = False
  267. end if
  268. if Request.Form("Islock") <> "" then
  269. RsAddObj("Islock") = True
  270. else
  271. RsAddObj("Islock") = False
  272. end if
  273. RsAddObj.update
  274. RsAddObj.close
  275. Set RsAddObj = Nothing
  276. Response.Redirect("Site.asp")
  277. Response.End
  278. end if
  279. %>
  280. <html>
  281. <head>
  282. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  283. <title>自动新闻采集—站点设置</title>
  284. </head>
  285. <link href="../images/skin/Css_<%=Session("Admin_Style_Num")%>/<%=Session("Admin_Style_Num")%>.css" rel="stylesheet" type="text/css">
  286. <script language="JavaScript" src="js/PublicJS.js"></script>
  287. <body leftmargin="2" topmargin="2">
  288. <form name="Form" method="post" action="" id="Form">
  289.       <table width="98%" height="20" border="0" align="center" cellpadding="5" cellspacing="1" class="table">
  290.         <tr class="hback" >
  291.             <td width="30" align="center" alt="保存" style="cursor:hand" onClick="document.Form.submit();" onMouseMove="BtnMouseOver(this);" onMouseOut="BtnMouseOver(this);" class="BtnMouseOut">保存</td>
  292. <td width="35" align="center" alt="后退" style="cursor:hand" onClick="history.back();" onMouseMove="BtnMouseOver(this);" onMouseOut="BtnMouseOver(this);" class="BtnMouseOut">后退</td>
  293.             <td>&nbsp; <input name="vs" type="hidden" id="vs2" value="add"> <input name="SiteID" type="hidden" id="SiteID2" value="<% = SiteID %>"> 
  294.               <input name="Result" type="hidden" id="Result2" value="Edit"></td>
  295.         </tr>
  296.   </table>
  297.   <table width="98%" border="0" align="center" cellpadding="5" cellspacing="1" class="table">
  298.     <tr class="hback" > 
  299.       <td width="15%" height="26"> <div align="center">采集站点名称</div></td>
  300.       <td> <input name="SiteName" style="width:100%;" type="text" id="SiteName" value="<%=RsEditObj("sitename")%>"> 
  301.         <div align="right"> </div></td>
  302.     </tr>
  303.     <tr class="hback" > 
  304.       <td height="26"> <div align="center">采集对象页</div></td>
  305.       <td><input name="objURL" style="width:100%;" type="text" id="objURL" value="<%=RsEditObj("objURL")%>" size="50"></td>
  306.     </tr>
  307. <tr class="hback" > 
  308. <td height="26"> <div align="center">采集站点分类</div></td>
  309.       <td><select name="SiteFolder" style="width:100%;" id="SiteFolder">
  310. <option value="0">根栏目</option>
  311.           <% = SiteFolderList %>
  312.         </select></td>
  313.     </tr>
  314.     <tr class="hback" > 
  315.       <td height="26"><div align="center">采集参数</div></td>
  316.       <td>锁定 
  317.         <input name="islock" type="checkbox" id="islock" value="1" <%if RsEditObj("islock")=true then response.Write("checked")%>>
  318.         保存远程图片 
  319.         <input type="checkbox" name="SaveRemotePic" value="1" <%if RsEditObj("SaveRemotePic")=true then response.Write("checked")%>>
  320.         新闻是否已经审核 
  321.         <input type="checkbox" name="Audit" value="1" <%if RsEditObj("Audit")=true then response.Write("checked")%>>
  322. 是否倒序采集 
  323.         <input name="IsReverse" type="checkbox" id="IsReverse" value="1" <%if RsEditObj("IsReverse")="1" then response.Write("checked")%>>
  324. </td>
  325.     </tr>
  326.     <tr class="hback" > 
  327.       <td height="26"><div align="center">过滤选项</div></td>
  328.       <td>HTML <input type="checkbox" name="TextTF" value="1" <% if RsEditObj("TextTF") = True then Response.Write("checked")%>>
  329.         STYLE <input type="checkbox" name="IsStyle" value="1" <% if RsEditObj("IsStyle") = True then Response.Write("checked")%>>
  330.         DIV<input type="checkbox" name="IsDiv" value="1" <% if RsEditObj("IsDiv") = True then Response.Write("checked")%>>
  331.         A<input type="checkbox" name="IsA" value="1" <% if RsEditObj("IsA") = True then Response.Write("checked")%>>
  332.         CLASS<input type="checkbox" name="IsClass" value="1" <% if RsEditObj("IsClass") = True then Response.Write("checked")%>>
  333.         FONT<input type="checkbox" name="IsFont" value="1" <% if RsEditObj("IsFont") = True then Response.Write("checked")%>>
  334.         SPAN<input type="checkbox" name="IsSpan" value="1" <% if RsEditObj("IsSpan") = True then Response.Write("checked")%>>
  335.         OBJECT<input type="checkbox" name="IsObject" value="1" <% if RsEditObj("IsObject") = True then Response.Write("checked")%>>
  336.         IFRAME<input type="checkbox" name="IsIFrame" value="1" <% if RsEditObj("IsIFrame") = True then Response.Write("checked")%>>
  337.         SCRIPT<input type="checkbox" name="IsScript" value="1" <% if RsEditObj("IsScript") = True then Response.Write("checked")%>>
  338.       </td>
  339.     </tr>
  340.     <tr class="hback" > 
  341.       <td height="36" colspan="2">
  342. <div align="center"></div>
  343.         <div align="center">
  344.           <input onClick="ChangeCutPara(0);" <% if RsEditObj("OtherType") = 0 then Response.Write("checked") %> name="OtherType" type="radio" value="0">
  345.           不分页 
  346.           <input type="radio" onClick="ChangeCutPara(1);" name="OtherType" <% if RsEditObj("OtherType") = 1 then Response.Write("checked") %> value="1">
  347.           标记分页设置 
  348.           <input type="radio" onClick="ChangeCutPara(2);" <% if RsEditObj("OtherType") = 2 then Response.Write("checked") %> name="OtherType" value="2">
  349.           索引分页设置 
  350.           <input type="radio" onClick="ChangeCutPara(3);" <% if RsEditObj("OtherType") = 3 then Response.Write("checked") %> name="OtherType" value="3">
  351.           手工分页设置
  352.   <input type="radio" onClick="ChangeCutPara(4);" <% if RsEditObj("OtherType") = 4 then Response.Write("checked") %> name="OtherType" value="4">
  353.           <b>列表内容范围设置</b></div></td>
  354.     </tr>
  355.     <tr class="hback"  id="TagCutPage" style="display:<% if RsEditObj("OtherType") <> 1 then Response.Write("none") %>;"> 
  356.       <td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  357.           <tr class="hback" > 
  358.             <td width="15%"> 
  359.               <div align="center">其他页面</div></td>
  360.             <td>
  361. &nbsp;&nbsp;输入区域:
  362. <span onClick="if(document.Form.OtherPageSetting.rows>2)document.Form.OtherPageSetting.rows-=1" style='cursor:hand'><b>缩小</b></span>
  363. <span onClick="document.Form.OtherPageSetting.rows+=1" style='cursor:hand'><b>扩大</b></span>
  364. &nbsp;&nbsp;可用标签:<font onmouseover="getActiveText(document.Form.OtherPageSetting);" onClick="addTag('[其他页面]')" style="CURSOR: hand"><b>[其他页面]</b></font>
  365. &nbsp;&nbsp;&nbsp;<font onmouseover="getActiveText(document.Form.OtherPageSetting);" onClick="addTag('[变量]')" style="CURSOR: hand"><b>[变量]</b></font>
  366. <br>
  367. <textarea  ondblclick="getActiveText(this)" onClick="getActiveText(this)"  onchange="getActiveText(this)" name="OtherPageSetting" id="OtherPageSetting" rows="4" style="width:100%;"><%=RsEditObj("OtherPageHeadSetting")%>[其他页面]<%=RsEditObj("OtherPageFootSetting")%></textarea></td>
  368.           </tr>
  369.         </table></td>
  370.     </tr>
  371.     <tr class="hback"  id="IndexCutPage" style="display:<% if RsEditObj("OtherType") <> 2 then Response.Write("none") %>;"> 
  372.       <td colspan="2"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
  373.           <tr class="hback" > 
  374.             <td width="15%"> 
  375.               <div align="center">索引规则 </div></td>
  376.             <td>
  377. &nbsp;&nbsp;输入区域:
  378. <span onClick="if(document.Form.IndexRule.rows>2)document.Form.IndexRule.rows-=1" style='cursor:hand'><b>缩小</b></span>
  379. <span onClick="document.Form.IndexRule.rows+=1" style='cursor:hand'><b>扩大</b></span><br>
  380. <textarea name="IndexRule" rows="3" id="IndexRule" style="width:100%;"><% = RsEditObj("IndexRule") %></textarea></td>
  381.           </tr>
  382.           <tr class="hback" > 
  383.             <td height="26"> <div align="center">页码</div></td>
  384.             <td>页码开始: 
  385.               <input name="StartPageNum" type="text" id="StartPageNum" size="3" maxlength="8" value="<% = RsEditObj("StartPageNum") %>">
  386.               页码结束 
  387.               <input name="EndPageNum" type="text" id="EndPageNum" size="3" maxlength="8" value="<% = RsEditObj("EndPageNum") %>">&nbsp&nbsp例:在索引规则中写http://.../index_^$^.htm,其中^$^代表设定的页码</td>
  388.           </tr>
  389.         </table></td>
  390.     </tr>
  391.     <tr class="hback"  id="HandCutPage" style="display:<% if RsEditObj("OtherType") <> 3 then Response.Write("none") %>;"> 
  392.       <td width="10%"> <div align="center">分页内容</div></td>
  393.       <td height="26">   &nbsp;&nbsp;输入区域:
  394. <span onClick="if(document.Form.HandPageContent.rows>2)document.Form.HandPageContent.rows-=1" style='cursor:hand'><b>缩小</b></span>
  395. <span onClick="document.Form.HandPageContent.rows+=1" style='cursor:hand'><b>扩大</b></span>
  396. <textarea  name="HandPageContent" rows="6" id="HandPageContent" style="width:100%;"><% = RsEditObj("HandPageContent") %></textarea></tr>
  397.     <tr class="hback"   id="ListContent" style="display:none"> 
  398.       <td colspan="2">
  399.   <table width="100%" border="0" cellspacing="0" cellpadding="0">
  400.           <tr class="hback" > 
  401.             <td width="15%"> 
  402.   <div align="center">列表内容</div></td>
  403.       <td> &nbsp;&nbsp;输入区域:
  404. <span onClick="if(document.Form.ListSetting.rows>2)document.Form.ListSetting.rows-=1" style='cursor:hand'><b>缩小</b></span>
  405. <span onClick="document.Form.ListSetting.rows+=1" style='cursor:hand'><b>扩大</b></span>
  406.   &nbsp;&nbsp;可用标签:<font onmouseover="getActiveText(document.Form.ListSetting);" onClick="addTag('[列表内容]')" style="CURSOR: hand"><b>[列表内容]</b></font>
  407.   &nbsp;&nbsp;&nbsp;<font onmouseover="getActiveText(document.Form.ListSetting);" onClick="addTag('[变量]')" style="CURSOR: hand"><b>[变量]</b></font><br>
  408.    <textarea  ondblclick="getActiveText(this)" onClick="getActiveText(this)"  onchange="getActiveText(this)" name="ListSetting" cols="50" rows="3" id="ListSetting" style="width:100%;"><%=RsEditObj("ListHeadSetting")%>[列表内容]<%=RsEditObj("ListFootSetting")%></textarea>
  409.    </td>
  410.           </tr>
  411.         </table>
  412.       </td>
  413.     </tr>
  414.     <tr class="hback" > 
  415.       <td> <div align="center">列表URL<font color="#ff0000">*</font></div></td>
  416.       <td> &nbsp;&nbsp;输入区域:
  417. <span onClick="if(document.Form.LinkSetting.rows>2)document.Form.LinkSetting.rows-=1" style='cursor:hand'><b>缩小</b></span>
  418. <span onClick="document.Form.LinkSetting.rows+=1" style='cursor:hand'><b>扩大</b></span>
  419. &nbsp;&nbsp;可用标签:<font onmouseover="getActiveText(document.Form.LinkSetting);" onClick="addTag('[列表URL]')" style="CURSOR: hand"><b>[列表URL]</b></font>&nbsp;&nbsp;&nbsp;<font onmouseover="getActiveText(document.Form.LinkSetting);" onClick="addTag('[变量]')" style="CURSOR: hand"><b>[变量]</b></font><br>
  420.   <textarea   ondblclick="getActiveText(this)" onClick="getActiveText(this)"  onchange="getActiveText(this)"  name="LinkSetting" cols="50" rows="3" id="textarea2" style="width:100%;"><%=RsEditObj("LinkHeadSetting")%>[列表URL]<%=RsEditObj("LinkFootSetting")%></textarea></td>
  421.     </tr>
  422.     <tr class="hback" > 
  423.       <td> <div align="center">新闻标题<font color="#ff0000">*</font></div></td>
  424.       <td> &nbsp;&nbsp;输入区域:
  425. <span onClick="if(document.Form.PageTitleSetting.rows>2)document.Form.PageTitleSetting.rows-=1" style='cursor:hand'><b>缩小</b></span>
  426. <span onClick="document.Form.PageTitleSetting.rows+=1" style='cursor:hand'><b>扩大</b></span>
  427. &nbsp;&nbsp;可用标签:<font onmouseover="getActiveText(document.Form.PageTitleSetting);" onClick="addTag('[新闻标题]')" style="CURSOR: hand"><b>[新闻标题]</b></font>&nbsp;&nbsp;&nbsp;<font onmouseover="getActiveText(document.Form.PageTitleSetting);" onClick="addTag('[变量]')" style="CURSOR: hand"><b>[变量]</b></font><br>
  428.   <textarea  ondblclick="getActiveText(this)" onClick="getActiveText(this)"  onchange="getActiveText(this)"  name="PageTitleSetting" cols="50" rows="3" id="textarea6" style="width:100%;"><%=RsEditObj("PageTitleHeadSetting")%>[新闻标题]<%=RsEditObj("PageTitleFootSetting")%></textarea></td>
  429.     </tr>
  430.     <tr class="hback" > 
  431.       <td> <div align="center">新闻内容<font color="#ff0000">*</font></div></td>
  432.       <td> &nbsp;&nbsp;输入区域:
  433. <span onClick="if(document.Form.PagebodySetting.rows>2)document.Form.PagebodySetting.rows-=1" style='cursor:hand'><b>缩小</b></span>
  434. <span onClick="document.Form.PagebodySetting.rows+=1" style='cursor:hand'><b>扩大</b></span>
  435.   &nbsp;&nbsp;可用标签:<font onmouseover="getActiveText(document.Form.PagebodySetting);" onClick="addTag('[新闻内容]')" style="CURSOR: hand"><b>[新闻内容]</b></font>&nbsp;&nbsp;&nbsp;<font onmouseover="getActiveText(document.Form.PagebodySetting);" onClick="addTag('[变量]')" style="CURSOR: hand"><b>[变量]</b></font><br>
  436.    <textarea  ondblclick="getActiveText(this)" onClick="getActiveText(this)"  onchange="getActiveText(this)"  name="PagebodySetting" cols="50" rows="3" id="textarea8" style="width:100%;"><%=RsEditObj("PagebodyHeadSetting")%>[新闻内容]<%=RsEditObj("PagebodyFootSetting")%></textarea></td>
  437.     </tr>
  438.     <tr class="hback" > 
  439.       <td height="26" colspan="4"> <div align="center">
  440.           <input name="OtherSetType" type="radio" onClick="ChangeSetOption(0);" value="0" checked>
  441.           设置作者 
  442.           <input type="radio" name="OtherSetType" onClick="ChangeSetOption(1);" value="1">
  443.           设置来源 
  444.           <input type="radio" name="OtherSetType" onClick="ChangeSetOption(2);" value="2">
  445.           设置时间 
  446.   </div></td>
  447.     </tr>
  448.     <tr class="hback"  id="SetAuthor" style="display:;"> 
  449.       <td colspan="4"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  450.           <tr class="hback" >
  451.             <td height="26"> 
  452.               <div align="center">手动设置</div></td>
  453.             <td colspan="3"><input style="width:100%;" type="text" name="HandSetAuthor" value="<% = RsEditObj("HandSetAuthor") %>"></td>
  454.           </tr>
  455.           <tr class="hback" > 
  456.             <td width="15%"> 
  457.               <div align="center">作者</div></td>
  458.             <td colspan="3"> &nbsp;&nbsp;输入区域:
  459. <span onClick="if(document.Form.AuthorSetting.rows>2)document.Form.AuthorSetting.rows-=1" style='cursor:hand'><b>缩小</b></span>
  460. <span onClick="document.Form.AuthorSetting.rows+=1" style='cursor:hand'><b>扩大</b></span>
  461. &nbsp;&nbsp;可用标签:<font onmouseover="getActiveText(document.Form.AuthorSetting);" onClick="addTag('[作者]')" style="CURSOR: hand"><b>[作者]</b></font>&nbsp;&nbsp;&nbsp;<font onmouseover="getActiveText(document.Form.AuthorSetting);" onClick="addTag('[变量]')" style="CURSOR: hand"><b>[变量]</b></font><br>
  462. <textarea  ondblclick="getActiveText(this)" onClick="getActiveText(this)"  onchange="getActiveText(this)"  name="AuthorSetting" cols="50" rows="3" id="textarea9" style="width:100%;"><%=RsEditObj("AuthorHeadSetting")%>[作者]<%=RsEditObj("AuthorFootSetting")%></textarea></td>
  463.           </tr>
  464.         </table></td>
  465.     </tr>
  466.     <tr class="hback"  id="SetSource" style="display:none;"> 
  467.       <td colspan="4"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  468.           <tr class="hback" >
  469.             <td height="26">
  470. <div align="center">手动设置</div></td>
  471.             <td colspan="3"><input style="width:100%;" type="text" name="HandSetSource" value="<% = RsEditObj("HandSetSource") %>"></td>
  472.           </tr>
  473.   <tr class="hback" > 
  474.             <td width="15%"> 
  475.               <div align="center">来源</div></td>
  476.             <td colspan="3"> &nbsp;&nbsp;输入区域:
  477. <span onClick="if(document.Form.SourceSetting.rows>2)document.Form.SourceSetting.rows-=1" style='cursor:hand'><b>缩小</b></span>
  478. <span onClick="document.Form.SourceSetting.rows+=1" style='cursor:hand'><b>扩大</b></span>
  479. &nbsp;&nbsp;可用标签:<font onmouseover="getActiveText(document.Form.SourceSetting);" onClick="addTag('[来源]')" style="CURSOR: hand"><b>[来源]</b></font>&nbsp;&nbsp;&nbsp;<font onmouseover="getActiveText(document.Form.SourceSetting);" onClick="addTag('[变量]')" style="CURSOR: hand"><b>[变量]</b></font><br>
  480.  <textarea   ondblclick="getActiveText(this)" onClick="getActiveText(this)"  onchange="getActiveText(this)" name="SourceSetting" cols="50" rows="3" id="textarea9a" style="width:100%;"><%=RsEditObj("SourceHeadSetting")%>[来源]<%=RsEditObj("SourceFootSetting")%></textarea></td>
  481.           </tr>
  482.         </table></td>
  483.     </tr>
  484.     <tr class="hback"  id="SetAddTime" style="display:none;"> 
  485.       <td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  486.           <tr class="hback" >
  487.             <td height="26">
  488. <div align="center">手动设置</div></td>
  489.             <td colspan="3"><input style="width:100%;" type="text" name="HandSetAddDate" value="<% = RsEditObj("HandSetAddDate") %>"></td>
  490.           </tr>
  491.   <tr class="hback" > 
  492.             <td width="15%"> 
  493.               <div align="center">加入时间</div></td>
  494.             <td> &nbsp;&nbsp;输入区域:
  495. <span onClick="if(document.Form.AddDateSetting.rows>2)document.Form.AddDateSetting.rows-=1" style='cursor:hand'><b>缩小</b></span>
  496. <span onClick="document.Form.AddDateSetting.rows+=1" style='cursor:hand'><b>扩大</b></span>
  497. &nbsp;&nbsp;可用标签:<font onmouseover="getActiveText(document.Form.AddDateSetting);" onClick="addTag('[加入时间]')" style="CURSOR: hand"><b>[加入时间]</b></font>&nbsp;&nbsp;&nbsp;<font onmouseover="getActiveText(document.Form.AddDateSetting);" onClick="addTag('[变量]')" style="CURSOR: hand"><b>[变量]</b></font><br>
  498.  <textarea  ondblclick="getActiveText(this)" onClick="getActiveText(this)"  onchange="getActiveText(this)"  name="AddDateSetting" cols="50" rows="3" id="textarea9" style="width:100%;"><%=RsEditObj("AddDateHeadSetting")%>[加入时间]<%=RsEditObj("AddDateFootSetting")%></textarea></td>
  499.           </tr>
  500.         </table></td>
  501.     </tr>
  502.     <tr class="hback" > 
  503.       <td height="26" colspan="4"> <div align="center">
  504.           <input name="OtherNewsType" <% if RsEditObj("OtherNewsType") = 0 then Response.Write("checked") %> type="radio" onClick="ChangeNewsSetOption(0);" value="0" checked>
  505.           不设置新闻分页 
  506.           <input type="radio" <% if RsEditObj("OtherNewsType") = 1 then Response.Write("checked") %> name="OtherNewsType" onClick="ChangeNewsSetOption(1);" value="1">
  507.           新闻标记分页
  508.           <input type="radio" <% if RsEditObj("OtherNewsType") = 2 then Response.Write("checked") %> name="OtherNewsType" onClick="ChangeNewsSetOption(2);" value="2">
  509.           新闻索引分页
  510.           <input type="radio" <% if RsEditObj("OtherNewsType") = 3 then Response.Write("checked") %> name="OtherNewsType" onClick="ChangeNewsSetOption(3);" value="3">
  511.           新闻手动分页
  512.   </div></td>
  513.     </tr>
  514.     <tr class="hback"  id="SetCutPage" style="display:none;"> 
  515.       <td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  516. <tr class="hback" > 
  517.             <td width="15%"> 
  518.               <div align="center">分页新闻<br>(下一页)</div></td>
  519.       <td>  &nbsp;&nbsp;输入区域:
  520. <span onClick="if(document.Form.OtherNewsPageSetting.rows>2)document.Form.OtherNewsPageSetting.rows-=1" style='cursor:hand'><b>缩小</b></span>
  521. <span onClick="document.Form.OtherNewsPageSetting.rows+=1" style='cursor:hand'><b>扩大</b></span>
  522.   &nbsp;&nbsp;可用标签:<font onmouseover="getActiveText(document.Form.OtherNewsPageSetting);" onClick="addTag('[分页新闻]')" style="CURSOR: hand"><b>[分页新闻]</b></font>&nbsp;&nbsp;&nbsp;<font onmouseover="getActiveText(document.Form.OtherNewsPageSetting);" onClick="addTag('[变量]')" style="CURSOR: hand"><b>[变量]</b></font><br>
  523.   <textarea  ondblclick="getActiveText(this)" onClick="getActiveText(this)"  onchange="getActiveText(this)" name="OtherNewsPageSetting" cols="50" rows="3" id="textarea5" style="width:100%;"><%=RsEditObj("OtherNewsPageHeadSetting")%>[分页新闻]<%=RsEditObj("OtherNewsPageFootSetting")%></textarea></td>
  524.     </tr>
  525.         </table></td>
  526.     </tr>
  527.     <tr class="hback"  id="SetIndexCutPage" style="display:none;"> 
  528.       <td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  529.           <tr class="hback" > 
  530.             <td width="15%"> 
  531.               <div align="center">索引规则 </div></td>
  532.             <td>
  533. &nbsp;&nbsp;输入区域:
  534. <span onClick="if(document.Form.IndexRule.rows>2)document.Form.IndexRule.rows-=1" style='cursor:hand'><b>缩小</b></span>
  535. <span onClick="document.Form.IndexRule.rows+=1" style='cursor:hand'><b>扩大</b></span><br>
  536. <textarea name="OtherNewsPageIndexSetting" rows="2" id="OtherNewsPageIndexSetting" style="width:100%;"><% = RsEditObj("OtherNewsPageIndexSetting") %></textarea></td>
  537.           </tr>
  538.           <tr class="hback" > 
  539.             <td height="26"> <div align="center">页码</div></td>
  540.             <td>页码开始: 
  541.               <input name="OtherNewsPageIndexSettingStartPageNum" type="text" id="OtherNewsPageIndexSettingStartPageNum" size="3" maxlength="8" value="<% = RsEditObj("OtherNewsPageIndexSettingStartPageNum") %>">
  542.               页码结束 
  543.               <input name="OtherNewsPageIndexSettingEndPageNum" type="text" id="OtherNewsPageIndexSettingEndPageNum" size="3" maxlength="8" value="<% = RsEditObj("OtherNewsPageIndexSettingEndPageNum") %>">
  544.               &nbsp&nbsp例:在索引规则中写http://.../20060203345_^$^.htm,其中^$^代表设定的页码</td>
  545.           </tr>
  546.         </table></td>
  547.     </tr>
  548. <tr class="hback"  id="SetHandCutPage" style="display:none;"> 
  549.       <td width="10%"> <div align="center">分页内容</div></td>
  550.       <td height="26">&nbsp;&nbsp;输入区域:<span onClick="if(document.Form.HandPageContent.rows>2)document.Form.HandPageContent.rows-=1" style='cursor:hand'><b>缩小</b></span><span onClick="document.Form.HandPageContent.rows+=1" style='cursor:hand'><b>扩大</b></span><textarea  name="OtherNewsPageIndexSettingHandPageContent" rows="6" id="OtherNewsPageIndexSettingHandPageContent" style="width:100%;"><% = RsEditObj("OtherNewsPageIndexSettingHandPageContent") %></textarea>
  551.   </td>
  552. </tr>
  553. </table>
  554. </form>
  555. <p><br><p><p>
  556. </body>
  557. </html>
  558. <%
  559. Set Conn = Nothing
  560. Set CollectConn = Nothing
  561. Set RsEditObj = Nothing
  562. %>
  563. <script language="JavaScript">
  564. function ChangeCutPara(Flag)
  565. {
  566. switch (Flag)
  567. {
  568. case 0 :
  569. document.all.TagCutPage.style.display='none';
  570. document.all.IndexCutPage.style.display='none';
  571. document.all.HandCutPage.style.display='none';
  572. document.all.ListContent.style.display='none';
  573. break;
  574. case 1 :
  575. document.all.TagCutPage.style.display='';
  576. document.all.IndexCutPage.style.display='none';
  577. document.all.HandCutPage.style.display='none';
  578. document.all.ListContent.style.display='none';
  579. break;
  580. case 2 :
  581. document.all.TagCutPage.style.display='none';
  582. document.all.IndexCutPage.style.display='';
  583. document.all.HandCutPage.style.display='none';
  584. document.all.ListContent.style.display='none';
  585. break;
  586. case 3 :
  587. document.all.TagCutPage.style.display='none';
  588. document.all.IndexCutPage.style.display='none';
  589. document.all.HandCutPage.style.display='';
  590. document.all.ListContent.style.display='none';
  591. break;
  592. case 4 :
  593. document.all.TagCutPage.style.display='none';
  594. document.all.IndexCutPage.style.display='none';
  595. document.all.HandCutPage.style.display='none';
  596. document.all.ListContent.style.display='';
  597. break;
  598. default :
  599. document.all.TagCutPage.style.display='none';
  600. document.all.IndexCutPage.style.display='none';
  601. document.all.HandCutPage.style.display='none';
  602. document.all.ListContent.style.display='none';
  603. break;
  604. }
  605. }
  606. function ChangeSetOption(Flag)
  607. {
  608. switch (Flag)
  609. {
  610. case 0 :
  611. document.all.SetAuthor.style.display='';
  612. document.all.SetSource.style.display='none';
  613. document.all.SetAddTime.style.display='none';
  614. break;
  615. case 1 :
  616. document.all.SetAuthor.style.display='none';
  617. document.all.SetSource.style.display='';
  618. document.all.SetAddTime.style.display='none';
  619. break;
  620. case 2 :
  621. document.all.SetAuthor.style.display='none';
  622. document.all.SetSource.style.display='none';
  623. document.all.SetAddTime.style.display='';
  624. break;
  625. case 999 :
  626. document.all.SetAuthor.style.display='none';
  627. document.all.SetSource.style.display='none';
  628. document.all.SetAddTime.style.display='none';
  629. break;
  630. default :
  631. document.all.SetAuthor.style.display='none';
  632. document.all.SetSource.style.display='none';
  633. document.all.SetAddTime.style.display='none';
  634. break;
  635. }
  636. }
  637. function ChangeNewsSetOption(f_Flag)
  638. {
  639. switch (f_Flag)
  640. {
  641. case 0 :
  642. document.all.SetCutPage.style.display='none';
  643. document.all.SetIndexCutPage.style.display='none';
  644. document.all.SetHandCutPage.style.display='none';
  645. break;
  646. case 1 :
  647. document.all.SetCutPage.style.display='';
  648. document.all.SetIndexCutPage.style.display='none';
  649. document.all.SetHandCutPage.style.display='none';
  650. break;
  651. case 2 :
  652. document.all.SetCutPage.style.display='none';
  653. document.all.SetIndexCutPage.style.display='';
  654. document.all.SetHandCutPage.style.display='none';
  655. break;
  656. case 3 :
  657. document.all.SetCutPage.style.display='none';
  658. document.all.SetIndexCutPage.style.display='none';
  659. document.all.SetHandCutPage.style.display='';
  660. break;
  661. default :
  662. document.all.SetCutPage.style.display='none';
  663. document.all.SetIndexCutPage.style.display='none';
  664. document.all.SetHandCutPage.style.display='none';
  665. break;
  666. }
  667. }   
  668. currObj = "uuuu";
  669. function getActiveText(obj)
  670. {
  671. obj.focus();
  672. currObj = obj;
  673. }
  674. function addTag(code)
  675. {
  676. addText(code);
  677. }
  678. function addText(ibTag)
  679. {
  680. var isClose = false;
  681. var obj_ta = currObj;
  682. //alert("ok");
  683. if (obj_ta.isTextEdit)
  684. {
  685. //alert("nooooo");
  686. obj_ta.focus();
  687. var sel = document.selection;
  688. var rng = sel.createRange();
  689. rng.colapse;
  690. if((sel.type == "Text" || sel.type == "None") && rng != null)
  691. {
  692. rng.text = ibTag;
  693. }
  694. obj_ta.focus();
  695. return isClose;
  696. }
  697. else
  698. return false;
  699. }
  700. -->
  701. </script>