国内流行的内容管理系统(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.

112 lines
3.1KB

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