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

中间件编程

开发平台:

HTML/CSS

  1. <%
  2. '///////////////////////////////////////////////////////////////////////////////
  3. '//              Z-Blog
  4. '// 作    者:    朱煊(zx.asd)2008-5-30
  5. '// 版权所有:    RainbowSoft Studio
  6. '// 技术支持:    rainbowsoft@163.com
  7. '// 程序名称:    
  8. '// 程序版本:    
  9. '// 单元名称:    c_system_manage.asp
  10. '// 开始时间:    2005.02.11
  11. '// 最后修改:    
  12. '// 备    注:    
  13. '///////////////////////////////////////////////////////////////////////////////
  14. '*********************************************************
  15. ' 目的:    
  16. '*********************************************************
  17. Function ExportPageBar(PageNow,PageAll,PageLength,Url)
  18. If PageAll=0 Then
  19. Exit Function
  20. End if
  21. Dim s
  22. Dim i
  23. 'Dim PageNow
  24. 'Dim PageAll
  25. 'Dim PageLength
  26. Dim PageFrist
  27. Dim PageLast
  28. Dim PagePrevious
  29. Dim PageNext
  30. Dim PageBegin
  31. Dim PageEnd
  32. PageFrist = 1
  33. PageLast = PageAll
  34. PageBegin = PageNow
  35. PageEnd = PageBegin + PageLength - 1
  36. If PageEnd > PageAll Then
  37. PageEnd = PageAll
  38. PageBegin = PageAll - PageLength + 1
  39. If PageBegin < 1 Then
  40. PageBegin = 1
  41. End If
  42. End If
  43. s=s &"<a href='"&Url & PageFrist &"'>["& "&lt;&lt;" &"]</a> "
  44. For i=PageBegin To PageEnd
  45. If i=PageNow Then
  46. s=s &"["& Replace(ZC_MSG036,"%s",i) &"] "
  47. Else
  48. s=s &"<a href='"&Url & i  &"'>["& Replace(ZC_MSG036,"%s",i) &"]</a> "
  49. End If
  50. Next
  51. s=s &"<a href='"&Url & PageLast  &"'>["& "&gt;&gt;" &"]</a> "
  52. ExportPageBar=s
  53. End Function
  54. '*********************************************************
  55. ' 目的:    Manager Articles
  56. '*********************************************************
  57. Function ExportArticleList(intPage,intCate,intLevel,intTitle)
  58. Call Add_Response_Plugin("Response_Plugin_ArticleMng_SubMenu",MakeSubMenu(ZC_MSG168 & "(" & ZC_MSG100 & ")","../cmd.asp?act=ArticleEdt&type=" & ZC_BLOG_WEBEDIT,"m-left",False))
  59. Call Add_Response_Plugin("Response_Plugin_ArticleMng_SubMenu",MakeSubMenu(ZC_MSG168 & "(" & ZC_MSG101 & ")","../cmd.asp?act=ArticleEdt","m-left",False))
  60. Dim i
  61. Dim objRS
  62. Dim strSQL
  63. Dim strPage
  64. Dim intPageAll
  65. Call CheckParameter(intPage,"int",1)
  66. Call CheckParameter(intCate,"int",-1)
  67. Call CheckParameter(intLevel,"int",-1)
  68. Call CheckParameter(intTitle,"sql",-1)
  69. intTitle=vbsunescape(intTitle)
  70. intTitle=FilterSQL(intTitle)
  71. Response.Write "<div class=""Header"">" & ZC_MSG067 & "</div>"
  72. Response.Write "<div class=""SubMenu"">" & Response_Plugin_ArticleMng_SubMenu & "</div>"
  73. Response.Write "<div id=""divMain2"">"
  74. Call GetBlogHint()
  75. Response.Write "<form id=""edit"" method=""post"" enctype=""application/x-www-form-urlencoded"" action=""../admin/admin.asp?act=ArticleMng"">"
  76. Response.Write "<p>"&ZC_MSG158&":</p><p>"
  77. Response.Write ZC_MSG012&" <select class=""edit"" size=""1"" id=""cate"" name=""cate"" style=""width:100px;"" ><option value=""-1"">"&ZC_MSG157&"</option> "
  78. Dim Category
  79. For Each Category in Categorys
  80. If IsObject(Category) Then
  81. Response.Write "<option value="""&Category.ID&""" "
  82. Response.Write ">"&TransferHTML(Category.Name,"[html-format]")&"</option>"
  83. End If
  84. Next
  85. Response.Write "</select> "
  86. Response.Write ZC_MSG061&" <select class=""edit"" size=""1"" id=""level"" name=""level"" style=""width:80px;"" ><option value=""-1"">"&ZC_MSG157&"</option> "
  87. For i=LBound(ZVA_Article_Level_Name)+1 to Ubound(ZVA_Article_Level_Name)
  88. Response.Write "<option value="""&i&""" "
  89. Response.Write ">"&ZVA_Article_Level_Name(i)&"</option>"
  90. Next
  91. Response.Write "</select>"
  92. Response.Write " "&ZC_MSG224&" <input id=""title"" name=""title"" style=""width:150px;"" type=""text"" value="""" /> "
  93. Response.Write "<input type=""submit"" class=""button"" value="""&ZC_MSG087&""">"
  94. Response.Write "</p></form>"
  95. Set objRS=Server.CreateObject("ADODB.Recordset")
  96. objRS.CursorType = adOpenKeyset
  97. objRS.LockType = adLockReadOnly
  98. objRS.ActiveConnection=objConn
  99. objRS.Source=""
  100. strSQL="WHERE ([log_Level]>0) AND (true=true) "
  101. If CheckRights("Root")=False Then strSQL= strSQL & "AND [log_AuthorID] = " & BlogUser.ID
  102. If intCate<>-1 Then
  103. strSQL= strSQL & " AND [log_CateID] = " & intCate
  104. End If
  105. If intLevel<>-1 Then
  106. strSQL= strSQL & " AND [log_Level] = " & intLevel
  107. End If
  108. If intTitle<>"-1" Then
  109. strSQL = strSQL & "AND ( (InStr(1,LCase([log_Title]),LCase('" & intTitle &"'),0)<>0) OR (InStr(1,LCase([log_Intro]),LCase('" & intTitle &"'),0)<>0) OR (InStr(1,LCase([log_Content]),LCase('" & intTitle &"'),0)<>0) )"
  110. End If
  111. Response.Write "<table border=""1"" width=""100%"" cellspacing=""1"" cellpadding=""1"">"
  112. Response.Write "<tr><td>"& ZC_MSG076 &"</td><td>"& ZC_MSG012 &"</td><td>"& ZC_MSG003 &"</td><td>"& ZC_MSG075 &"</td><td>"& ZC_MSG060 &"</td><td></td><td></td><td></td></tr>"
  113. objRS.Open("SELECT * FROM [blog_Article] "& strSQL &" ORDER BY [log_PostTime] DESC")
  114. objRS.PageSize=ZC_MANAGE_COUNT
  115. If objRS.PageCount>0 Then objRS.AbsolutePage = intPage
  116. intPageAll=objRS.PageCount
  117. If (Not objRS.bof) And (Not objRS.eof) Then
  118. For i=1 to objRS.PageSize
  119. Response.Write "<tr>"
  120. Response.Write "<td>" & objRS("log_ID") & "</td>"
  121. Dim Cate
  122. For Each Cate in Categorys
  123. If IsObject(Cate) Then
  124. If Cate.ID=objRS("log_CateID") Then
  125. Response.Write "<td>" & Left(Cate.Name,6) & "</td>"
  126. End If
  127. End If
  128. Next
  129. Dim User
  130. For Each User in Users
  131. If IsObject(User) Then
  132. If User.ID=objRS("log_AuthorID") Then
  133. Response.Write "<td>" & User.Name & "</td>"
  134. End If
  135. End If
  136. Next
  137. 'Response.Write "<td>" & ZVA_Article_Level_Name(objRS("log_Level")) & "</td>"
  138. Response.Write "<td>" & FormatDateTime(objRS("log_PostTime"),vbShortDate) & "</td>"
  139. If Len(objRS("log_Title"))>14 Then
  140. Response.Write "<td><a href=""../view.asp?id=" & objRS("log_ID") & """ title="""& Replace(objRS("log_Title"),"""","") &""" target=""_blank"">" & Left(objRS("log_Title"),14) & "..." & "</a></td>"
  141. Else
  142. Response.Write "<td><a href=""../view.asp?id=" & objRS("log_ID") & """ title="""& Replace(objRS("log_Title"),"""","") &""" target=""_blank"">" & objRS("log_Title") & "</a></td>"
  143. End If
  144. Response.Write "<td align=""center""><a href=""../cmd.asp?act=ArticleEdt&type="& ZC_BLOG_WEBEDIT &"&id=" & objRS("log_ID") & """>[" & ZC_MSG100 & "]</a></td>"
  145. Response.Write "<td align=""center""><a href=""../cmd.asp?act=ArticleEdt&id=" & objRS("log_ID") & """>[" & ZC_MSG101 & "]</a></td>"
  146. Response.Write "<td align=""center""><a onclick='return window.confirm("""& ZC_MSG058 &""");' href=""../cmd.asp?act=ArticleDel&id=" & objRS("log_ID") & """>[" & ZC_MSG063 & "]</a></td>"
  147. Response.Write "</tr>"
  148. objRS.MoveNext
  149. If objRS.eof Then Exit For
  150. Next
  151. End If
  152. Response.Write "</table>"
  153. 'For i=1 to objRS.PageCount
  154. ' strPage=strPage &"<a href='../admin/admin.asp?act=ArticleMng&amp;page="& i &"&cate="&ReQuest("cate")&"&level="&ReQuest("level")&"&title="&Escape(ReQuest("title"))&"'>["& Replace(ZC_MSG036,"%s",i) &"]</a> "
  155. 'Next
  156. strPage=ExportPageBar(intPage,intPageAll,ZC_PAGEBAR_COUNT,"../admin/admin.asp?act=ArticleMng&amp;cate="&ReQuest("cate")&"&amp;level="&ReQuest("level")&"&amp;title="&Escape(ReQuest("title")) & "&amp;page=")
  157. Response.Write "<hr/>" & ZC_MSG042 & ": " & strPage
  158. Response.Write "</div>"
  159. objRS.Close
  160. Set objRS=Nothing
  161. ExportArticleList=True
  162. End Function
  163. '*********************************************************
  164. '*********************************************************
  165. ' 目的:    Manager Categorys
  166. '*********************************************************
  167. Function ExportCategoryList(intPage)
  168. Dim i
  169. Dim objRS
  170. Dim strPage
  171. Dim intPageAll
  172. Response.Write "<div class=""Header"">" & ZC_MSG066 & "</div>"
  173. Response.Write "<div class=""SubMenu"">" & Response_Plugin_CategoryMng_SubMenu & "</div>"
  174. Response.Write "<div id=""divMain2"">"
  175. Call GetBlogHint()
  176. Response.Write "<form id=""edit"" method=""post"" action="""">"
  177. Response.Write "<p>"& ZC_MSG122 &": </p>"
  178. Response.Write "<p><a href=""../cmd.asp?act=CategoryEdt"">["& ZC_MSG077 &"]</a></p>"
  179. Response.Write "</form>"
  180. Call CheckParameter(intPage,"int",1)
  181. Set objRS=Server.CreateObject("ADODB.Recordset")
  182. objRS.CursorType = adOpenKeyset
  183. objRS.LockType = adLockReadOnly
  184. objRS.ActiveConnection=objConn
  185. objRS.Source=""
  186. objRS.Open("SELECT * FROM [blog_Category] ORDER BY [cate_Order] ASC,[cate_ID] ASC")
  187. objRS.PageSize=ZC_MANAGE_COUNT
  188. If objRS.PageCount>0 Then objRS.AbsolutePage = intPage
  189. intPageAll=objRS.PageCount
  190. Response.Write "<table border=""1"" width=""100%"" cellspacing=""1"" cellpadding=""1"">"
  191. Response.Write "<tr><td>"& ZC_MSG076 &"</td><td>"& ZC_MSG079 &"</td><td>"& ZC_MSG001 &"</td><td>"& ZC_MSG147 &"</td><td></td><td></td></tr>"
  192. If (Not objRS.bof) And (Not objRS.eof) Then
  193. For i=1 to objRS.PageSize
  194. Response.Write "<tr>"
  195. Response.Write "<td>" & objRS("cate_ID") & "</td>"
  196. Response.Write "<td>" & objRS("cate_Order") & "</td>"
  197. Response.Write "<td><a href=""../catalog.asp?cate="& objRS("cate_ID") &"""  target=""_blank"">" & objRS("cate_Name") & "</a></td>"
  198. Response.Write "<td>" & objRS("cate_Intro") & "</td>"
  199. Response.Write "<td align=""center""><a href=""../cmd.asp?act=CategoryEdt&id="& objRS("cate_ID") &""">["& ZC_MSG078 &"]</a></td>"
  200. Response.Write "<td align=""center""><a onclick='return window.confirm("""& ZC_MSG058 &""");' href=""../cmd.asp?act=CategoryDel&amp;id="& objRS("cate_ID") &""">["& ZC_MSG063 &"]</a></td>"
  201. Response.Write "</tr>"
  202. objRS.MoveNext
  203. If objRS.eof Then Exit For
  204. Next
  205. End If
  206. Response.Write "</table>"
  207. 'For i=1 to objRS.PageCount
  208. ' strPage=strPage &"<a href='admin.asp?act=CategoryMng&amp;page="& i &"'>["& Replace(ZC_MSG036,"%s",i) &"]</a> "
  209. 'Next
  210. strPage=ExportPageBar(intPage,intPageAll,ZC_PAGEBAR_COUNT,"admin.asp?act=CategoryMng&amp;page=")
  211. Response.Write "<hr/>" & ZC_MSG042 & ": " & strPage
  212. Response.Write "</div>"
  213. objRS.Close
  214. Set objRS=Nothing
  215. ExportCategoryList=True
  216. End Function
  217. '*********************************************************
  218. '*********************************************************
  219. ' 目的:    Manager Comments
  220. '*********************************************************
  221. Function ExportCommentList(intPage,intContent)
  222. Dim i
  223. Dim objRS
  224. Dim strSQL
  225. Dim strPage
  226. Dim intPageAll
  227. Call CheckParameter(intPage,"int",1)
  228. intContent=FilterSQL(intContent)
  229. Set objRS=Server.CreateObject("ADODB.Recordset")
  230. objRS.CursorType = adOpenKeyset
  231. objRS.LockType = adLockReadOnly
  232. objRS.ActiveConnection=objConn
  233. objRS.Source=""
  234. If CheckRights("GuestBookMng")=True Then 
  235. strSQL=strSQL & " WHERE ( ([log_ID]>0) OR ([log_ID] = 0 ) ) "
  236. Else
  237. strSQL=strSQL&" WHERE  ([log_ID]>0) "
  238. End If
  239. If CheckRights("Root")=False Then strSQL=strSQL & "AND( ([comm_AuthorID] = " & BlogUser.ID & " ) OR ((SELECT [log_AuthorID] FROM [blog_Article] WHERE [blog_Article].[log_ID]=[blog_Comment].[log_ID])=" & BlogUser.ID & " )) "
  240. If Trim(intContent)<>"" Then strSQL=strSQL & " AND ( ([comm_Author] LIKE '%" & intContent & "%') OR ([comm_Content] LIKE '%" & intContent & "%') OR ([comm_HomePage] LIKE '%" & intContent & "%') ) "
  241. Response.Write "<div class=""Header"">" & ZC_MSG068 & "</div>"
  242. Response.Write "<div class=""SubMenu"">" & Response_Plugin_CommentMng_SubMenu & "</div>"
  243. Response.Write "<div id=""divMain2"">"
  244. Call GetBlogHint()
  245. Response.Write "<form id=""edit"" method=""post"" enctype=""application/x-www-form-urlencoded"" action=""../admin/admin.asp?act=CommentMng"">"
  246. Response.Write "<p>"&ZC_MSG287&":</p><p>"
  247. Response.Write " "&ZC_MSG224&" <input id=""intContent"" name=""intContent"" style=""width:150px;"" type=""text"" value="""" /> "
  248. Response.Write "<input type=""submit"" class=""button"" value="""&ZC_MSG087&""">"
  249. Response.Write "</p></form>"
  250. Response.Write "<table border=""1"" width=""100%"" cellspacing=""1"" cellpadding=""1"">"
  251. Response.Write "<tr><td width='5%'>"& ZC_MSG076 &"</td><td width='14%'>"& ZC_MSG001 &"</td><td>"& ZC_MSG055 &"</td><td width='12%'>"& ZC_MSG080 &"</td><td width='15%'>"& ZC_MSG075 &"</td><td width='6%'></td><td width='6%'></td><td width='5%'  align='center'><a href='' onclick='BatchSelectAll();return false'>"& ZC_MSG229 &"</a></td></tr>"'
  252. objRS.Open("SELECT * FROM [blog_Comment] "& strSQL &" ORDER BY [comm_ID] DESC")
  253. objRS.PageSize=ZC_MANAGE_COUNT
  254. If objRS.PageCount>0 Then objRS.AbsolutePage = intPage
  255. intPageAll=objRS.PageCount
  256. If (Not objRS.bof) And (Not objRS.eof) Then
  257. For i=1 to objRS.PageSize
  258. Response.Write "<tr>"
  259. Response.Write "<td>" & objRS("comm_ID") & "</td>"
  260. If Trim(objRS("comm_Email"))="" Then
  261. Response.Write "<td>"& objRS("comm_Author") & "</td>"
  262. Else
  263. Response.Write "<td><a href=""mailto:"& objRS("comm_Email") &""">" & objRS("comm_Author") & "</a></td>"
  264. End If
  265. 'If objRS("log_ID")=0 Then
  266. ' Response.Write "<td><a href=""../guestbook.asp#cmt" & objRS("comm_ID") & """ target=""_blank"">" & Left(objRS("comm_Content"),20) & "...</a></td>"
  267. 'Else
  268. ' Response.Write "<td><a href=""../view.asp?id=" & objRS("log_ID") & "#cmt" & objRS("comm_ID") & """ target=""_blank"" title="""&TransferHTML(TransferHTML(UBBCode(objRS("comm_Content"),"[face][link][autolink][font][code][image][typeset][media][flash][key][upload]"),"[html-japan][upload]"),"[nohtml]")&""">" & Left(objRS("comm_Content"),20) & "...</a></td>"
  269. 'End If
  270. Response.Write "<td><a id=""mylink"&objRS("comm_ID")&""" href=""$div"&objRS("comm_ID")&"tip?width=320"" class=""betterTip"" title=""正文"">" & Left(objRS("comm_Content"),20) & "...</a><div id=""div"&objRS("comm_ID")&"tip"" style=""display:none;"">"& objRS("comm_Content") &"</div></td>"
  271. Response.Write "<td>" & objRS("comm_IP") & "</td>"
  272. Response.Write "<td>" & objRS("comm_PostTime") & "</td>"
  273. Response.Write "<td align=""center""><a href=""../cmd.asp?act=CommentEdt&id=" & objRS("comm_ID") & "&log_id="& objRS("log_ID") &""">["& ZC_MSG078 &"]</a></td>"
  274. Response.Write "<td align=""center""><a href=""../cmd.asp?act=CommentDel&id=" & objRS("comm_ID") & "&log_id="& objRS("log_ID") &""" onclick='return window.confirm("""& ZC_MSG058 &""");'>["& ZC_MSG063 &"]</a></td>"
  275. Response.Write "<td align=""center"" ><input type=""checkbox"" name=""edtDel"" id=""edtDel"" value="""&objRS("comm_ID")&"""/></td>"
  276. Response.Write "</tr>"
  277. objRS.MoveNext
  278. If objRS.eof Then Exit For
  279. Next
  280. End If
  281. Response.Write "</table>"
  282. 'For i=1 to objRS.PageCount
  283. ' strPage=strPage &"<a href='admin.asp?act=CommentMng&amp;page="& i &"'>["& Replace(ZC_MSG036,"%s",i) &"]</a> "
  284. 'Next
  285. strPage=ExportPageBar(intPage,intPageAll,ZC_PAGEBAR_COUNT,"admin.asp?act=CommentMng&amp;page=")
  286. Response.Write "<br/><form id=""frmBatch"" method=""post"" action=""../cmd.asp?act=CommentDelBatch""><input type=""hidden"" id=""edtBatch"" name=""edtBatch"" value=""""/><input class=""button"" type=""submit"" onclick='BatchDeleteAll(""edtBatch"");if(document.getElementById(""edtBatch"").value){return window.confirm("""& ZC_MSG058 &""");}else{return false}' value="""&ZC_MSG228&""" id=""btnPost""/><form>" & vbCrlf
  287. Response.Write "<hr/>" & ZC_MSG042 & ": " & strPage
  288. Response.Write "</div>"
  289. objRS.Close
  290. Set objRS=Nothing
  291. ExportCommentList=True
  292. End Function
  293. '*********************************************************
  294. '*********************************************************
  295. ' 目的:    Manager TrackBacks
  296. '*********************************************************
  297. Function ExportTrackBackList(intPage)
  298. Dim i
  299. Dim objRS
  300. Dim strSQL
  301. Dim strPage
  302. Dim intPageAll
  303. Call CheckParameter(intPage,"int",1)
  304. Set objRS=Server.CreateObject("ADODB.Recordset")
  305. objRS.CursorType = adOpenKeyset
  306. objRS.LockType = adLockReadOnly
  307. objRS.ActiveConnection=objConn
  308. objRS.Source=""
  309. strSQL="WHERE ([log_ID]>0) "
  310. If CheckRights("Root")=False Then strSQL=strSQL & "AND( (SELECT [log_AuthorID] FROM [blog_Article] WHERE [blog_Article].[log_ID] =[blog_TrackBack].[log_ID] ) =" & BlogUser.ID & ")"
  311. Response.Write "<div class=""Header"">" & ZC_MSG069 & "</div>"
  312. Response.Write "<div class=""SubMenu"">" & Response_Plugin_TrackBackMng_SubMenu & "</div>"
  313. Response.Write "<div id=""divMain2"">"
  314. Call GetBlogHint()
  315. Response.Write "<table border=""1"" width=""100%"" cellspacing=""1"" cellpadding=""1"">"
  316. Response.Write "<tr><td>"& ZC_MSG048 & ZC_MSG076 &"</td><td>"& ZC_MSG014 &"</td><td>"& ZC_MSG060 &"</td><td>"& ZC_MSG055 &"</td><td></td><td width='5%'  align='center'><a href='' onclick='BatchSelectAll();return false'>"& ZC_MSG229 &"</a></td></tr>"
  317. objRS.Open("SELECT * FROM [blog_TrackBack] "& strSQL &" ORDER BY [tb_ID] DESC")
  318. objRS.PageSize=ZC_MANAGE_COUNT
  319. If objRS.PageCount>0 Then objRS.AbsolutePage = intPage
  320. intPageAll=objRS.PageCount
  321. If (Not objRS.bof) And (Not objRS.eof) Then
  322. For i=1 to objRS.PageSize
  323. Response.Write "<tr>"
  324. Response.Write "<td>" & objRS("log_ID") & "</td>"
  325. Response.Write "<td><a target=""_blank"" href="""&objRS("tb_Url")&""">" & Left(objRS("tb_Blog"),14) & "</a></td>"
  326. Response.Write "<td><a href=""../view.asp?id=" & objRS("log_ID") & "#tb" & objRS("tb_ID") & """ target=""_blank"">" & Left(objRS("tb_Title"),12) & "</a></td>"
  327. Response.Write "<td><a id=""mylink"&objRS("tb_ID")&""" href=""$div"&objRS("tb_ID")&"tip?width=320"" class=""betterTip"" title=""正文"">" & Left(objRS("tb_Excerpt"),18) & "...</a><div id=""div"&objRS("tb_ID")&"tip"" style=""display:none;"">"& objRS("tb_Excerpt") &"</div></td>"
  328. Response.Write "<td align=""center""><a href=""../cmd.asp?act=TrackBackDel&id=" & objRS("tb_ID") & "&log_id="& objRS("log_ID") &""" onclick='return window.confirm(""" & ZC_MSG058 & """);'>["& ZC_MSG063 &"]</a></td>"
  329. Response.Write "<td align=""center"" ><input type=""checkbox"" name=""edtDel"" id=""edtDel"" value="""&objRS("tb_ID")&"""/></td>"
  330. Response.Write "</tr>"
  331. objRS.MoveNext
  332. If objRS.eof Then Exit For
  333. Next
  334. End If
  335. Response.Write "</table>"
  336. 'For i=1 to objRS.PageCount
  337. ' strPage=strPage &"<a href='admin.asp?act=TrackBackMng&amp;page="& i &"'>["& Replace(ZC_MSG036,"%s",i) &"]</a> "
  338. 'Next
  339. strPage=ExportPageBar(intPage,intPageAll,ZC_PAGEBAR_COUNT,"admin.asp?act=TrackBackMng&amp;page=")
  340. Response.Write "<br/><form id=""frmBatch"" method=""post"" action=""../cmd.asp?act=TrackBackDelBatch""><input type=""hidden"" id=""edtBatch"" name=""edtBatch"" value=""""/><input class=""button"" type=""submit"" onclick='BatchDeleteAll(""edtBatch"");if(document.getElementById(""edtBatch"").value){return window.confirm("""& ZC_MSG058 &""");}else{return false}' value="""&ZC_MSG228&""" id=""btnPost""/><form>" & vbCrlf
  341. Response.Write "<hr/>" & ZC_MSG042 & ": " & strPage
  342. Response.Write "</div>"
  343. objRS.Close
  344. Set objRS=Nothing
  345. ExportTrackBackList=True
  346. End Function
  347. '*********************************************************
  348. '*********************************************************
  349. ' 目的:    Manager Users
  350. '*********************************************************
  351. Function ExportUserList(intPage)
  352. Dim i
  353. Dim objRS
  354. Dim strSQL
  355. Dim strPage
  356. Dim intPageAll
  357. Call CheckParameter(intPage,"int",1)
  358. Response.Write "<div class=""Header"">" & ZC_MSG070 & "</div>"
  359. Response.Write "<div class=""SubMenu"">" & Response_Plugin_UserMng_SubMenu & "</div>"
  360. Response.Write "<div id=""divMain2"">"
  361. Call GetBlogHint()
  362. If CheckRights("UserCrt")=True Then
  363. Response.Write "<form id=""edit"" method=""post"" action="""">"
  364. Response.Write "<p>"& ZC_MSG123 &": </p>"
  365. Response.Write "<p><a href=""edit_user.asp"">["& ZC_MSG127 &"]</a></p>"
  366. Response.Write "</form>"
  367. End If
  368. Set objRS=Server.CreateObject("ADODB.Recordset")
  369. objRS.CursorType = adOpenKeyset
  370. objRS.LockType = adLockReadOnly
  371. objRS.ActiveConnection=objConn
  372. objRS.Source=""
  373. If CheckRights("Root")=False Then strSQL="WHERE [mem_ID] = " & BlogUser.ID
  374. objRS.Open("SELECT * FROM [blog_Member] " & strSQL & " ORDER BY [mem_ID] ASC")
  375. objRS.PageSize=ZC_MANAGE_COUNT
  376. If objRS.PageCount>0 Then objRS.AbsolutePage = intPage
  377. intPageAll=objRS.PageCount
  378. If (Not objRS.bof) And (Not objRS.eof) Then
  379. Response.Write "<table border=""1"" width=""100%"" cellspacing=""1"" cellpadding=""1"">"
  380. Response.Write "<tr><td>"& ZC_MSG076 &"</td><td>"&"</td><td>"& ZC_MSG001 &"</td><td>"& ZC_MSG082 &"</td><td>"& ZC_MSG124 &"</td><td></td><td></td></tr>"
  381. For i=1 to objRS.PageSize
  382. Response.Write "<tr>"
  383. Response.Write "<td>" & objRS("mem_ID") & "</td>"
  384. Response.Write "<td>" & ZVA_User_Level_Name(objRS("mem_Level")) & "</td>"
  385. Response.Write "<td><a href=""../catalog.asp?auth="& objRS("mem_ID") &"""  target=""_blank"">" & objRS("mem_Name") & "</a></td>"
  386. Response.Write "<td>" & objRS("mem_PostLogs") & "</td>"
  387. Response.Write "<td>" & objRS("mem_PostComms") & "</td>"
  388. Response.Write "<td align=""center""><a href=""edit_user.asp?id="& objRS("mem_ID") &""">["& ZC_MSG078 &"]</a></td>"
  389. Response.Write "<td align=""center""><a onclick='return window.confirm("""& ZC_MSG058 &""");' href=""../cmd.asp?act=UserDel&amp;id="& objRS("mem_ID") &""">["& ZC_MSG063 &"]</a></td>"
  390. Response.Write "</tr>"
  391. objRS.MoveNext
  392. If objRS.eof Then Exit For
  393. Next
  394. Response.Write "</table>"
  395. End If
  396. 'For i=1 to objRS.PageCount
  397. ' strPage=strPage &"<a href='admin.asp?act=UserMng&amp;page="& i &"'>["& Replace(ZC_MSG036,"%s",i) &"]</a> "
  398. 'Next
  399. strPage=ExportPageBar(intPage,intPageAll,ZC_PAGEBAR_COUNT,"admin.asp?act=UserMng&amp;page=")
  400. Response.Write "<hr/>" & ZC_MSG042 & ": " & strPage
  401. Response.Write "</div>"
  402. objRS.Close
  403. Set objRS=Nothing
  404. ExportUserList=True
  405. End Function
  406. '*********************************************************
  407. '*********************************************************
  408. ' 目的:    Manager Files
  409. '*********************************************************
  410. Function ExportFileList(intPage)
  411. Dim i
  412. Dim objRS
  413. Dim strSQL
  414. Dim strPage
  415. Dim intPageAll
  416. Call CheckParameter(intPage,"int",1)
  417. Response.Write "<div class=""Header"">" & ZC_MSG071 & "</div>"
  418. Response.Write "<div class=""SubMenu"">" & Response_Plugin_FileMng_SubMenu & "</div>"
  419. Response.Write "<div id=""divMain2"">"
  420. Call GetBlogHint()
  421. Response.Write "<form border=""1"" name=""edit"" id=""edit"" method=""post"" enctype=""multipart/form-data"" action=""../cmd.asp?act=FileUpload"">"
  422. Response.Write "<p>"& ZC_MSG108 &": </p>"
  423. Response.Write "<p><input type=""file"" id=""edtFileLoad"" name=""edtFileLoad"" size=""20"">  <input type=""submit"" class=""button"" value="""& ZC_MSG087 &""" name=""B1"" onclick='document.getElementById(""edit"").action=document.getElementById(""edit"").action+""&filename=""+escape(edtFileLoad.value)' /> <input class=""button"" type=""reset"" value="""& ZC_MSG088 &""" name=""B2"" />"
  424. Response.Write "&nbsp;<input type=""checkbox"" onclick='if(this.checked==true){document.getElementById(""edit"").action=document.getElementById(""edit"").action+""&autoname=1"";}else{document.getElementById(""edit"").action=""../cmd.asp?act=FileUpload"";};SetCookie(""chkAutoFileName"",this.checked,365);' id=""chkAutoName"" id=""chkAutoName""/><label for=""chkAutoName"">"& ZC_MSG131 &"</label></p></form>"
  425. Set objRS=Server.CreateObject("ADODB.Recordset")
  426. objRS.CursorType = adOpenKeyset
  427. objRS.LockType = adLockReadOnly
  428. objRS.ActiveConnection=objConn
  429. objRS.Source=""
  430. If CheckRights("Root")=False Then strSQL="WHERE [ul_AuthorID] = " & BlogUser.ID
  431. Response.Write "<table border='1' width='100%' cellspacing=""1"" cellpadding=""1"">"
  432. Response.Write "<tr><td width='10%'>"& ZC_MSG076 &"</td><td width='10%'>"& ZC_MSG003 &"</td><td width='30%'>"& ZC_MSG001 &"</td><td width='15%'>"& ZC_MSG041 &"</td><td width='15%'>"& ZC_MSG075 &"</td><td width='7%'></td><td width='5%'  align='center'><a href='' onclick='BatchSelectAll();return false'>"& ZC_MSG229 &"</a></td></tr>"
  433. objRS.Open("SELECT * FROM [blog_UpLoad] " & strSQL & " ORDER BY [ul_PostTime] DESC")
  434. objRS.PageSize=ZC_MANAGE_COUNT
  435. If objRS.PageCount>0 Then objRS.AbsolutePage = intPage
  436. intPageAll=objRS.PageCount
  437. If (Not objRS.bof) And (Not objRS.eof) Then
  438. For i=1 to objRS.PageSize
  439. Response.Write "<tr><td>"&objRS("ul_ID")&"</td>"
  440. Dim User:For Each User in Users:If IsObject(User) Then:If User.ID=objRS("ul_AuthorID") Then:Response.Write "<td>" & User.Name & "</td>":End If:End If:Next
  441. If IsNull(objRS("ul_Quote"))=False And objRS("ul_Quote")<>"" Then
  442. If CBool(objRS("ul_Quote"))=True Then
  443. Response.Write "<td><a href='../"& ZC_UPLOAD_DIRECTORY &"/"&Year(objRS("ul_PostTime")) & "/" & Month(objRS("ul_PostTime")) & "/"&objRS("ul_FileName")&"' target='_blank'>"&Year(objRS("ul_PostTime")) & "/" & Month(objRS("ul_PostTime")) & "/" &objRS("ul_FileName")&"</a></td>"
  444. Else
  445. Response.Write "<td><a href='../"& ZC_UPLOAD_DIRECTORY &"/"&objRS("ul_FileName")&"' target='_blank'>"&objRS("ul_FileName")&"</a></td>"
  446. End If
  447. Else
  448. Response.Write "<td><a href='../"& ZC_UPLOAD_DIRECTORY &"/"&objRS("ul_FileName")&"' target='_blank'>"&objRS("ul_FileName")&"</a></td>"
  449. End If
  450. Response.Write "<td>"&objRS("ul_FileSize")&"</td><td>"&objRS("ul_PostTime")&"</td>"
  451. Response.Write "<td align=""center""><a href='../cmd.asp?act=FileDel&amp;id="&Server.URLEncode(objRS("ul_ID"))&"' onclick='return window.confirm("""& ZC_MSG058 &""");'>["& ZC_MSG063 &"]</a></td>"
  452. Response.Write "<td align=""center"" ><input type=""checkbox"" name=""edtDel"" id=""edtDel"" value="""&objRS("ul_ID")&"""/></td>"
  453. Response.Write "</tr>"
  454. objRS.MoveNext
  455. If objRS.eof Then Exit For
  456. Next
  457. End If
  458. Response.Write "</table>"
  459. Response.Write "<br/><form id=""frmBatch"" method=""post"" action=""../cmd.asp?act=FileDelBatch""><input type=""hidden"" id=""edtBatch"" name=""edtBatch"" value=""""/><input class=""button"" type=""submit"" onclick='BatchDeleteAll(""edtBatch"");if(document.getElementById(""edtBatch"").value){return window.confirm("""& ZC_MSG058 &""");}else{return false}' value="""&ZC_MSG228&""" id=""btnPost""/><form>" & vbCrlf
  460. 'For i=1 to objRS.PageCount
  461. ' strPage=strPage &"<a href='admin.asp?act=FileMng&amp;page="& i &"'>["& Replace(ZC_MSG036,"%s",i) &"]</a> "
  462. 'Next
  463. strPage=ExportPageBar(intPage,intPageAll,ZC_PAGEBAR_COUNT,"admin.asp?act=FileMng&amp;page=")
  464. Response.Write "<hr/>" & ZC_MSG042 & ": " & strPage
  465. Response.Write "</div><script type=""text/javascript"">if(GetCookie(""chkAutoFileName"")==""true""){document.getElementById(""chkAutoName"").checked=true};</script>"
  466. objRS.Close
  467. Set objRS=Nothing
  468. ExportFileList=True
  469. End Function
  470. '*********************************************************
  471. '*********************************************************
  472. ' 目的:    Manage Setting
  473. '*********************************************************
  474. Function ExportManageList()
  475. ExportManageList=True
  476. End Function
  477. '*********************************************************
  478. '*********************************************************
  479. ' 目的:    Manager KeyWord
  480. '*********************************************************
  481. Function ExportKeyWordList(intPage)
  482. ExportKeyWordList=True
  483. End Function
  484. '*********************************************************
  485. '*********************************************************
  486. ' 目的:    Manager Tag
  487. '*********************************************************
  488. Function ExportTagList(intPage)
  489. Dim i
  490. Dim objRS
  491. Dim strPage
  492. Dim intPageAll
  493. Response.Write "<div class=""Header"">" & ZC_MSG141 & "</div>"
  494. Response.Write "<div class=""SubMenu"">" & Response_Plugin_TagMng_SubMenu & "</div>"
  495. Response.Write "<div id=""divMain2"">"
  496. Call GetBlogHint()
  497. Response.Write "<form id=""edit"" method=""post"" action="""">"
  498. Response.Write "<p>"& ZC_MSG134 &": </p>"
  499. Response.Write "<p><a href=""../cmd.asp?act=TagEdt"">["& ZC_MSG136 &"]</a></p>"
  500. Response.Write "</form>"
  501. Call CheckParameter(intPage,"int",1)
  502. Set objRS=Server.CreateObject("ADODB.Recordset")
  503. objRS.CursorType = adOpenKeyset
  504. objRS.LockType = adLockReadOnly
  505. objRS.ActiveConnection=objConn
  506. objRS.Source=""
  507. objRS.Open("SELECT * FROM [blog_Tag] ORDER BY [tag_Name] ASC")
  508. objRS.PageSize=ZC_MANAGE_COUNT
  509. If objRS.PageCount>0 Then objRS.AbsolutePage = intPage
  510. intPageAll=objRS.PageCount
  511. Response.Write "<table border=""1"" width=""100%"" cellspacing=""1"" cellpadding=""1"">"
  512. Response.Write "<tr><td width=""5%"">"& ZC_MSG076 &"</td><td width=""25%"">"& ZC_MSG001 &"</td><td width=""40%"">"& ZC_MSG016 &"</td><td width=""15%""></td><td width=""15%""></td></tr>"
  513. If (Not objRS.bof) And (Not objRS.eof) Then
  514. For i=1 to objRS.PageSize
  515. Response.Write "<tr>"
  516. Response.Write "<td>" & objRS("tag_ID") & "</td>"
  517. Response.Write "<td>" & objRS("tag_Name") & "</td>"
  518. If IsNull(objRS("tag_Intro"))=True Then
  519. Response.Write "<td></td>"
  520. Else
  521. Response.Write "<td>" & TransferHTML(objRS("tag_Intro"),"[html-format]") & "</td>"
  522. End If
  523. Response.Write "<td align=""center""><a href=""../cmd.asp?act=TagEdt&id="& objRS("tag_ID") &""">["& ZC_MSG078 &"]</a></td>"
  524. Response.Write "<td align=""center""><a onclick='return window.confirm("""& ZC_MSG058 &""");' href=""../cmd.asp?act=TagDel&amp;id="& objRS("tag_ID") &""">["& ZC_MSG063 &"]</a></td>"
  525. Response.Write "</tr>"
  526. objRS.MoveNext
  527. If objRS.eof Then Exit For
  528. Next
  529. End If
  530. Response.Write "</table>"
  531. 'For i=1 to objRS.PageCount
  532. ' strPage=strPage &"<a href='admin.asp?act=TagMng&amp;page="& i &"'>["& Replace(ZC_MSG036,"%s",i) &"]</a> "
  533. 'Next
  534. strPage=ExportPageBar(intPage,intPageAll,ZC_PAGEBAR_COUNT,"admin.asp?act=TagMng&amp;page=")
  535. Response.Write "<hr/>" & ZC_MSG042 & ": " & strPage
  536. Response.Write "</div>"
  537. objRS.Close
  538. Set objRS=Nothing
  539. ExportTagList=True
  540. End Function
  541. '*********************************************************
  542. '*********************************************************
  543. ' 目的:    Manager Plugin
  544. '*********************************************************
  545. Function ExportPluginList()
  546. On Error Resume Next
  547. Dim aryPL_Enable()
  548. Dim aryPL_Disable()
  549. ReDim aryPL_Enable(0)
  550. ReDim aryPL_Disable(0)
  551. Dim aryPL
  552. aryPL=Split(ZC_USING_PLUGIN_LIST,"|")
  553. Dim i,j,s,t,m,n
  554. If ZC_USING_PLUGIN_LIST<>"" Then
  555. i=UBound(aryPL)
  556. Else
  557. i=0
  558. End If
  559. ReDim aryPL_Enable(i)
  560. If Request.QueryString("installed")<>"" Then
  561. Call InstallPlugin(Request.QueryString("installed"))
  562. End If
  563. Dim fso, f, f1, fc
  564. Set fso = CreateObject("Scripting.FileSystemObject")
  565. Response.Write "<div class=""Header"">" & ZC_MSG107 & "</div>"
  566. Response.Write "<div class=""SubMenu"">" & Response_Plugin_PlugInMng_SubMenu & "</div>"
  567. Response.Write "<div id=""divMain2"">"
  568. Call GetBlogHint()
  569. Response.Write "<table border=""1"" width=""100%"" cellspacing=""1"" cellpadding=""1"">"
  570. Response.Write "<tr><td width=""5%"">"& ZC_MSG079 &"</td><td width=""20%"">"& ZC_MSG001 &"</td><td width=""15%"">"& ZC_MSG128 &"</td><td width=""15%"">"& ZC_MSG150 &"</td><td width=""15%"">"& ZC_MSG151 &"</td><td width=""10%"">"& ZC_MSG309 &"</td><td width=""10%""></td><td width=""10%""></td></tr>"
  571. Dim objXmlFile,strXmlFile
  572. strXmlFile =BlogPath & "/themes/" & ZC_BLOG_THEME & "/" & "theme.xml"
  573. Set objXmlFile=Server.CreateObject("Microsoft.XMLDOM")
  574. objXmlFile.async = False
  575. objXmlFile.ValidateOnParse=False
  576. objXmlFile.load(strXmlFile)
  577. If objXmlFile.readyState=4 Then
  578. If objXmlFile.parseError.errorCode <> 0 Then
  579. Else
  580. If CInt(objXmlFile.documentElement.selectSingleNode("plugin/level").text)>0 Then
  581. If Err.Number=0 Then
  582. Response.Write "<tr>"
  583. Response.Write "<td>"& "0" &"</td>"
  584. Response.Write "<td><a id=""mylink"&Left(md5(objXmlFile.documentElement.selectSingleNode("id").text),6)&""" href=""$div"&Left(md5(objXmlFile.documentElement.selectSingleNode("id").text),6)&"tip?width=300"" class=""betterTip"" title=""$content"">" & "" & objXmlFile.documentElement.selectSingleNode("plugin/name").text & "" & "</a><div id=""div"&Left(md5(objXmlFile.documentElement.selectSingleNode("id").text),6)&"tip"" style=""display:none;"">"&objXmlFile.documentElement.selectSingleNode("plugin/note").text&"</div></td>"
  585. Response.Write "<td>" & "<a target=""_blank"" href=""" & objXmlFile.documentElement.selectSingleNode("author/url").text & """>"& objXmlFile.documentElement.selectSingleNode("author/name").text & "</td>"
  586. Response.Write "<td>" & objXmlFile.documentElement.selectSingleNode("version").text & "</td>"
  587. Response.Write "<td>"& objXmlFile.documentElement.selectSingleNode("modified").text &"</td>"
  588. Response.Write "<td align=center><img title='"&ZC_MSG308&"' alt='"&ZC_MSG308&"' src='../IMAGE/EDIT/0101.gif'/></td>"
  589. Response.Write "<td align=center>"& ZC_MSG311 &"</td>"
  590. Response.Write "<td align=center>"
  591. If BlogUser.Level<=CInt(objXmlFile.documentElement.selectSingleNode("plugin/level").text) Then
  592. If fso.FileExists(BlogPath & "/themes/" & ZC_BLOG_THEME & "/plugin/" & objXmlFile.documentElement.selectSingleNode("plugin/path").text) Then
  593. Response.Write "<a href=""../themes/" & ZC_BLOG_THEME & "/plugin/" & objXmlFile.documentElement.selectSingleNode("plugin/path").text &""">[" & ZC_MSG022 & "]</a>"
  594. End If
  595. End If
  596. Response.Write "</td>"
  597. Response.Write "</tr>"
  598. End If
  599. End If
  600. End If
  601. End If
  602. Set objXmlFile=Nothing
  603. Set f = fso.GetFolder(BlogPath & "/plugin/")
  604. Set fc = f.SubFolders
  605. For Each f1 in fc
  606. s=""
  607. If fso.FileExists(BlogPath & "/plugin/" & f1.name & "/" & "plugin.xml") Then
  608. strXmlFile =BlogPath & "/plugin/" & f1.name & "/" & "plugin.xml"
  609. Set objXmlFile=Server.CreateObject("Microsoft.XMLDOM")
  610. objXmlFile.async = False
  611. objXmlFile.ValidateOnParse=False
  612. objXmlFile.load(strXmlFile)
  613. If objXmlFile.readyState=4 Then
  614. If objXmlFile.parseError.errorCode <> 0 Then
  615. Else
  616. 'If BlogUser.Level<=CInt(objXmlFile.documentElement.selectSingleNode("level").text) Then
  617. If CheckPluginState(objXmlFile.documentElement.selectSingleNode("id").text) Then 
  618. For j=0 To UBound(aryPL)
  619. If UCase(aryPL(j))=UCase(objXmlFile.documentElement.selectSingleNode("id").text) Then
  620. n=j
  621. Exit For
  622. End If
  623. Next
  624. m=n+1
  625. Else
  626. m=""
  627. End If
  628. s=s & "<tr>"
  629. s=s & "<td>"& m &"</td>"
  630. s=s & "<td><a id=""mylink"&Left(md5(objXmlFile.documentElement.selectSingleNode("id").text),6)&""" href=""$div"&objXmlFile.documentElement.selectSingleNode("id").text&"tip?width=300"" class=""betterTip"" title=""$content"">" & "" & objXmlFile.documentElement.selectSingleNode("name").text & "" & "</a><div id=""div"&objXmlFile.documentElement.selectSingleNode("id").text&"tip"" style=""display:none;"">"&objXmlFile.documentElement.selectSingleNode("note").text&"</div></td>"
  631. s=s & "<td>" & "<a target=""_blank"" href=""" & objXmlFile.documentElement.selectSingleNode("author/url").text & """>"& objXmlFile.documentElement.selectSingleNode("author/name").text & "</td>"
  632. s=s & "<td>" & objXmlFile.documentElement.selectSingleNode("version").text & "</td>"
  633. s=s & "<td>"& objXmlFile.documentElement.selectSingleNode("modified").text &"</td>"
  634. If CheckPluginState(objXmlFile.documentElement.selectSingleNode("id").text) Then 
  635. s=s & "<td align=center><img title='"&ZC_MSG308&"' alt='"&ZC_MSG308&"' src='../IMAGE/EDIT/0101.gif'/></td>"
  636. Else
  637. s=s & "<td align=center><img title='"&ZC_MSG307&"' alt='"&ZC_MSG307&"' src='../IMAGE/EDIT/0020.gif'/></td>"
  638. End If
  639. s=s & "<td align=center>"
  640. If CheckPluginState(objXmlFile.documentElement.selectSingleNode("id").text) Then
  641. If CheckRights("PlugInDisable")=True Then
  642. s=s & "<a href=""../cmd.asp?act=PlugInDisable&name="& Server.URLEncode(objXmlFile.documentElement.selectSingleNode("id").text) &""">[" & ZC_MSG307 & "]</a>"
  643. Else
  644. End If
  645. Else
  646. If CheckRights("PlugInActive")=True Then
  647. s=s & "<a href=""../cmd.asp?act=PlugInActive&name="& Server.URLEncode(objXmlFile.documentElement.selectSingleNode("id").text) &""">[" & ZC_MSG308 & "]</a>"
  648. Else
  649. End If
  650. End If
  651. s=s & "</td>"
  652. s=s & "<td align=center>"
  653. If CheckPluginState(objXmlFile.documentElement.selectSingleNode("id").text) Then
  654. If BlogUser.Level<=CInt(objXmlFile.documentElement.selectSingleNode("level").text) Then
  655. If fso.FileExists(BlogPath & "/plugin/" & f1.name & "/" & objXmlFile.documentElement.selectSingleNode("path").text) Then
  656. s=s & "<a href=""../plugin/" & f1.name & "/" & objXmlFile.documentElement.selectSingleNode("path").text &""">[" & ZC_MSG022 & "]</a>"
  657. End If
  658. End If
  659. Else
  660. End If
  661. s=s & "</td>"
  662. s=s & "</tr>"
  663. If CheckPluginState(objXmlFile.documentElement.selectSingleNode("id").text) Then 
  664. 'j=UBound(aryPL_Enable)
  665. 'ReDim Preserve aryPL_Enable(j+1)
  666. aryPL_Enable(n)=s
  667. Else
  668. j=UBound(aryPL_Disable)
  669. ReDim Preserve aryPL_Disable(j+1)
  670. aryPL_Disable(j)=s
  671. End If
  672. End If
  673. End If
  674. Set objXmlFile=Nothing
  675. End If
  676. Next
  677. Response.Write Join(aryPL_Enable)
  678. Response.Write Join(aryPL_Disable)
  679. Response.Write "</div>"
  680. %>
  681. <%
  682. Err.Clear
  683. ExportPluginList=True
  684. End Function
  685. '*********************************************************
  686. '*********************************************************
  687. ' 目的:    
  688. '*********************************************************
  689. Function ExportSiteInfo()
  690. On Error Resume Next
  691. Dim FoundFso
  692. FoundFso = False
  693. FoundFso = IsObjInstalled("Scripting.FileSystemObject")
  694. Dim objRS
  695. Set objRS=Server.CreateObject("ADODB.Recordset")
  696. objRS.CursorType = adOpenKeyset
  697. objRS.LockType = adLockReadOnly
  698. objRS.ActiveConnection=objConn
  699. objRS.Source=""
  700. Dim allArticle,allCommNums,allTrackBackNums,allViewNums,allUserNums,allCateNums,allTagsNums
  701. Dim User,i
  702. For Each User in Users
  703. If IsObject(User) Then
  704. Set objRS=objConn.Execute("SELECT COUNT([log_ID]) FROM [blog_Article] WHERE [log_Level]>1 AND [log_AuthorID]=" & User.ID )
  705. i=objRS(0)
  706. objConn.Execute("UPDATE [blog_Member] SET [mem_PostLogs]="&i&" WHERE [mem_ID] =" & User.ID)
  707. Set objRS=Nothing
  708. Set objRS=objConn.Execute("SELECT COUNT([comm_ID]) FROM [blog_Comment] WHERE [comm_AuthorID]=" & User.ID )
  709. i=objRS(0)
  710. objConn.Execute("UPDATE [blog_Member] SET [mem_PostComms]="&i&" WHERE [mem_ID] =" & User.ID)
  711. Set objRS=Nothing
  712. End If
  713. Next
  714. Set objRS=Server.CreateObject("ADODB.Recordset")
  715. objRS.CursorType = adOpenKeyset
  716. objRS.LockType = adLockReadOnly
  717. objRS.ActiveConnection=objConn
  718. objRS.Source=""
  719. objRS.Open("SELECT COUNT([log_ID])AS allArticle,SUM([log_CommNums]) AS allCommNums,SUM([log_ViewNums]) AS allViewNums,SUM([log_TrackBackNums]) AS allTrackBackNums FROM [blog_Article]")
  720. If (Not objRS.bof) And (Not objRS.eof) Then
  721. allArticle=objRS("allArticle")
  722. allCommNums=objRS("allCommNums")
  723. allTrackBackNums=objRS("allTrackBackNums")
  724. allViewNums=objRS("allViewNums")
  725. End If
  726. objRS.Close
  727. objRS.Open("SELECT COUNT([tag_ID])AS allTagsNums FROM [blog_Tag]")
  728. If (Not objRS.bof) And (Not objRS.eof) Then
  729. allTagsNums=objRS("allTagsNums")
  730. End If
  731. objRS.Close
  732. objRS.Open("SELECT COUNT([mem_ID])AS allUserNums FROM [blog_Member]")
  733. If (Not objRS.bof) And (Not objRS.eof) Then
  734. allUserNums=objRS("allUserNums")
  735. End If
  736. objRS.Close
  737. objRS.Open("SELECT COUNT([cate_ID])AS allCateNums FROM [blog_Category]")
  738. If (Not objRS.bof) And (Not objRS.eof) Then
  739. allCateNums=objRS("allCateNums")
  740. End If
  741. objRS.Close
  742. Call CheckParameter(allArticle,"int",0)
  743. Call CheckParameter(allCommNums,"int",0)
  744. Call CheckParameter(allTrackBackNums,"int",0)
  745. Call CheckParameter(allViewNums,"int",0)
  746. Call CheckParameter(allUserNums,"int",0)
  747. Call CheckParameter(allCateNums,"int",0)
  748. Call CheckParameter(allTagsNums,"int",0)
  749. Response.Write "<div class=""Header"">" & ZC_MSG159 & "</div>"
  750. Response.Write "<div class=""SubMenu"">" & Response_Plugin_SiteInfo_SubMenu & "</div>"
  751. Response.Write "<div id=""divMain2"">"
  752. Call GetBlogHint()
  753. %>
  754. <table border="0" cellspacing="0" cellpadding="0" align="center" width="100%" class="tableBorder">
  755. <tr><th height=25 colspan=4  align="center">&nbsp;<%=ZC_MSG167%></th></tr>
  756. <tr>
  757. <td width="20%"><%=ZC_MSG160%></td>
  758. <td width="30%"><%=BlogUser.Name%> (<%=ZVA_User_Level_Name(BlogUser.Level)%>)</td>
  759. <td width="20%"><%=ZC_MSG150%></td>
  760. <td width="30%"><%=ZC_BLOG_VERSION%></td>
  761. </tr>
  762. <tr>
  763. <td width="20%"><%=ZC_MSG082%></td>
  764. <td width="30%"><%=allArticle%></td>
  765. <td width="20%"><%=ZC_MSG124%></td>
  766. <td width="30%"><%=allCommNums%></td>
  767. </tr>
  768. <tr>
  769. <td width="20%"><%=ZC_MSG125%></td>
  770. <td width="30%"><%=allTrackBackNums%></td>
  771. <td width="20%"><%=ZC_MSG129%></td>
  772. <td width="30%"><%=allViewNums%></td>
  773. </tr>
  774. <tr>
  775. <td width="20%"><%=ZC_MSG163%></td>
  776. <td width="30%"><%=allTagsNums%></td>
  777. <td width="20%"><%=ZC_MSG162%></td>
  778. <td width="30%"><%=allCateNums%></td>
  779. </tr>
  780. <tr>
  781. <td width="20%"><%=ZC_MSG306%>/<%=ZC_MSG083%></td>
  782. <td width="30%"><%=GetNameFormTheme(ZC_BLOG_THEME)%> / <%=ZC_BLOG_CSS%></td>
  783. <td width="20%"><%=ZC_MSG166%></td>
  784. <td width="30%"><%=allUserNums%></td>
  785. </tr>
  786. <tr>
  787. <td width="20%">MetaWeblog API</td>
  788. <td colspan="3" width="80%"><%=ZC_BLOG_HOST%>xml-rpc/index.asp</td>
  789. </tr>
  790. <!--  <tr>
  791. <td colspan="4">
  792. <marquee onmouseover="this.stop()" onmouseout="this.start()"></marquee>
  793. </td>
  794. </tr> -->
  795. </table>
  796. <!-- 
  797. <table border="0" cellspacing="0" cellpadding="0" align=center width="100%" class="tableBorder">
  798. <tr><th height=25 colspan=4>&nbsp;<%=ZC_MSG164%></th></tr>
  799. <tr>
  800. <td width="22%" ><%=ZC_MSG150%></td>
  801. <td width="27%"><%=ZC_BLOG_VERSION%></td>
  802. <td width="27%"></td>
  803. <td width="24%"></td>
  804. </tr>
  805. <tr>
  806. <td width="22%" >FSO </td>
  807. <td width="27%">
  808. <%
  809. If FoundFso Then
  810. Response.Write "<font color=green><b>ok</b></font>"
  811. Else
  812. Response.Write "<font color=red><b>fail</b></font>"
  813. End If
  814. %>
  815. </td>
  816. <td> Adodb.Stream </td>
  817. <td><%
  818. If IsObjInstalled("Adodb.Stream") Then
  819. Response.Write "<font color=green><b>ok</b></font>"
  820. Else
  821. Response.Write "<font color=red><b>fail</b></font>"
  822. End If
  823. %>
  824. </td>
  825. </tr>
  826. <tr>
  827. <td width="22%" >ADODB.Connection</td>
  828. <td width="27%">
  829. <%
  830. If IsObjInstalled("ADODB.Connection") Then
  831. Response.Write "<font color=green><b>ok</b></font>"
  832. Else
  833. Response.Write "<font color=red><b>fail</b></font>"
  834. End If
  835. %></td>
  836. <td> Microsoft.XMLDOM</td>
  837. <td><%
  838. If IsObjInstalled("Microsoft.XMLDOM") Then
  839. Response.Write "<font color=green><b>ok</b></font>"
  840. Else
  841. Response.Write "<font color=red><b>fail</b></font>"
  842. End If
  843. %>
  844. </td>
  845. </tr>
  846. <tr>
  847. <td width="22%" >
  848. MSXML2.ServerXMLHTTP</td>
  849. <td width="27%">
  850. <%
  851. If IsObjInstalled("MSXML2.ServerXMLHTTP") Then
  852. Response.Write "<font color=green><b>ok</b></font>"
  853. Else
  854. Response.Write "<font color=red><b>fail</b></font>"
  855. End If
  856. %>
  857. </td>
  858. <td > Scripting.Dictionary</td>
  859. <td><%
  860. If IsObjInstalled("Scripting.Dictionary") Then
  861. Response.Write "<font color=green><b>ok</b></font>"
  862. Else
  863. Response.Write "<font color=red><b>fail</b></font>"
  864. End If
  865. %>
  866. </td>
  867. </tr>
  868. </table>
  869. -->
  870. <%
  871. If Len(ZC_UPDATE_INFO_URL)>0 Then
  872. %>
  873. <table border="0" cellspacing="0" cellpadding="0" align="center" width="100%" class="tableBorder">
  874. <tr><th height=25 colspan=4 align="center">&nbsp;<%=ZC_MSG164%>&nbsp;<a href="javascript:updateinfo('?reload');">[<%=ZC_MSG289%>]</a></th></tr>
  875. <tr><td height=25 colspan=4 id="tdUpdateInfo">
  876. <script language="JavaScript" type="text/javascript">
  877. function updateinfo(s){
  878. $.post("c_updateinfo.asp"+s,{},
  879. function(data){
  880. $("#tdUpdateInfo").html(data);
  881. }
  882. )
  883. };
  884. $(document).ready(function(){updateinfo("");});
  885. </script>
  886. </td></tr>
  887. </table>
  888. <%
  889. End If
  890. %>
  891. <br />
  892. <%
  893. Response.Write "</div>"
  894. ExportSiteInfo=True
  895. Err.Clear
  896. End Function
  897. '*********************************************************
  898. '*********************************************************
  899. ' 目的:    目录下文件列表
  900. '*********************************************************
  901. Function ExportSiteFileList(path,opath)
  902. On Error Resume Next
  903. Response.Write "<div class=""Header"">" & ZC_MSG210 & "</div>"
  904. Response.Write "<div class=""SubMenu"">" & Response_Plugin_SiteFileMng_SubMenu & "</div>"
  905. Response.Write "<div id=""divMain2"">"
  906. Call GetBlogHint()
  907. Response.Write "<!-- <form id=""edit"" method=""post"" action="""">"
  908. %>
  909. <p><%=ZC_MSG246%>:</p>
  910. <p><a href="admin.asp?act=SiteFileEdt&path=<%=Escape("./INCLUDE/link.asp")%>" target="main">[<%=ZC_MSG031%>]</a>
  911. <a href="admin.asp?act=SiteFileEdt&path=<%=Escape("./INCLUDE/favorite.asp")%>" target="main">[<%=ZC_MSG030%>]</a>
  912. <a href="admin.asp?act=SiteFileEdt&path=<%=Escape("./INCLUDE/misc.asp")%>" target="main">[<%=ZC_MSG039%>]</a>
  913. <a href="admin.asp?act=SiteFileEdt&path=<%=Escape("./INCLUDE/navbar.asp")%>" target="main">[<%=ZC_MSG233%>]</a>
  914. </p>
  915. <%
  916. Response.Write "</form> -->"
  917. dim f,fold,item,fpath,jpath
  918. set f=server.createobject("scripting.filesystemobject")
  919. If opath<>"" Then path=opath
  920.   if path<>"" then
  921.  if instr(path,":")>0 then
  922.  path=path
  923.  else
  924.  path=server.mappath(path)
  925.  end if
  926.   else
  927.   path=blogpath
  928.   end if
  929. response.write "<p>"&ZC_MSG240&":"&path&"</p>"
  930. set fold=f.getfolder(path)
  931. response.write"<table width=""100%"" border=""0"">"
  932. response.write "<tr><td><a href='../cmd.asp?act=SiteFileMng&path="&Server.URLEncode(path&"..")&"'>"&ZC_MSG239&"</a></td></tr>"
  933. for each item in fold.subfolders
  934. jpath=replace(path,"","\")
  935. response.write "<tr height=18><td><img src='../image/edit/page_peppermint.png' height='11' width='11' />&nbsp;<a href='../cmd.asp?act=SiteFileMng&path="&Server.URLEncode(path&""&item.name)&"&opath='>"&item.name&"</a>"
  936. response.write"</td></tr>"
  937. next
  938. for each item in fold.files
  939. fpath=replace(path&"/"&item.name,blogpath,"")
  940. fpath=replace(fpath,"","/")
  941. response.write "<tr><td><img src='../image/edit/page_spearmint.png' height='11' width='11' />&nbsp;<a href=""javascript:;"" title='"&ZC_MSG261&":"&item.datelastmodified&";"&ZC_MSG238&":"&clng(item.size/1024)&"k'>"&item.name&"</a>&nbsp;&nbsp;"
  942. response.write"<a href=""../cmd.asp?act=SiteFileEdt&path=."&Server.URLEncode(fpath)&"&opath="& Server.URLEncode(path) &""">["&ZC_MSG078&"]</a>&nbsp;&nbsp;<a href=""../cmd.asp?act=SiteFileDel&path=."&Server.URLEncode(fpath)&"&opath="& Server.URLEncode(path) &""" onclick='return window.confirm("""&ZC_MSG058&""");'>["&ZC_MSG063&"]</a>"
  943. next
  944. response.write"</table>"
  945. set fold=nothing
  946. set f=Nothing
  947. Response.Write "</div>"
  948. ExportSiteFileList=True
  949. Err.Clear
  950. End Function
  951. '*********************************************************
  952. '*********************************************************
  953. ' 目的:    编辑文件
  954. '*********************************************************
  955. Function ExportSiteFileEdit(tpath,opath)
  956. Dim Del,txaContent
  957. Response.Write "<div class=""Header"">" & ZC_MSG246 & "</div>"
  958. Response.Write "<div class=""SubMenu"">" & Response_Plugin_SiteFileEdt_SubMenu & "</div>"
  959. Response.Write "<div id=""divMain2"">"
  960. Call GetBlogHint()
  961. If IsEmpty(txaContent) Then txaContent=Null
  962. If Not IsNull(tpath) Then
  963. Response.Write "<form id=""edit"" name=""edit"" method=""post"" action=""../cmd.asp?act=SiteFilePst&path="&Server.URLEncode(tpath)&"&opath="&Server.URLEncode(opath)&""">" & vbCrlf
  964. Response.Write "<p><br/>" & ZC_MSG170 & ": <br/><INPUT TYPE=""text"" Value="""&unEscape(tpath)&""" style=""width:100%"" name=""path"" id=""path"" readonly></p>"
  965. Response.Write "<p><textarea class=""resizable"" style=""height:300px;width:100%"" name=""txaContent"" id=""txaContent"">"&TransferHTML(LoadFromFile(BlogPath & unEscape(tpath),"utf-8"),"[textarea]")&"</textarea></p>" & vbCrlf
  966. Response.Write "<hr/>"
  967. Response.Write "<p><input class=""button"" type=""submit"" value="""&ZC_MSG087&""" id=""btnPost""/></p>" & vbCrlf
  968. Response.Write "</form>" & vbCrlf
  969. End If
  970. Response.Write "</div>"
  971. ExportSiteFileEdit=True
  972. End Function
  973. '*********************************************************
  974. '*********************************************************
  975. ' 目的:    
  976. '*********************************************************
  977. Function ExportFileReBuildAsk()
  978. 'Call Add_Response_Plugin("Response_Plugin_AskFileReBuild_SubMenu",MakeSubMenu(ZC_MSG072,"../cmd.asp?act=BlogReBuild","m-left",False))
  979. Response.Write "<div class=""Header"">" & ZC_MSG073 & "</div>"
  980. Response.Write "<div class=""SubMenu"">" & Response_Plugin_AskFileReBuild_SubMenu & "</div>"
  981. Response.Write "<div id=""divMain2"">"
  982. Call GetBlogHint()
  983. Response.Write "<form id=""edit"" name=""edit"" method=""post"" action=""../cmd.asp?act=FileReBuild"">" & vbCrlf
  984. Response.Write "<p>"& ZC_MSG112 &"</p>" & vbCrlf
  985. Response.Write "<p><input class=""button"" type=""submit"" value="""&ZC_MSG087&""" id=""btnPost""/></p>" & vbCrlf
  986. If ZC_MOONSOFT_PLUGIN_ENABLE=True Then
  987. Response.Write "<p></p>" & vbCrlf
  988. Response.Write "<p></p>" & vbCrlf
  989. Response.Write "<p>其它操作:</p>" & vbCrlf
  990. Response.Write "<p>进行<a href='../cmd.asp?act=BlogReBuild'>[索引重建]</a>或是<a href='../cmd.asp?act=DirectoryReBuild'>[静态日志目录重建]</a></p>" & vbCrlf
  991. Response.Write "<p></p>" & vbCrlf
  992. End If
  993. Response.Write "</form>" & vbCrlf
  994. Response.Write "</div>"
  995. ExportFileReBuildAsk=True
  996. End Function
  997. '*********************************************************
  998. '*********************************************************
  999. ' 目的:    
  1000. '*********************************************************
  1001. Function ExportThemesMng()
  1002. On Error Resume Next
  1003. Dim CurrentTheme
  1004. Dim CurrentStyle
  1005. CurrentTheme=ZC_BLOG_THEME
  1006. CurrentStyle=ZC_BLOG_CSS
  1007. Dim Theme_Id
  1008. Dim Theme_Name
  1009. Dim Theme_Url
  1010. Dim Theme_Note
  1011. Dim Theme_Description
  1012. Dim Theme_Pubdate
  1013. Dim Theme_Source_Name
  1014. Dim Theme_Source_Url
  1015. Dim Theme_Author_Name
  1016. Dim Theme_Author_Url
  1017. Dim Theme_ScreenShot
  1018. Dim Theme_Style_Name
  1019. Dim i,j
  1020. Dim aryFileList
  1021. If Request.QueryString("installed")<>"" Then
  1022. Call InstallPlugin(Request.QueryString("installed"))
  1023. End If
  1024. Response.Write "<div class=""Header"">" & ZC_MSG291 & "</div>"
  1025. Response.Write "<div class=""SubMenu"">" & Response_Plugin_ThemesMng_SubMenu & "</div>"
  1026. Response.Write "<div id=""divMain2"">"
  1027. Call GetBlogHint()
  1028. Response.Write "<form id=""frmTheme"" method=""post"" action=""../cmd.asp?act=ThemesSav"">"
  1029. Dim objXmlFile,strXmlFile
  1030. Dim fso, f, f1, fc, s
  1031. Set fso = CreateObject("Scripting.FileSystemObject")
  1032. Set f = fso.GetFolder(BlogPath & "themes" & "/")
  1033. Set fc = f.SubFolders
  1034. For Each f1 in fc
  1035. If fso.FileExists(BlogPath & "themes" & "/" & f1.name & "/" & "theme.xml") Then
  1036. strXmlFile =BlogPath & "themes" & "/" & f1.name & "/" & "theme.xml"
  1037. Set objXmlFile=Server.CreateObject("Microsoft.XMLDOM")
  1038. objXmlFile.async = False
  1039. objXmlFile.ValidateOnParse=False
  1040. objXmlFile.load(strXmlFile)
  1041. If objXmlFile.readyState=4 Then
  1042. If objXmlFile.parseError.errorCode <> 0 Then
  1043. Else
  1044. Theme_Id=""
  1045. Theme_Name=""
  1046. Theme_Url=""
  1047. Theme_Note=""
  1048. Theme_Description=""
  1049. Theme_Pubdate=""
  1050. Theme_Source_Name=""
  1051. Theme_Source_Url=""
  1052. Theme_Author_Name=""
  1053. Theme_Author_Url=""
  1054. Theme_ScreenShot=""
  1055. Theme_Style_Name=""
  1056. Theme_Source_Name=objXmlFile.documentElement.selectSingleNode("source/name").text
  1057. Theme_Source_Url=objXmlFile.documentElement.selectSingleNode("source/url").text
  1058. Theme_Author_Name=objXmlFile.documentElement.selectSingleNode("author/name").text
  1059. Theme_Author_Url=objXmlFile.documentElement.selectSingleNode("author/url").text
  1060. If Theme_Author_Name="" Then
  1061. Theme_Author_Name=Theme_Source_Name
  1062. Theme_Author_Url=Theme_Source_Url
  1063. End If
  1064. 'Theme_Id=f1.name
  1065. Theme_Id=objXmlFile.documentElement.selectSingleNode("id").text
  1066. Theme_Name=objXmlFile.documentElement.selectSingleNode("name").text
  1067. Theme_Url=objXmlFile.documentElement.selectSingleNode("url").text
  1068. Theme_Note=objXmlFile.documentElement.selectSingleNode("note").text
  1069. Theme_Pubdate=objXmlFile.documentElement.selectSingleNode("pubdate").text
  1070. Theme_Description=objXmlFile.documentElement.selectSingleNode("description").text
  1071. Theme_ScreenShot=ZC_BLOG_HOST & "themes" &"/" & Theme_Id & "/" & "screenshot.png"
  1072. If UCase(Theme_Id)=UCase(CurrentTheme) Then
  1073. Response.Write "<div class=""theme-now"" style="""">"
  1074. Else
  1075. Response.Write "<div class=""theme-other"" style="""">"
  1076. End If
  1077. If UCase(Theme_Id) <> UCase(f1.name) Then
  1078. Response.Write "<p style=""color:red;"">ID Error! Should be """& f1.name &"""!!</p>"
  1079. Else
  1080. Response.Write "<p>ID: <a id=""mylink1"&Left(md5(Theme_Id),6)&""" href=""$div"&Left(md5(Theme_Id),6)&"tip?width=300"" class=""betterTip"" title="""&Theme_Id&""">" & "" & Theme_Id & "" & "</a></p>"
  1081. End If
  1082. Response.Write "<p><a id=""mylink"&Left(md5(Theme_Id),6)&""" href=""$div"&Left(md5(Theme_Id),6)&"tip?width=300"" class=""betterTip"" title="""&Theme_Id&"""><img src=""" & Theme_ScreenShot & """ title=""" & Theme_Name & """ alt=""ScreenShot"" width=""200"" height=""150"" /></a></p>"
  1083. Response.Write "<div id=""div"&Left(md5(Theme_Id),6)&"tip"" style=""display:none;"">"
  1084. Response.Write "<p>"&ZC_MSG001&":" & Theme_Name & "</p>"
  1085. Response.Write "<p>"&ZC_MSG128&":" & Theme_Author_Name & "</p>"
  1086. 'Response.Write "<p>"&ZC_MSG054&":" & Theme_Author_Url & "</p>"
  1087. Response.Write "<p>"&ZC_MSG313&":" & Theme_Source_Name & "</p>"
  1088. 'Response.Write "<p>"&ZC_MSG054&":" & Theme_Source_Url & "</p>"
  1089. Response.Write "<p>"&ZC_MSG011&":" & Theme_Pubdate & "</p>"
  1090. Response.Write "<p>"&ZC_MSG261&":" & Theme_Modified & "</p>"
  1091. Response.Write "<p>"&ZC_MSG312&":<br />" & TransferHTML(Theme_Description,"[enter]") & "</p>"
  1092. Response.Write "</div>"
  1093. If Theme_Url="" Then
  1094. Response.Write "<p>"&ZC_MSG001&":" & Theme_Name & "</p>"
  1095. Else
  1096. Response.Write "<p>"&ZC_MSG001&":<a target=""_blank"" href=""" & Theme_Url & """>" & Theme_Name & "</a></p>"
  1097. End If
  1098. If Theme_Author_Url="" Then
  1099. Response.Write "<p>"&ZC_MSG128&":" & Theme_Author_Name & "</p>"
  1100. Else
  1101. Response.Write "<p>"&ZC_MSG128&":<a target=""_blank"" href=""" & Theme_Author_Url & """>" & Theme_Author_Name & "</a></p>"
  1102. End If
  1103. Response.Write "<p>"&ZC_MSG011&":" & Theme_Pubdate & "</p>"
  1104. Response.Write "<p>"&ZC_MSG016&":" & Theme_Note & "</p>"
  1105. Response.Write "<p>"&ZC_MSG314&":" & "<select class=""edit"" size=""1"" id=""cate"&Left(md5(Theme_Id),6)&""" name=""cate"&Left(md5(Theme_Id),6)&""" style=""width:100px;"" onchange=""document.getElementById('edtZC_BLOG_THEME').value='"&Theme_Id&"';document.getElementById('edtZC_BLOG_CSS').value=this.options[this.selectedIndex].value""> ><option value=""""></option>"
  1106. aryFileList=LoadIncludeFiles("themes" & "/" & Theme_Id & "/style")
  1107. If IsArray(aryFileList) Then
  1108. j=UBound(aryFileList)
  1109. For i=1 to j
  1110. If (InStr(aryFileList(i),".css")>0) Or (InStr(aryFileList(i),".asp")) Then
  1111. Theme_Style_Name=Replace(aryFileList(i),".css","")
  1112. Theme_Style_Name=Replace(Theme_Style_Name,".asp","")
  1113. If Theme_Id=CurrentTheme And Theme_Style_Name=CurrentStyle Then
  1114. Response.Write " <option selected=""selected"" value="""& Theme_Style_Name &""">"&aryFileList(i)&"</option> "
  1115. Else
  1116. If j=1 Then
  1117. Response.Write " <option selected=""selected"" value="""& Theme_Style_Name &""">"&aryFileList(i)&"</option> "
  1118. ElseIf LCase(Theme_Style_Name)="style" Then
  1119. Response.Write " <option selected=""selected"" value="""& Theme_Style_Name &""">"&aryFileList(i)&"</option> "
  1120. ElseIf LCase(Theme_Style_Name)=LCase(Theme_Id) Then
  1121. Response.Write " <option selected=""selected"" value="""& Theme_Style_Name &""">"&aryFileList(i)&"</option> "
  1122. Else
  1123. If i=1 Then
  1124. Response.Write " <option selected=""selected"" value="""& Theme_Style_Name &""">"&aryFileList(i)&"</option> "
  1125. Else
  1126. Response.Write " <option value="""& Theme_Style_Name &""">"&aryFileList(i)&"</option> "
  1127. End If
  1128. End If
  1129. End If
  1130. End If
  1131. Next
  1132. End If
  1133. Response.Write "</select>"
  1134. 'Response.Write "&nbsp;&nbsp;<a href='' onclick='if(document.getElementById(""cate"&Left(md5(Theme_Id),6)&""").value){document.getElementById(""frmTheme"").submit();return false;}'>["&ZC_MSG308&"]</a>"
  1135. Response.Write "&nbsp;&nbsp;<input type=""submit"" class=""button"" value="""& ZC_MSG308 &""" id=""btnPost"" onclick='if(!document.getElementById(""cate"&Left(md5(Theme_Id),6)&""").value){return false;}else{document.getElementById(""edtZC_BLOG_THEME"").value="""&Theme_Id&""";document.getElementById(""edtZC_BLOG_CSS"").value=document.getElementById(""cate"&Left(md5(Theme_Id),6)&""").value};' />"
  1136. 'Response.Write "&nbsp;&nbsp;<input type=""submit"" class=""button"" value="""& ZC_MSG308 &""" id=""btnPost"" onclick='if(document.getElementById(""edtZC_BLOG_CSS"").value&&document.getElementById(""edtZC_BLOG_THEME"").value){return window.confirm("""& ZC_MSG058 &""");}else{return false}' />"
  1137. Response.Write "</p>"
  1138. Response.Write "</div>"
  1139. End If
  1140. Set objXmlFile=Nothing
  1141. End If
  1142. End If
  1143. Next
  1144. Set fso = nothing
  1145. Response.Write "<input type=""hidden"" name=""edtZC_BLOG_CSS"" id=""edtZC_BLOG_CSS"" value="""" />"
  1146. Response.Write "<input type=""hidden"" name=""edtZC_BLOG_THEME"" id=""edtZC_BLOG_THEME"" value="""" />"
  1147. Response.Write "</form>"
  1148. Response.Write "</div>"
  1149. Err.Clear
  1150. ExportThemesMng=True
  1151. End Function
  1152. '*********************************************************
  1153. %>