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

71 lines
1.4KB

  1. if(moz == null)
  2. {
  3. var ie = document.all != null;
  4. var moz = !ie && document.getElementById != null && document.layers == null;
  5. }
  6. if(moz) {
  7. extendEventObject();
  8. extendElementModel();
  9. emulateAttachEvent();
  10. }
  11. function delArc(mid){
  12. var qstr=getCheckboxItem();
  13. if(mid==0) mid = getOneItem();
  14. location="member_do.php?id="+qstr+"&dopost=delmembers";
  15. }
  16. //获得选中文件的文件名
  17. function getCheckboxItem()
  18. {
  19. var allSel="";
  20. if(document.form2.mid.value) return document.form2.mid.value;
  21. for(i=0;i<document.form2.mid.length;i++)
  22. {
  23. if(document.form2.mid[i].checked)
  24. {
  25. if(allSel=="")
  26. allSel=document.form2.mid[i].value;
  27. else
  28. allSel=allSel+"`"+document.form2.mid[i].value;
  29. }
  30. }
  31. return allSel;
  32. }
  33. //获得选中其中一个的id
  34. function getOneItem()
  35. {
  36. var allSel="";
  37. if(document.form2.mid.value) return document.form2.mid.value;
  38. for(i=0;i<document.form2.mid.length;i++)
  39. {
  40. if(document.form2.mid[i].checked)
  41. {
  42. allSel = document.form2.mid[i].value;
  43. break;
  44. }
  45. }
  46. return allSel;
  47. }
  48. function selAll()
  49. {
  50. for(i=0;i<document.form2.mid.length;i++)
  51. {
  52. if(!document.form2.mid[i].checked)
  53. {
  54. document.form2.mid[i].checked=true;
  55. }
  56. }
  57. }
  58. function noSelAll()
  59. {
  60. for(i=0;i<document.form2.mid.length;i++)
  61. {
  62. if(document.form2.mid[i].checked)
  63. {
  64. document.form2.mid[i].checked=false;
  65. }
  66. }
  67. }