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

104 lines
3.2KB

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