国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

128 lines
3.2KB

  1. if(moz) {
  2. extendEventObject();
  3. extendElementModel();
  4. emulateAttachEvent();
  5. }
  6. function viewArc(aid){
  7. if(aid==0) aid = getOneItem();
  8. window.open("archives_do.php?aid="+aid+"&dopost=viewArchives");
  9. }
  10. function kwArc(aid){
  11. var qstr=getCheckboxItem();
  12. if(aid==0) aid = getOneItem();
  13. if(qstr=='')
  14. {
  15. ShowMsg('必须选择一个或多个文档');
  16. return;
  17. }
  18. location="archives_do.php?aid="+aid+"&dopost=makekw&qstr="+qstr;
  19. }
  20. function editArc(aid){
  21. if(aid==0) aid = getOneItem();
  22. location="archives_do.php?aid="+aid+"&dopost=editArchives";
  23. }
  24. function updateArc(aid){
  25. var qstr=getCheckboxItem();
  26. if(aid==0) aid = getOneItem();
  27. location="archives_do.php?aid="+aid+"&dopost=makeArchives&qstr="+qstr;
  28. }
  29. function checkArc(aid){
  30. var qstr=getCheckboxItem();
  31. if(aid==0) aid = getOneItem();
  32. location="archives_do.php?aid="+aid+"&dopost=checkArchives&qstr="+qstr;
  33. }
  34. function moveArc(e, obj, cid){
  35. var qstr=getCheckboxItem();
  36. if(qstr=='')
  37. {
  38. ShowMsg('必须选择一个或多个文档');
  39. return;
  40. }
  41. LoadQuickDiv(e, 'archives_do.php?dopost=moveArchives&qstr='+qstr+'&channelid='+cid+'&rnd='+Math.random(), 'moveArchives', '460px', '180px');
  42. ChangeFullDiv('show');
  43. }
  44. function adArc(aid){
  45. var qstr=getCheckboxItem();
  46. if(aid==0) aid = getOneItem();
  47. location="archives_do.php?aid="+aid+"&dopost=commendArchives&qstr="+qstr;
  48. }
  49. function cAtts(jname, e, obj)
  50. {
  51. var qstr=getCheckboxItem();
  52. var screeheight = document.body.clientHeight + 20;
  53. if(qstr=='')
  54. {
  55. ShowMsg('必须选择一个或多个文档');
  56. return;
  57. }
  58. LoadQuickDiv(e, 'archives_do.php?dopost=attsDlg&qstr='+qstr+'&dojob='+jname+'&rnd='+Math.random(), 'attsDlg', '460px', '180px');
  59. ChangeFullDiv('show', screeheight);
  60. }
  61. function delArc(aid){
  62. var qstr=getCheckboxItem();
  63. if(aid==0) aid = getOneItem();
  64. location="archives_do.php?qstr="+qstr+"&aid="+aid+"&dopost=delArchives";
  65. }
  66. function QuickEdit(aid, e, obj)
  67. {
  68. LoadQuickDiv(e, 'archives_do.php?dopost=quickEdit&aid='+aid+'&rnd='+Math.random(), 'quickEdit', 'auto', '300px');
  69. ChangeFullDiv('show');
  70. }
  71. //获得选中文件的文件名
  72. function getCheckboxItem()
  73. {
  74. var allSel="";
  75. if(document.form2.arcID.value) return document.form2.arcID.value;
  76. for(i=0;i<document.form2.arcID.length;i++)
  77. {
  78. if(document.form2.arcID[i].checked)
  79. {
  80. if(allSel=="")
  81. allSel=document.form2.arcID[i].value;
  82. else
  83. allSel=allSel+"`"+document.form2.arcID[i].value;
  84. }
  85. }
  86. return allSel;
  87. }
  88. //获得选中其中一个的id
  89. function getOneItem()
  90. {
  91. var allSel="";
  92. if(document.form2.arcID.value) return document.form2.arcID.value;
  93. for(i=0;i<document.form2.arcID.length;i++)
  94. {
  95. if(document.form2.arcID[i].checked)
  96. {
  97. allSel = document.form2.arcID[i].value;
  98. break;
  99. }
  100. }
  101. return allSel;
  102. }
  103. function selAll()
  104. {
  105. if (typeof document.form2.arcID.length === "undefined") {
  106. document.form2.arcID.checked = true;
  107. }
  108. for(i=0;i<document.form2.arcID.length;i++)
  109. {
  110. if(!document.form2.arcID[i].checked)
  111. {
  112. document.form2.arcID[i].checked=true;
  113. }
  114. }
  115. }
  116. function noSelAll()
  117. {
  118. if (typeof document.form2.arcID.length === "undefined") {
  119. document.form2.arcID.checked = false;
  120. }
  121. for(i=0;i<document.form2.arcID.length;i++)
  122. {
  123. if(document.form2.arcID[i].checked)
  124. {
  125. document.form2.arcID[i].checked=false;
  126. }
  127. }
  128. }