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

106 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', 'auto', '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. var qstr=getCheckboxItem();
  44. var screeheight = document.body.clientHeight + 20;
  45. if (qstr=='') {
  46. ShowMsg('请选择一个或多个文档');
  47. return;
  48. }
  49. LoadQuickDiv(e, 'archives_do.php?dopost=attsDlg&qstr='+qstr+'&dojob='+jname+'&rnd='+Math.random(), 'attsDlg', 'auto', '180px');
  50. ChangeFullDiv('show', screeheight);
  51. }
  52. function delArc(aid) {
  53. var qstr=getCheckboxItem();
  54. if (aid==0) aid = getOneItem();
  55. location="archives_do.php?qstr="+qstr+"&aid="+aid+"&dopost=delArchives";
  56. }
  57. function QuickEdit(aid, e, obj) {
  58. LoadQuickDiv(e, 'archives_do.php?dopost=quickEdit&aid='+aid+'&rnd='+Math.random(), 'quickEdit', 'auto', '300px');
  59. ChangeFullDiv('show');
  60. }
  61. //获得选中文件的文件名
  62. function getCheckboxItem() {
  63. var allSel="";
  64. if (document.form2.arcID.value) return document.form2.arcID.value;
  65. for (i=0;i<document.form2.arcID.length;i++) {
  66. if (document.form2.arcID[i].checked) {
  67. if (allSel=="")
  68. allSel=document.form2.arcID[i].value;
  69. else
  70. allSel=allSel+"`"+document.form2.arcID[i].value;
  71. }
  72. }
  73. return allSel;
  74. }
  75. //获得选中其中一个的id
  76. function getOneItem() {
  77. var allSel="";
  78. if (document.form2.arcID.value) return document.form2.arcID.value;
  79. for (i=0;i<document.form2.arcID.length;i++) {
  80. if (document.form2.arcID[i].checked) {
  81. allSel = document.form2.arcID[i].value;
  82. break;
  83. }
  84. }
  85. return allSel;
  86. }
  87. function selAll() {
  88. if (typeof document.form2.arcID.length === "undefined") {
  89. document.form2.arcID.checked = true;
  90. }
  91. for (i=0;i<document.form2.arcID.length;i++) {
  92. if (!document.form2.arcID[i].checked) {
  93. document.form2.arcID[i].checked=true;
  94. }
  95. }
  96. }
  97. function noSelAll() {
  98. if (typeof document.form2.arcID.length === "undefined") {
  99. document.form2.arcID.checked = false;
  100. }
  101. for (i=0;i<document.form2.arcID.length;i++) {
  102. if (document.form2.arcID[i].checked) {
  103. document.form2.arcID[i].checked=false;
  104. }
  105. }
  106. }