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

60 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. {
  17. if (document.form2.mid[i].checked) {
  18. if (allSel=="")
  19. allSel=document.form2.mid[i].value;
  20. else
  21. allSel=allSel+"`"+document.form2.mid[i].value;
  22. }
  23. }
  24. return allSel;
  25. }
  26. //获得选中其中一个的id
  27. function getOneItem()
  28. {
  29. var allSel="";
  30. if (document.form2.mid.value) return document.form2.mid.value;
  31. for (i=0;i<document.form2.mid.length;i++) {
  32. if (document.form2.mid[i].checked) {
  33. allSel = document.form2.mid[i].value;
  34. break;
  35. }
  36. }
  37. return allSel;
  38. }
  39. function selAll()
  40. {
  41. if (typeof document.form2.mid.length === "undefined") {
  42. document.form2.mid.checked = true;
  43. }
  44. for (i=0;i<document.form2.mid.length;i++) {
  45. if (!document.form2.mid[i].checked) {
  46. document.form2.mid[i].checked=true;
  47. }
  48. }
  49. }
  50. function noSelAll()
  51. {
  52. if (typeof document.form2.mid.length === "undefined") {
  53. document.form2.mid.checked = false;
  54. }
  55. for (i=0;i<document.form2.mid.length;i++) {
  56. if (document.form2.mid[i].checked) {
  57. document.form2.mid[i].checked=false;
  58. }
  59. }
  60. }