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

59 lines
1.4KB

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