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

74 lines
3.6KB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="<?php echo $cfg_soft_lang;?>">
  5. <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
  6. <title>会员管理-积分头衔设置</title>
  7. <link rel="stylesheet" href="../static/web/css/bootstrap.min.css">
  8. <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
  9. <link rel="stylesheet" href="../static/web/css/admin.css">
  10. <script src="../static/web/js/jquery.min.js"></script>
  11. <script src="js/main.js"></script>
  12. <script>
  13. function CheckAll(form, prefix, checkall) {
  14. var checkall = checkall ? checkall : 'chkall';
  15. for (var i = 0; i < form.elements.length; i++) {
  16. var e = form.elements[i];
  17. if (e.name && e.name != checkall && (!prefix || (prefix && e.name.match(prefix)))) {
  18. e.checked = form.elements[checkall].checked;
  19. }
  20. }
  21. }
  22. </script>
  23. </head>
  24. <body>
  25. <form action="member_scores.php" method="post">
  26. <input name="action" type="hidden" value="save">
  27. <table width="98%" cellpadding="1" cellspacing="1" align="center" class="table maintable mt-3 mb-3">
  28. <tr>
  29. <td colspan="5" bgcolor="#f8f8f8">积分头衔设置</td>
  30. </tr>
  31. <tr>
  32. <td width="6%" align="center" bgcolor="#fbfce2"><input type="checkbox" name="chkall" id="chkall" onClick="CheckAll(this.form)"> 删</td>
  33. <td width="23%" align="center" bgcolor="#fbfce2">积分大于</td>
  34. <td width="30%" align="center" bgcolor="#fbfce2">星星数</td>
  35. <td width="23%" align="center" bgcolor="#fbfce2">级别头衔</td>
  36. <td width="30%" align="center" bgcolor="#fbfce2">是否默认</td>
  37. </tr>
  38. <?php
  39. foreach($Scores as $v){
  40. ?>
  41. <tr onmousemove="javascript:this.bgColor='#fbfce2';" onmouseout="javascript:this.bgColor='#ffffff';">
  42. <td align="center"><input type="checkbox" name="Ids-<?php echo $v['id']?>" id="Ids-<?php echo $v['id']?>" value="1"></td>
  43. <td align="center"><input type="text" name="integral-<?php echo $v['id']?>" id="integral-<?php echo $v['id']?>" value="<?php echo $v['integral']?>" style="width:160px"></td>
  44. <td align="center"><input type="text" name="icon-<?php echo $v['id']?>" id="icon-<?php echo $v['id']?>" value="<?php echo $v['icon']?>" style="width:60px"></td>
  45. <td align="center"><input type="text" name="titles-<?php echo $v['id']?>" id="titles-<?php echo $v['id']?>" value="<?php echo $v['titles']?>" style="width:160px"></td>
  46. <td align="center">
  47. <select name="isdefault-<?php echo $v['id']?>" id="isdefault-<?php echo $v['id']?>">
  48. <option value="1" <?php if($v['isdefault']) echo " selected='selected'";?>>是</option>
  49. <option value="0" <?php if(!$v['isdefault']) echo " selected='selected'";?>>否</option>
  50. </select>
  51. </td>
  52. </tr>
  53. <?php }?>
  54. <tr>
  55. <td>新增:</td>
  56. <td align="center"><input type="text" name="add_integral" id="add_integral" style="width:160px"></td>
  57. <td align="center"><input type="text" name="add_icon" id="add_icon" style="width:60px"></td>
  58. <td align="center"><input type="text" name="add_titles" id="add_titles" style="width:160px"></td>
  59. <td align="center">
  60. <select name="add_isdefault" id="add_isdefault">
  61. <option value="1">是</option>
  62. <option value="0">否</option>
  63. </select>
  64. </td>
  65. </tr>
  66. <tr>
  67. <td colspan="5" align="center" class="py-2">
  68. <button type="submit" class="btn btn-success btn-sm">提交</button>
  69. </td>
  70. </tr>
  71. </table>
  72. </form>
  73. </body>
  74. </html>