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

115 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', '480px', '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', '480px', '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. {
  70. if (document.form2.arcID[i].checked)
  71. {
  72. if (allSel=="")
  73. allSel=document.form2.arcID[i].value;
  74. else
  75. allSel=allSel+"`"+document.form2.arcID[i].value;
  76. }
  77. }
  78. return allSel;
  79. }
  80. //获得选中其中一个的id
  81. function getOneItem()
  82. {
  83. var allSel="";
  84. if (document.form2.arcID.value) return document.form2.arcID.value;
  85. for (i=0;i<document.form2.arcID.length;i++)
  86. {
  87. if (document.form2.arcID[i].checked) {
  88. allSel = document.form2.arcID[i].value;
  89. break;
  90. }
  91. }
  92. return allSel;
  93. }
  94. function selAll()
  95. {
  96. if (typeof document.form2.arcID.length === "undefined") {
  97. document.form2.arcID.checked = true;
  98. }
  99. for (i=0;i<document.form2.arcID.length;i++) {
  100. if (!document.form2.arcID[i].checked) {
  101. document.form2.arcID[i].checked=true;
  102. }
  103. }
  104. }
  105. function noSelAll()
  106. {
  107. if (typeof document.form2.arcID.length === "undefined") {
  108. document.form2.arcID.checked = false;
  109. }
  110. for (i=0;i<document.form2.arcID.length;i++) {
  111. if (document.form2.arcID[i].checked) {
  112. document.form2.arcID[i].checked=false;
  113. }
  114. }
  115. }