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

数据库编程

开发平台:

ASP/ASPX

  1. <% Option Explicit %>
  2. <!--#include file="../../FS_Inc/Const.asp" -->
  3. <!--#include file="../../FS_Inc/Function.asp"-->
  4. <!--#include file="../../FS_InterFace/MF_Function.asp" -->
  5. <!--#include file="../../FS_InterFace/NS_Function.asp" -->
  6. <!--#include file="lib/cls_main.asp" -->
  7. <%'CopyRight (c) 2006 Fooun Inc. Code by Simpwind.Xie
  8. Dim Conn,User_Conn,strShowErr
  9. MF_Default_Conn
  10. MF_User_Conn
  11. 'session判断
  12. MF_Session_TF 
  13. '权限判断
  14. if not MF_Check_Pop_TF("DS_Class") then Err_Show
  15. dim Fs_news
  16. set Fs_news = new Cls_News
  17. Fs_News.GetSysParam()
  18. If Not Fs_news.IsSelfRefer Then response.write "非法提交数据":Response.end
  19. if Request.Form("actionType") = "xml" then
  20. Response.Write("生成xml")
  21. Response.end
  22. Elseif Request.Form("actionType") = "html" then
  23. Response.Write("生成html")
  24. Response.end
  25. End if
  26. if Request("Action") = "makeXML" then
  27. dim cid
  28. cid=NoSqlHack(Replace(Request("Cid")," ",""))
  29. if trim(cid)=empty then
  30. strShowErr = "<li>请选择栏目</li>"
  31. Response.Redirect("lib/Error.asp?ErrCodes="&Server.URLEncode(strShowErr)&"&ErrorUrl=")
  32. Response.end
  33. end if
  34. Response.Redirect "Class_makerss.asp?cid="& cid &""
  35. Response.end
  36. End if
  37. %> 
  38. <html>
  39. <head>
  40. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  41. <title>栏目管理___Powered by foosun Inc.</title>
  42. <link href="../images/skin/Css_<%=Session("Admin_Style_Num")%>/<%=Session("Admin_Style_Num")%>.css" rel="stylesheet" type="text/css">
  43. </head>
  44. <body>
  45. <table width="98%" border="0" align="center" cellpadding="5" cellspacing="1" class="table">
  46.   <tr class="hback"> 
  47.     <td class="xingmu">栏目管理<a href="../../help?Lable=NS_Class_Action" target="_blank" style="cursor:help;'" class="sd"><img src="../Images/_help.gif" border="0"></a></td>
  48.   </tr>
  49.   <tr> 
  50.     <td height="18" class="hback"><div align="left"><a href="Class_Manage.asp">管理首页</a>┆<%if MF_Check_Pop_TF("DS010") then%><a href="Class_add.asp?ClassID=&Action=add">添加根栏目</a>┆<%end if%><%if MF_Check_Pop_TF("DS013") then%><a href="Class_Action.asp?Action=one">一级栏目排序</a>┆<%end if%><%if MF_Check_Pop_TF("DS014") then%><a href="Class_Action.asp?Action=n">N级栏目排序</a>┆<%end if%><%if MF_Check_Pop_TF("DS013") then%><a href="Class_Action.asp?Action=reset"   onClick="{if(confirm('确认复位所有栏目?nn如果选择确定,所有的栏目将设置为一级分类!!')){return true;}return false;}">复位所有栏目</a>┆<%end if%><%if MF_Check_Pop_TF("DS015") then%><a href="Class_Action.asp?Action=unite">栏目合并</a>┆<%end if%><%if MF_Check_Pop_TF("DS_Class") then%><a href="Class_Action.asp?Action=allmove">栏目转移</a>┆<%end if%><%if MF_Check_Pop_TF("DS012") then%><a href="Class_Action.asp?Action=clearClass"  onClick="{if(confirm('确认清空所有栏目里的数据吗?nn如果选择确定,所有的栏目的下载将被放到回收站中!!')){return true;}return false;}">删除所有栏目</a> <%end if%>
  51.         <a href="../../help?Lable=NS_Class_Action_1" target="_blank" style="cursor:help;'" class="sd"><img src="../Images/_help.gif" border="0"></a></div></td>
  52.   </tr>
  53. </table>
  54. <%
  55. Dim str_Action,obj_news_rs,obj_news_rs_1,isUrlStr
  56. str_Action = Request("Action")
  57. Select Case str_Action
  58. Case "one"
  59. Call OrderOne()
  60. Case "n"
  61. Call OrderN()
  62. Case "Order_one"
  63. Call UpdateOrderID()
  64. Case "Order_n"
  65. Call UpdateOrderIDN()
  66. Case "del"
  67. Call delclass()
  68. Case "reset"
  69. Call resetClass()
  70. Case "unite"
  71. Call Classunite()
  72. Case "Saveunite"
  73. Call Saveunite()
  74. Case "allmove"
  75. Call allmove()
  76. Case "clearClass"
  77. Call clearClass()
  78. Case "clear"
  79. Call one_clear()
  80. Case "SaveAllmove"
  81. Call allmove_save()
  82. End Select
  83. Sub OrderOne()
  84. %>
  85. <table width="98%" border="0" align="center" cellpadding="5" cellspacing="1" class="table">
  86.   <tr class="hback"> 
  87.     <td height="22" class="xingmu">栏目名称</td>
  88.     <td height="22" class="xingmu"><div align="center">ID</div></td>
  89.     <td class="xingmu"><div align="center">操作</div></td>
  90.   </tr>
  91.   <%
  92. Set obj_news_rs = server.CreateObject(G_FS_RS)
  93. obj_news_rs.Open "Select Orderid,id,ClassID,ParentID,ClassName from FS_DS_Class where Parentid  = '0' Order by Orderid desc,ID desc",Conn,1,3
  94. Do while Not obj_news_rs.eof 
  95. %>
  96.   <form name="ClassForm" method="post" action="Class_Action.asp">
  97.     <tr class="hback"> 
  98.       <td width="39%" height="31" class="hback"><img src="images/%2B.gif" width="15" height="15"> 
  99.         <% = obj_news_rs("ClassName") %> </td>
  100.       <td width="21%" class="hback"><div align="center"> 
  101.           <% = obj_news_rs("ID") %>
  102.         </div></td>
  103.       <td width="40%" class="hback"><div align="center"> 
  104.           <input name="OrderID" type="text" id="OrderID" value="<% = obj_news_rs("OrderID") %>" size="4" maxlength="3">
  105.           <input name="ClassID" type="hidden" id="ClassID" value="<% = obj_news_rs("ClassID") %>">
  106.           <input name="Action" type="hidden" id="ClassID" value="Order_one">
  107.           <input type="submit" name="Submit" value="更新权重(排列序号)">
  108.         </div></td>
  109.     </tr>
  110.   </form>
  111.   <%
  112. obj_news_rs.MoveNext
  113. loop
  114. %>
  115. </table>
  116. <table width="98%" border="0" align="center" cellpadding="5" cellspacing="1" class="table">
  117.   <tr>
  118.     <td class="hback">说明:权重(排列序号)数字越到排得越靠前.如果权重(排列序号)数字相同,就根据ID来排列</td>
  119.   </tr>
  120. </table>
  121. <%
  122. obj_news_rs.close
  123. set obj_news_rs =nothing
  124. End Sub
  125. Sub OrderN()
  126. %>
  127. <table width="98%" border="0" align="center" cellpadding="5" cellspacing="1" class="table">
  128.   <tr class="hback"> 
  129.     <td height="22" class="xingmu">栏目名称</td>
  130.     <td height="22" class="xingmu"><div align="center">ID</div></td>
  131.     <td class="xingmu"><div align="center">操作</div></td>
  132.   </tr>
  133.   <%
  134. Set obj_news_rs = server.CreateObject(G_FS_RS)
  135. obj_news_rs.Open "Select Orderid,id,ClassID,ParentID,ClassName from FS_DS_Class where Parentid  = '0' Order by Orderid desc,ID desc",Conn,1,3
  136. Do while Not obj_news_rs.eof 
  137. %>
  138.     <tr class="hback"> 
  139.       
  140.     <td width="39%" height="28" class="hback"><img src="images/%2B.gif" width="15" height="15"> 
  141.       <% = obj_news_rs("ClassName") %> </td>
  142.       <td width="21%" class="hback"><div align="center"> 
  143.           <% = obj_news_rs("ID") %>
  144.         </div></td>
  145.       <td width="40%" class="hback"><div align="center"> </div></td>
  146.     </tr>
  147.   <%
  148.    Response.Write(Fs_news.GetChildNewsList_order(obj_news_rs("ClassID"),""))
  149. obj_news_rs.MoveNext
  150. loop
  151. %>
  152. </table>
  153. <table width="98%" border="0" align="center" cellpadding="5" cellspacing="1" class="table">
  154.   <tr>
  155.     <td class="hback">说明:权重(排列序号)数字越到排得越靠前.如果权重(排列序号)数字相同,就根据ID来排列</td>
  156.   </tr>
  157. </table>
  158. <%
  159. obj_news_rs.close
  160. set obj_news_rs =nothing
  161. End Sub
  162. Dim obj_unite_rs,tmp_str_list
  163. Sub Classunite()
  164. Set obj_unite_rs = server.CreateObject(G_FS_RS)
  165. obj_unite_rs.Open "Select Orderid,id,ClassID,ClassName,ParentID from FS_DS_Class where Parentid  = '0' and ReycleTF=0 Order by Orderid desc,ID desc",Conn,1,1
  166. %>
  167. <form name="form1" method="post" action="Class_Action.asp">
  168.   <table width="98%" border="0" align="center" cellpadding="5" cellspacing="1" class="table">
  169.     <tr class="hback"> 
  170.       <td height="22" colspan="2" class="xingmu"><div align="center">源栏目</div></td>
  171.       <td height="22" colspan="2" class="xingmu"><div align="center">目标栏目</div></td>
  172.     </tr>
  173.     <tr class="hback"> 
  174.       <td width="45%" height="28" class="hback"> <div align="center">
  175. <select name="SourceClassID" id="SourceClassID" style="width:80%">
  176.             <%
  177.   tmp_str_list  = ""
  178.   do while Not obj_unite_rs.eof 
  179.             tmp_str_list = tmp_str_list &"<option value="""& obj_unite_rs("ClassID") &","& obj_unite_rs("ParentID") &""">+"& obj_unite_rs("ClassName") &"</option>"& Chr(13) & Chr(10)
  180. tmp_str_list = tmp_str_list &Fs_news.UniteChildNewsList(obj_unite_rs("ClassID"),"")
  181.  obj_unite_rs.movenext
  182.  Loop
  183.  obj_unite_rs.close
  184.  set obj_unite_rs = nothing
  185.  Response.Write tmp_str_list
  186.  %>
  187.           </select>
  188.         </div></td>
  189.       <td colspan="2" class="hback"> <div align="center">合并到&gt;&gt;&gt; </div></td>
  190.       <td width="46%" class="hback"><select name="TargetClassID" id="SourceClassID" style="width:80%">
  191.           <%= tmp_str_list%> </select></td>
  192.     </tr>
  193.     <tr class="hback"> 
  194.       <td height="28" colspan="4" class="hback"><div align="center"> 
  195.           <input type="button" name="Submit2" value="确定合并栏目" onClick="{if(confirm('确定合并吗?nn合并后将不能还原!!!')){this.document.form1.submit();return true;}return false;}">
  196.           <input name="Action" type="hidden" id="Action" value="Saveunite">
  197.         </div></td>
  198.     </tr>
  199.   </table>
  200. </form>
  201. <%End Sub%>
  202. <%
  203. Sub allmove()
  204. Set obj_unite_rs = server.CreateObject(G_FS_RS)
  205. obj_unite_rs.Open "Select Orderid,id,ClassID,ClassName,ParentID from FS_DS_Class where Parentid  = '0' and ReycleTF=0 Order by Orderid desc,ID desc",Conn,1,1
  206. %>
  207. <form name="form1" method="post" action="Class_Action.asp">
  208.   <table width="98%" border="0" align="center" cellpadding="5" cellspacing="1" class="table">
  209.     <tr class="hback"> 
  210.       <td height="22" colspan="2" class="xingmu"><div align="center">源栏目</div></td>
  211.       <td height="22" colspan="2" class="xingmu"><div align="center">目标栏目</div></td>
  212.     </tr>
  213.     <tr class="hback"> 
  214.       <td width="45%" height="28" class="hback"> <div align="center">
  215. <select name="SourceClassID" id="SourceClassID" style="width:80%">
  216.             <%
  217.   tmp_str_list  = ""
  218.   do while Not obj_unite_rs.eof 
  219.             tmp_str_list = tmp_str_list &"<option value="""& obj_unite_rs("ClassID") &","&  obj_unite_rs("ParentID") &""">+"& obj_unite_rs("ClassName") &"</option>"& Chr(13) & Chr(10)
  220. tmp_str_list = tmp_str_list &Fs_news.UniteChildNewsList(obj_unite_rs("ClassID"),"")
  221.  obj_unite_rs.movenext
  222.  Loop
  223.  obj_unite_rs.close
  224.  set obj_unite_rs = nothing
  225.  Response.Write tmp_str_list
  226.  %>
  227.           </select>
  228.         </div></td>
  229.       <td colspan="2" class="hback"> <div align="center">转移到&gt;&gt;&gt;</div></td>
  230.       <td width="46%" class="hback"><select name="TargetClassID" id="SourceClassID" style="width:80%">
  231.           <option value="0000000000">转移到根目录</option>
  232.           <%= tmp_str_list%> </select></td>
  233.     </tr>
  234.     <tr class="hback"> 
  235.       <td height="28" colspan="4" class="hback"><div align="center"> 
  236.           <input type="button" name="Submit2" value="确定转移栏目" onClick="{if(confirm('确定转移栏目吗?')){this.document.form1.submit();return true;}return false;}">
  237.           <input name="Action" type="hidden" id="Action" value="SaveAllmove">
  238.         </div></td>
  239.     </tr>
  240.   </table>
  241. </form>
  242. <%End Sub%>
  243. </body>
  244. </html>
  245. <%
  246. sub UpdateOrderID()
  247. if not MF_Check_Pop_TF("DS013") then Err_Show
  248. Dim ClassID,OrderID
  249. ClassID = Request.Form("ClassID")
  250. OrderID = Request.Form("OrderID")
  251. if ClassID="" then
  252. strShowErr = "<li>错误参数:ClassID</li>"
  253. Response.Redirect("lib/Error.asp?ErrCodes="&Server.URLEncode(strShowErr)&"&ErrorUrl=")
  254. Response.end
  255. else
  256. ClassID=ClassID
  257. end if
  258. if isnumeric(OrderID)= false then
  259. strShowErr = "<li>错误参数:排列序号请填写正确的数字</li>"
  260. Response.Redirect("lib/Error.asp?ErrCodes="&Server.URLEncode(strShowErr)&"&ErrorUrl=")
  261. Response.end
  262. End if
  263. if OrderID="" then
  264. strShowErr = "<li>错误参数:OrderID</li>"
  265. Response.Redirect("lib/Error.asp?ErrCodes="&Server.URLEncode(strShowErr)&"&ErrorUrl=")
  266. Response.end
  267. end if
  268. Conn.execute "update FS_DS_Class set OrderID=" & OrderID & " where ClassID='" & ClassID &"'"
  269. Response.Redirect "Class_Action.asp?Action=one"
  270. end sub
  271. sub UpdateOrderIDN()
  272. if not MF_Check_Pop_TF("DS013") then Err_Show
  273. Dim N_ClassID,N_OrderID
  274. N_ClassID = Request.Form("ClassID")
  275. N_OrderID = Request.Form("OrderID")
  276. if N_ClassID="" then
  277. strShowErr = "<li>错误参数:ClassID</li>"
  278. Response.Redirect("lib/Error.asp?ErrCodes="&Server.URLEncode(strShowErr)&"&ErrorUrl=")
  279. Response.end
  280. else
  281. N_ClassID=N_ClassID
  282. end if
  283. if isnumeric(N_OrderID)= false then
  284. strShowErr = "<li>错误参数:排列序号请填写正确的数字</li>"
  285. Response.Redirect("lib/Error.asp?ErrCodes="&Server.URLEncode(strShowErr)&"&ErrorUrl=")
  286. Response.end
  287. End if
  288. if N_OrderID="" then
  289. strShowErr = "<li>错误参数:OrderID</li>"
  290. Response.Redirect("lib/Error.asp?ErrCodes="&Server.URLEncode(strShowErr)&"&ErrorUrl=")
  291. Response.end
  292. end if
  293. Conn.execute "update FS_DS_Class set OrderID=" & N_OrderID & " where ClassID='" & N_ClassID &"'"
  294. Response.Redirect "Class_Action.asp?Action=n"
  295. end sub
  296. Sub delclass()
  297. if not MF_Check_Pop_TF("DS012") then Err_Show
  298. Dim str_delClassID,str_tmp_DelclassTF,rs_tmp
  299. str_delClassID = Request.QueryString("ClassID")
  300. if str_delClassID="" then
  301. strShowErr = "<li>错误参数:没有栏目ClassID</li>"
  302. Response.Redirect("lib/Error.asp?ErrCodes="&Server.URLEncode(strShowErr)&"&ErrorUrl=")
  303. Response.end
  304. end if
  305. Conn.execute("Delete From FS_DS_Class Where ClassID='"& str_delClassID &"'")
  306. '删除下载
  307. set rs_tmp = Conn.execute("select DownLoadID from FS_DS_List where ClassID='"& str_delClassID &"'")
  308. do while not rs_tmp.eof 
  309. Conn.execute("Delete From FS_DS_Address Where DownLoadID='"& rs_tmp(0) &"'")
  310. rs_tmp.movenext
  311. loop
  312. rs_tmp.close
  313. Conn.execute("Delete From FS_DS_List Where ClassID='"& str_delClassID &"'")
  314. str_tmp_DelclassTF=0
  315. Response.write Fs_news.DelChildNewsList(str_delClassID,str_tmp_DelclassTF)
  316. '插入删除记录日志
  317. '**************待补 
  318. strShowErr = "<li>栏目已经彻底删除成功</li>"
  319. Call MF_Insert_oper_Log("删除栏目","删除栏目ClassID:"& str_delClassID &"及子类栏目,同时删除了此栏目下的所有信息,彻底删除",now,session("admin_name"),"DS")
  320. Response.Redirect("lib/Success.asp?ErrCodes="&Server.URLEncode(strShowErr)&"&ErrorUrl=../Class_Manage.asp")
  321. Response.end
  322. End Sub
  323. Sub resetClass()
  324. if not MF_Check_Pop_TF("DS014") then Err_Show
  325. Conn.Execute("Update FS_DS_Class Set ParentID ='0'")
  326. '插入操作日志
  327. Call MF_Insert_oper_Log("复位栏目","把所有栏目复位为一级栏目",now,session("admin_name"),"DS")
  328. strShowErr = "<li>复位所有栏目成功</li><li>所有的栏目已经设置为一级分类</li>"
  329. Response.Redirect("lib/Success.asp?ErrCodes="&Server.URLEncode(strShowErr)&"&ErrorUrl=../Class_Manage.asp")
  330. Response.end
  331. End Sub
  332. '合并目录
  333. Sub Saveunite()
  334. if not MF_Check_Pop_TF("DS015") then Err_Show
  335. Dim str_SourceClassID,str_TargetClassID
  336. str_SourceClassID = Trim(Request.Form("SourceClassID"))
  337. str_TargetClassID = Trim(Request.Form("TargetClassID"))
  338. if split(str_SourceClassID,",")(0) = split(str_TargetClassID,",")(0) then
  339. strShowErr = "<li>源目录和目标目录不能一样</li>"
  340. Response.Redirect("lib/Error.asp?ErrCodes="&Server.URLEncode(strShowErr)&"&ErrorUrl=")
  341. Response.end
  342. End if
  343. Dim obj_Url_rs
  344. set obj_Url_rs = Conn.execute("select isUrl from FS_DS_Class where ClassID='"& split(str_TargetClassID,",")(0) &"'")
  345. if obj_Url_rs("isUrl") = 1 then
  346. strShowErr = "<li>不能把栏目合并到外部栏目!</li>"
  347. Response.Redirect("lib/Error.asp?ErrCodes="&Server.URLEncode(strShowErr)&"&ErrorUrl=")
  348. Response.end
  349. End if
  350. Conn.execute("Update FS_DS_Address set ClassID='"& split(str_TargetClassID,",")(0)&"'  where ClassID ='"& split(str_SourceClassID,",")(0)&"'")
  351. Conn.execute("Update FS_DS_List set ClassID='"& split(str_TargetClassID,",")(0)&"'  where ClassID ='"& split(str_SourceClassID,",")(0)&"'")
  352. '更新其他相关数据库
  353. Conn.execute("Delete From  FS_DS_Address  where ClassID ='"& split(str_SourceClassID,",")(0)&"'")
  354. '删除源栏目表
  355. Conn.execute("Delete From FS_DS_Class  where ClassID ='"& split(str_SourceClassID,",")(0)&"'")
  356. Dim ob_Tmp_rs
  357. set ob_Tmp_rs = Conn.execute("select ClassID,ParentID From FS_DS_Class Where ParentID='"& split(str_SourceClassID,",")(0) &"' order by id desc")
  358. if Not ob_Tmp_rs.eof then
  359. do while Not ob_Tmp_rs.eof 
  360. Conn.execute("Update FS_DS_Class Set ParentID ='"&  split(str_SourceClassID,",")(1) &"' where ClassID ='"& ob_Tmp_rs("ClassID")&"'")
  361. ob_Tmp_rs.movenext
  362. Loop
  363. End if
  364. ob_Tmp_rs.close:set ob_Tmp_rs = nothing
  365. '更新所有数据
  366. '******************保留
  367. Call MF_Insert_oper_Log("合并栏目","把栏目ClassID:"&  split(str_SourceClassID)(0)&"合并到ClassID:"&  split(str_TargetClassID)(0) &"中",now,session("admin_name"),"DS")
  368. strShowErr = "<li>合并栏目成功</li>"
  369. Response.Redirect("lib/Success.asp?ErrCodes="&Server.URLEncode(strShowErr)&"&ErrorUrl=../Class_Manage.asp")
  370. Response.end
  371. End Sub
  372. '移动栏目
  373. Sub allmove_save()
  374. if not MF_Check_Pop_TF("DS_Class") then Err_Show
  375. Dim str_SourceClassID_move,str_TargetClassID_move
  376. str_SourceClassID_move = Trim(Request.Form("SourceClassID"))
  377. str_TargetClassID_move = Trim(Request.Form("TargetClassID"))
  378. if split(str_SourceClassID_move,",")(0) = split(str_TargetClassID_move,",")(0) then
  379. strShowErr = "<li>源目录和目标目录不能一样</li>"
  380. Response.Redirect("lib/Error.asp?ErrCodes="&Server.URLEncode(strShowErr)&"&ErrorUrl=")
  381. Response.end
  382. End if
  383. if str_TargetClassID_move ="0000000000" then
  384. Conn.execute("Update FS_DS_Class Set ParentID ='0' where ClassID ='"&  split(str_SourceClassID_move,",")(0)&"'")
  385. Else
  386. Dim obj_Url_rs_1
  387. set obj_Url_rs_1 = Conn.execute("select isUrl from FS_DS_Class where ClassID='"& split(str_TargetClassID_move,",")(0) &"'")
  388. if obj_Url_rs_1("isUrl") = 1 then
  389. strShowErr = "<li>不能把栏目转到外部栏目!</li>"
  390. Response.Redirect("lib/Error.asp?ErrCodes="&Server.URLEncode(strShowErr)&"&ErrorUrl=")
  391. Response.end
  392. End if
  393. Conn.execute("Update FS_DS_Class Set ParentID ='"&  split(str_TargetClassID_move,",")(0) &"' where ClassID ='"&  split(str_SourceClassID_move,",")(0)&"'")
  394. Dim ob_Tmp_rs_1
  395. set ob_Tmp_rs_1 = Conn.execute("select ClassID,ParentID From FS_DS_Class Where ParentID='"& split(str_SourceClassID_move,",")(0) &"' order by id desc")
  396. if Not ob_Tmp_rs_1.eof then
  397. do while Not ob_Tmp_rs_1.eof 
  398. Conn.execute("Update FS_DS_Class Set ParentID ='"&  split(str_SourceClassID_move,",")(1) &"' where ClassID ='"& ob_Tmp_rs_1("ClassID")&"'")
  399. ob_Tmp_rs_1.movenext
  400. Loop
  401. End if
  402. ob_Tmp_rs_1.close:set ob_Tmp_rs_1 = nothing
  403. End if
  404. '更新所有数据
  405. '******************保留
  406. Call MF_Insert_oper_Log("转移栏目","把栏目ClassID:"& split(str_SourceClassID_move)(0) &"转移到ClassID:"& split(str_TargetClassID_move)(0)&"中",now,session("admin_name"),"DS")
  407. strShowErr = "<li>栏目转移成功!</li>"
  408. Response.Redirect("lib/Success.asp?ErrCodes="&Server.URLEncode(strShowErr)&"&ErrorUrl=../Class_Manage.asp")
  409. Response.end
  410. End Sub
  411. Sub clearClass()
  412. if not MF_Check_Pop_TF("DS016") then Err_Show
  413. Conn.execute("delete from FS_DS_Address")
  414. Conn.execute("delete from FS_DS_List")
  415. Conn.execute("Delete From FS_DS_Class")
  416. Call MF_Insert_oper_Log("删除所有栏目","删除整个站点栏目",now,session("admin_name"),"DS")
  417. strShowErr = "<li>所有删除栏目成功</li><li>删除所有栏目下的下载成功</li>"
  418. Response.Redirect("lib/Success.asp?ErrCodes="&Server.URLEncode(strShowErr)&"&ErrorUrl=../Class_Manage.asp")
  419. Response.end
  420. End Sub
  421. Sub one_clear()
  422. if not MF_Check_Pop_TF("DS016") then Err_Show
  423. Conn.execute("Delete From FS_DS_Address where ClassID = '"& NoSqlHack(Request.QueryString("ClassID"))&"'")
  424. Conn.execute("Delete From FS_DS_List where ClassID = '"& NoSqlHack(Request.QueryString("ClassID"))&"'")
  425. Call MF_Insert_oper_Log("清除下载","清除了Classid:"& Request.QueryString("ClassID") &"下的所有下载",now,session("admin_name"),"DS")
  426. strShowErr = "<li>栏目下的下载清除成功</li>"
  427. Response.Redirect("lib/Success.asp?ErrCodes="&Server.URLEncode(strShowErr)&"&ErrorUrl=")
  428. Response.end
  429. End Sub
  430. set Fs_news = nothing
  431. %>