Xml_Edit.asp
上传用户:saigedz
上传日期:2019-10-14
资源大小:997k
文件大小:20k
源码类别:

中间件编程

开发平台:

HTML/CSS

  1. <%@ CODEPAGE=65001 %>
  2. <%
  3. '///////////////////////////////////////////////////////////////////////////////
  4. '// 插件应用:    1.8 Pre Terminator 及以上版本, 其它版本的Z-blog未知
  5. '// 插件制作:    haphic(http://haphic.com/)
  6. '// 备    注:    主题管理插件
  7. '// 最后修改:   2008-6-28
  8. '// 最后版本:    1.2
  9. '///////////////////////////////////////////////////////////////////////////////
  10. %>
  11. <% Option Explicit %>
  12. <% On Error Resume Next %>
  13. <% Response.Charset="UTF-8" %>
  14. <% Response.Buffer=True %>
  15. <!-- #include file="../../c_option.asp" -->
  16. <!-- #include file="../../function/c_function.asp" -->
  17. <!-- #include file="../../function/c_system_lib.asp" -->
  18. <!-- #include file="../../function/c_system_base.asp" -->
  19. <!-- #include file="../../function/c_system_plugin.asp" -->
  20. <!-- #include file="c_sapper.asp" -->
  21. <%
  22. Call System_Initialize()
  23. '检查非法链接
  24. Call CheckReference("")
  25. '检查权限
  26. If BlogUser.Level>1 Then Call ShowError(6)
  27. If CheckPluginState("ThemeSapper")=False Then Call ShowError(48)
  28. BlogTitle = "编辑主题信息"
  29. %>
  30. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  31. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<%=ZC_BLOG_LANGUAGE%>" lang="<%=ZC_BLOG_LANGUAGE%>">
  32. <head>
  33. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  34. <meta http-equiv="Content-Language" content="<%=ZC_BLOG_LANGUAGE%>" />
  35. <meta name="robots" content="noindex,nofollow"/>
  36. <link rel="stylesheet" rev="stylesheet" href="../../CSS/admin.css" type="text/css" media="screen" />
  37. <link rel="stylesheet" rev="stylesheet" href="images/style.css" type="text/css" media="screen" />
  38. <script language="JavaScript" src="../../script/common.js" type="text/javascript"></script>
  39. <script language="JavaScript" src="../../script/jquery.tabs.pack.js" type="text/javascript"></script>
  40. <link rel="stylesheet" href="../../CSS/jquery.tabs.css" type="text/css" media="print, projection, screen">
  41. <!--[if lte IE 7]>
  42. <link rel="stylesheet" href="../../CSS/jquery.tabs-ie.css" type="text/css" media="projection, screen">
  43. <![endif]-->
  44. <title><%=BlogTitle%></title>
  45. </head>
  46. <body>
  47. <script language="javascript">
  48. $(document).ready(function(){
  49. $("#divMain2").tabs({ fxFade: true, fxSpeed: 'fast' });
  50. });
  51. </script>
  52. <div id="divMain">
  53. <div class="Header">Theme Sapper - 主题信息编辑 - 编辑主题的 Theme.xml 信息文档. <a href="help.asp#editinfo" title="编辑主题信息页帮助">[页面帮助]</a></div>
  54. <%Call SapperMenu("0")%>
  55. <%
  56. Action=Request.QueryString("act")
  57. SelectedTheme=Request.QueryString("theme")
  58. Response.Write "<div>"
  59. Response.Flush
  60. If Action="" Then
  61. Response.Write "<p id=""loading"">正在载入主题信息, 请稍候...  如果长时间停止响应, 请 <a href=""javascript:window.location.reload();"" title=""点此重试"">[点此重试]</a></p>"
  62. Response.Flush
  63. Call EditXMLPackInfo()
  64. Response.Write "<script language=""JavaScript"" type=""text/javascript"">document.getElementById('loading').style.display = 'none';</script>"
  65. End If
  66. If Action="save" Then
  67. Response.Write "<div id=""divMain2"">"
  68. Response.Write "<p id=""loading2"">正在写入主题信息, 请稍候...  如果长时间停止响应, 请 <a href=""javascript:window.location.reload();"" title=""点此重试"">[点此重试]</a></p>"
  69. Response.Flush
  70. Dim Pack_Error
  71. Pack_Error=0
  72. If SelectedTheme="" Then
  73. Response.Write "<p><font color=""red""> × 主题的名称为空.</font></p>"
  74. Pack_Error=Pack_Error+1
  75. Else
  76. Response.Write "<p class=""status-box""><font color=""Navy"">正在保存XML...</font><p>"
  77. Response.Flush
  78. Dim ZipPathFile
  79. Dim TS_startime,TS_endtime
  80. '打包文件目录与生成文件名
  81. ZipPathFile = BlogPath & "THEMES" & SelectedTheme & "Theme.xml"
  82. '开始打包
  83. CreateXml(ZipPathFile)
  84. End If
  85. If Pack_Error = 0 Then
  86. Call SetBlogHint(True,Empty,Empty)
  87. Response.Write "<p class=""status-box""><font color=""Navy""> √ 主题信息保存完成. 如果您的浏览器没能自动跳转, 请 <a href=""ThemeDetail.asp?theme="& Server.URLEncode(SelectedTheme) &""">[点击这里]</a>.</font></p>"
  88. Response.Write "<script>setTimeout(""self.location.href='ThemeDetail.asp?theme="& Server.URLEncode(SelectedTheme) &"'"",1000);</script>"
  89. Else
  90. Call SetBlogHint(False,Empty,Empty)
  91. Response.Write "<p class=""status-box""><font color=""red""> × 主题信息保存失败. "
  92. Response.Write "<a href=""javascript:history.back(-1)"" title=""返回上一个页面""><span>[返回]</span></a> 或 <a href=""javascript:window.location.reload();"" title=""返回资源列表页""><span>[重试]</span></a></font></p>"
  93. End If
  94. Response.Write "</div>"
  95. Response.Write "<script language=""JavaScript"" type=""text/javascript"">document.getElementById('loading2').style.display = 'none';</script>"
  96. End If
  97. Response.Write "</div>"
  98. %>
  99. </div>
  100. </body>
  101. </html>
  102. <%
  103. '编辑XML安装包内的信息
  104. Sub EditXMLPackInfo()
  105. On Error Resume Next
  106. Dim objXmlFile,strXmlFile
  107. Dim fso
  108. Set fso = CreateObject("Scripting.FileSystemObject")
  109. If fso.FileExists(BlogPath & "/THEMES/" & SelectedTheme & "/" & "theme.xml") Then
  110. strXmlFile =BlogPath & "/THEMES/" & SelectedTheme & "/" & "theme.xml"
  111. Set objXmlFile=Server.CreateObject("Microsoft.XMLDOM")
  112. objXmlFile.async = False
  113. objXmlFile.ValidateOnParse=False
  114. objXmlFile.load(strXmlFile)
  115. If objXmlFile.readyState=4 Then
  116. If objXmlFile.parseError.errorCode <> 0 Then
  117. Else
  118. 'ThemeID=SelectedTheme
  119. ThemeID=objXmlFile.documentElement.selectSingleNode("id").text
  120. ThemeName=objXmlFile.documentElement.selectSingleNode("name").text
  121. ThemeURL=objXmlFile.documentElement.selectSingleNode("url").text
  122. ThemeNote=objXmlFile.documentElement.selectSingleNode("note").text
  123. ThemeAuthor_Name=objXmlFile.documentElement.selectSingleNode("author/name").text
  124. ThemeAuthor_Url=objXmlFile.documentElement.selectSingleNode("author/url").text
  125. ThemeAuthor_Email=objXmlFile.documentElement.selectSingleNode("author/email").text
  126. ThemeSource_Name=objXmlFile.documentElement.selectSingleNode("source/name").text
  127. ThemeSource_Url=objXmlFile.documentElement.selectSingleNode("source/url").text
  128. ThemeSource_Email=objXmlFile.documentElement.selectSingleNode("source/email").text
  129. ThemePlugin_Name=objXmlFile.documentElement.selectSingleNode("plugin/name").text
  130. ThemePlugin_Note=objXmlFile.documentElement.selectSingleNode("plugin/note").text
  131. ThemePlugin_Type=objXmlFile.documentElement.selectSingleNode("plugin/type").text
  132. ThemePlugin_Path=objXmlFile.documentElement.selectSingleNode("plugin/path").text
  133. ThemePlugin_Include=objXmlFile.documentElement.selectSingleNode("plugin/include").text
  134. ThemePlugin_Level=objXmlFile.documentElement.selectSingleNode("plugin/level").text
  135. ThemeAdapted=objXmlFile.documentElement.selectSingleNode("adapted").text
  136. ThemeVersion=objXmlFile.documentElement.selectSingleNode("version").text
  137. ThemePubDate=objXmlFile.documentElement.selectSingleNode("pubdate").text
  138. ThemeModified=objXmlFile.documentElement.selectSingleNode("modified").text
  139. ThemeDescription=objXmlFile.documentElement.selectSingleNode("description").text
  140. ThemeAuthor_Name=TransferHTML(ThemeAuthor_Name,"[html-format]")
  141. ThemeSource_Name=TransferHTML(ThemeSource_Name,"[html-format]")
  142. ThemeName=TransferHTML(ThemeName,"[html-format]")
  143. ThemeNote=TransferHTML(ThemeNote,"[html-format]")
  144. ThemeDescription=TransferHTML(ThemeDescription,"[html-format]")
  145. End If
  146. Set objXmlFile=Nothing
  147. End If
  148. Else
  149. ThemeID=SelectedTheme
  150. ThemeName=SelectedTheme
  151. ThemeURL=Empty
  152. ThemeNote=Empty
  153. ThemeSource_Name=Empty
  154. ThemeSource_Url=Empty
  155. ThemeSource_Email=Empty
  156. ThemeAuthor_Name=Empty
  157. ThemeAuthor_Url=Empty
  158. ThemeAuthor_Email=Empty
  159. ThemePlugin_Name=Empty
  160. ThemePlugin_Note=Empty
  161. ThemePlugin_Type=Empty
  162. ThemePlugin_Path=Empty
  163. ThemePlugin_Include=Empty
  164. ThemePlugin_Level=Empty
  165. ThemeAdapted="Z-Blog 1.8"
  166. ThemeVersion=Empty
  167. ThemePubDate=Date()
  168. ThemeModified=Date()
  169. ThemeDescription=Empty
  170. End If
  171. Set fso = nothing
  172. Err.Clear
  173. Response.Write "<form method=""post"" action=""Xml_Edit.asp?act=save&theme="& SelectedTheme &""">"
  174. Response.Write "<div id=""divMain2"">"
  175. Call GetBlogHint()
  176. %>
  177. <ul>
  178. <li class="tabs-selected"><a href="#fragment-1"><span>主题信息</span></a></li>
  179. <li><a href="#fragment-2"><span>作者信息</span></a></li>
  180. <li><a href="#fragment-3"><span>主题说明</span></a></li>
  181. <li><a href="#fragment-4"><span>主题自带插件(可选)</span></a></li>
  182. </ul>
  183. <%
  184. Response.Write "<div class=""tabs-div"" id=""fragment-1"">"
  185. Response.Write "<p>※主题ID: (主题ID应为主题文件夹名称, 由编辑器自动完成填写, 不可修改.)</p><p><input name=""ThemeID"" style=""width:99%"" type=""text"" value="""&SelectedTheme&""" readonly /></p><p></p>"
  186. Response.Write "<p>※主题名称:</p><p><input name=""ThemeName"" style=""width:99%"" type=""text"" value="""&ThemeName&""" /></p><p></p>"
  187. Response.Write "<p>※主题的发布页面: (带 http:// 等协议名的页面地址, 以方便使用者获取更多的主题信息)</p><p><input name=""ThemeURL"" style=""width:99%"" type=""text"" value="""&ThemeURL&""" /></p><p></p>"
  188. Response.Write "<p>※主题简介 (可以用 &lt;br /&gt; 换行, 可以使用 html 标签):</p><p><textarea name=""ThemeNote"" style=""width:99%"" rows=""5"">"&ThemeNote&"</textarea></p><p></p>"
  189. Response.Write "<p>※适用的 Z-Blog 版本: (要求写法: ""Z-Blog 1.8 Spirit"")</p><p><input name=""ThemeAdapted"" style=""width:99%"" type=""text"" value="""&ThemeAdapted&""" /></p><p></p>"
  190. Response.Write "<p><b>以下信息对查找主题可用更新极为重要, 建议在每次修改主题后更新这些信息!</a></b></p><hr />"
  191. Response.Write "<p>※主题的版本号:</p><p><input name=""ThemeVersion"" style=""width:99%"" type=""text"" value="""&ThemeVersion&""" /></p><p></p>"
  192. Response.Write "<p>※您的主题的发布日期: (日期标准格式:"""&Date()&""")</p><p><input name=""ThemePubDate"" style=""width:99%"" type=""text"" value="""&ThemePubDate&""" /></p><p></p>"
  193. Response.Write "<p>※最后修改日期: (日期标准格式:"""&Date()&""")</p><p><input name=""ThemeModified"" style=""width:99%"" type=""text"" value="""&ThemeModified&""" /></p><p></p>"
  194. Response.Write "</div>"
  195. Response.Write "<div class=""tabs-div"" id=""fragment-2"">"
  196. Response.Write "<p>※作者名称:</p><p><input name=""ThemeAuthor_Name"" style=""width:99%"" type=""text"" value="""&ThemeAuthor_Name&""" /></p><p></p>"
  197. Response.Write "<p>※作者网址:</p><p><input name=""ThemeAuthor_URL"" style=""width:99%"" type=""text"" value="""&ThemeAuthor_Url&""" /></p><p></p>"
  198. Response.Write "<p>※作者 Email:</p><p><input name=""ThemeAuthor_Email"" style=""width:99%"" type=""text"" value="""&ThemeAuthor_Email&""" /></p><p></p>"
  199. Response.Write "<p>※源作者名称:</p><p><input name=""ThemeSource_Name"" style=""width:99%"" type=""text"" value="""&ThemeSource_Name&""" /></p><p></p>"
  200. Response.Write "<p>※源作者网址:</p><p><input name=""ThemeSource_URL"" style=""width:99%"" type=""text"" value="""&ThemeSource_Url&""" /></p><p></p>"
  201. Response.Write "<p>※源作者 Email:</p><p><input name=""ThemeSource_Email"" style=""width:99%"" type=""text"" value="""&ThemeSource_Email&""" /></p><p></p>"
  202. Response.Write "</div>"
  203. Response.Write "<div class=""tabs-div"" id=""fragment-3"">"
  204. Response.Write "<p>※详细说明 (可应用 HTML 代码, 但不必使用换行标签):</p><p><textarea name=""ThemeDescription"" style=""width:99%"" rows=""25"">"&TransferHTML(ThemeDescription,"[textarea]")&"</textarea></p><p></p>"
  205. Response.Write "</div>"
  206. Response.Write "<div class=""tabs-div"" id=""fragment-4"">"
  207. Response.Write "<p>※插件名称:</p><p><input name=""ThemePlugin_Name"" style=""width:99%"" type=""text"" value="""&ThemePlugin_Name&""" /></p><p></p>"
  208. Response.Write "<p>※插件简要说明:</p><p><input name=""ThemePlugin_Note"" style=""width:99%"" type=""text"" value="""&ThemePlugin_Note&""" /></p><p></p>"
  209. Response.Write "<p>※插件类型: (挂上接口为 ""inline"", 挂入接口为 ""outline"".)</p><p><input name=""ThemePlugin_Type"" style=""width:99%"" type=""text"" value="""&ThemePlugin_Type&""" /></p><p></p>"
  210. Response.Write "<p>※插件路径: (插件首页, 如 ""main.asp"".)</p><p><input name=""ThemePlugin_Path"" style=""width:99%"" type=""text"" value="""&ThemePlugin_Path&""" /></p><p></p>"
  211. Response.Write "<p>※插件 Include 文件: 如 (""include.asp"".)</p><p><input name=""ThemePlugin_Include"" style=""width:99%"" type=""text"" value="""&ThemePlugin_Include&""" /></p><p></p>"
  212. Response.Write "<p>※插件权限: ( ""1"" 为管理员, ""2"" 为高级用户. 以此类推...)</p><p><input name=""ThemePlugin_Level"" style=""width:99%"" type=""text"" value="""&ThemePlugin_Level&""" /></p><p></p>"
  213. Response.Write "</div>"
  214. Response.Write "<hr /><p><b>修改 ID 为 "&SelectedTheme&" 的主题的信息文档. <a href=""help.asp#themexml"">[关于主题信息文档 (Theme.xml)]</a></b></p>"
  215. Response.Write "<p><b>这些信息将被 (按主题信息文档规范版本 0.1) 保存为 Theme.xml 文件, 该文件将位于主题目录内. <a href=""help.asp#editinfo"">[如何编辑主题信息]</a></b></p><hr />"
  216. Response.Write "<p><input type=""submit"" class=""button"" value=""完成编辑并保存信息"" id=""btnPost"" title=""完成编辑并保存信息"" /> <input onclick=""self.location.href='ThemeList.asp';"" type=""button"" class=""button"" value=""取消并返回主题管理"" title=""取消并返回主题管理页"" /> <input onclick=""window.scrollTo(0,0);"" type=""button"" class=""button"" value=""TOP"" title=""返回页面顶部"" /></p>"
  217. Response.Write "</form>"
  218. Response.Write "</div>"
  219. End Sub
  220. '创建一个空的XML文件,为写入文件作准备
  221. Sub CreateXml(FilePath)
  222. On Error Resume Next
  223. '程序开始执行时间
  224. TS_startime=timer()
  225. Dim XmlDoc,Root,xRoot
  226. Set XmlDoc = Server.CreateObject("Microsoft.XMLDOM")
  227. XmlDoc.async = False
  228. XmlDoc.ValidateOnParse=False
  229. Set Root = XmlDoc.createProcessingInstruction("xml","version='1.0' encoding='utf-8' standalone='yes'")
  230. XmlDoc.appendChild(Root)
  231. Set xRoot = XmlDoc.appendChild(XmlDoc.CreateElement("theme"))
  232. xRoot.setAttribute "version",XML_Pack_Ver
  233. Set xRoot = Nothing
  234. '写入文件信息
  235. Dim ThemeAuthor,ThemeSource,ThemePlugin
  236. Dim XMLcdata
  237. Set ThemeID = XmlDoc.SelectSingleNode("//theme").AppendChild(XmlDoc.CreateElement("id"))
  238. ThemeID.Text = SelectedTheme
  239. Set ThemeID=Nothing
  240. Set ThemeName = XmlDoc.SelectSingleNode("//theme").AppendChild(XmlDoc.CreateElement("name"))
  241. ThemeName.Text = Request.Form("ThemeName")
  242. Set ThemeName=Nothing
  243. Set ThemeURL = XmlDoc.SelectSingleNode("//theme").AppendChild(XmlDoc.CreateElement("url"))
  244. ThemeURL.Text = Request.Form("ThemeURL")
  245. Set ThemeURL=Nothing
  246. Set ThemeNote = XmlDoc.SelectSingleNode("//theme").AppendChild(XmlDoc.CreateElement("note"))
  247. ThemeNote.Text = Replace(Replace(Request.Form("ThemeNote"),vbCr,""),vbLf,"")
  248. Set ThemeNote=Nothing
  249. Set ThemeAuthor = XmlDoc.SelectSingleNode("//theme").AppendChild(XmlDoc.CreateElement("author"))
  250. Set ThemeAuthor_Name = ThemeAuthor.AppendChild(XmlDoc.CreateElement("name"))
  251. ThemeAuthor_Name.Text = Request.Form("ThemeAuthor_Name")
  252. Set ThemeAuthor_Name=Nothing
  253. Set ThemeAuthor_URL = ThemeAuthor.AppendChild(XmlDoc.CreateElement("url"))
  254. ThemeAuthor_URL.Text = Request.Form("ThemeAuthor_URL")
  255. Set ThemeAuthor_URL=Nothing
  256. Set ThemeAuthor_Email = ThemeAuthor.AppendChild(XmlDoc.CreateElement("email"))
  257. ThemeAuthor_Email.Text = Request.Form("ThemeAuthor_Email")
  258. Set ThemeAuthor_Email=Nothing
  259. Set ThemeAuthor=Nothing
  260. Set ThemeSource = XmlDoc.SelectSingleNode("//theme").AppendChild(XmlDoc.CreateElement("source"))
  261. Set ThemeSource_Name = ThemeSource.AppendChild(XmlDoc.CreateElement("name"))
  262. ThemeSource_Name.Text = Request.Form("ThemeSource_Name")
  263. Set ThemeSource_Name=Nothing
  264. Set ThemeSource_URL = ThemeSource.AppendChild(XmlDoc.CreateElement("url"))
  265. ThemeSource_URL.Text = Request.Form("ThemeSource_URL")
  266. Set ThemeSource_URL=Nothing
  267. Set ThemeSource_Email = ThemeSource.AppendChild(XmlDoc.CreateElement("email"))
  268. ThemeSource_Email.Text = Request.Form("ThemeSource_Email")
  269. Set ThemeSource_Email=Nothing
  270. Set ThemeSource=Nothing
  271. Set ThemePlugin = XmlDoc.SelectSingleNode("//theme").AppendChild(XmlDoc.CreateElement("plugin"))
  272. Set ThemePlugin_Name = ThemePlugin.AppendChild(XmlDoc.CreateElement("name"))
  273. ThemePlugin_Name.Text = Request.Form("ThemePlugin_Name")
  274. Set ThemePlugin_Name=Nothing
  275. Set ThemePlugin_Note = ThemePlugin.AppendChild(XmlDoc.CreateElement("note"))
  276. ThemePlugin_Note.Text = Request.Form("ThemePlugin_Note")
  277. Set ThemePlugin_Note=Nothing
  278. Set ThemePlugin_Type = ThemePlugin.AppendChild(XmlDoc.CreateElement("type"))
  279. ThemePlugin_Type.Text = Request.Form("ThemePlugin_Type")
  280. Set ThemePlugin_Type=Nothing
  281. Set ThemePlugin_Path = ThemePlugin.AppendChild(XmlDoc.CreateElement("path"))
  282. ThemePlugin_Path.Text = Request.Form("ThemePlugin_Path")
  283. Set ThemePlugin_Path=Nothing
  284. Dim CThemePlugin_Include
  285. Set ThemePlugin_Include = ThemePlugin.AppendChild(XmlDoc.CreateElement("include"))
  286. 'Set XMLcdata = XmlDoc.createNode("cdatasection", "","")
  287. ' XMLcdata.NodeValue = Request.Form("ThemePlugin_Include")
  288. 'Set CThemePlugin_Include = ThemePlugin_Include.AppendChild(XMLcdata)
  289. 'Set CThemePlugin_Include = Nothing
  290. 'Set XMLcdata = Nothing
  291. ThemePlugin_Include.Text = Request.Form("ThemePlugin_Include")
  292. Set ThemePlugin_Include=Nothing
  293. Set ThemePlugin_Level = ThemePlugin.AppendChild(XmlDoc.CreateElement("level"))
  294. ThemePlugin_Level.Text = Request.Form("ThemePlugin_Level")
  295. Set ThemePlugin_Level=Nothing
  296. Set ThemePlugin=Nothing
  297. Set ThemeAdapted = XmlDoc.SelectSingleNode("//theme").AppendChild(XmlDoc.CreateElement("adapted"))
  298. ThemeAdapted.Text = Request.Form("ThemeAdapted")
  299. Set ThemeAdapted=Nothing
  300. Set ThemeVersion = XmlDoc.SelectSingleNode("//theme").AppendChild(XmlDoc.CreateElement("version"))
  301. ThemeVersion.Text = Request.Form("ThemeVersion")
  302. Set ThemeVersion=Nothing
  303. Set ThemePubDate = XmlDoc.SelectSingleNode("//theme").AppendChild(XmlDoc.CreateElement("pubdate"))
  304. ThemePubDate.Text = Request.Form("ThemePubDate")
  305. Set ThemePubDate=Nothing
  306. Set ThemeModified = XmlDoc.SelectSingleNode("//theme").AppendChild(XmlDoc.CreateElement("modified"))
  307. ThemeModified.Text = Request.Form("ThemeModified")
  308. Set ThemeModified=Nothing
  309. Dim CThemeDescription
  310. Set ThemeDescription = XmlDoc.SelectSingleNode("//theme").AppendChild(XmlDoc.CreateElement("description"))
  311. Set XMLcdata = XmlDoc.createNode("cdatasection", "","")
  312. XMLcdata.NodeValue = Request.Form("ThemeDescription")
  313. Set CThemeDescription = ThemeDescription.AppendChild(XMLcdata)
  314. Set CThemeDescription = Nothing
  315. Set XMLcdata = Nothing
  316. Set ThemeDescription=Nothing
  317. XmlDoc.Save(FilePath)
  318. Set Root = Nothing
  319. Set XmlDoc = Nothing
  320. If Err.Number<>0 Then Pack_Error=Pack_Error+1
  321. Err.Clear
  322. '程序结束时间
  323. TS_endtime=timer()
  324. Dim TS_PageTime
  325. TS_PageTime=FormatNumber((TS_endtime-TS_startime),3)
  326. If left(TS_PageTime,1)="." Then TS_PageTime="0" & TS_PageTime
  327. Response.Write("<p>页面执行时间:" & TS_PageTime & "秒</p>")
  328. End Sub
  329. Call System_Terminate()
  330. If Err.Number<>0 Then
  331. Call ShowError(0)
  332. End If
  333. %>