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

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