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

127 lines
4.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. </head>
  11. <body>
  12. <table width="98%" cellpadding="1" cellspacing="1" align="center" class="table maintable mt-3 mb-3">
  13. <form name="form1" action="member_type.php" method="post">
  14. <input type="hidden" name="dopost" value="save">
  15. <tr>
  16. <td height="26" colspan="5" background="../static/web/img/tbg.gif">
  17. <table width="98%" cellspacing="0" cellpadding="0" class="table table-borderless">
  18. <tr>
  19. <td width="30%" style="padding-left:10px">会员产品分类</td>
  20. <td align="right" style="padding-top:10px">
  21. <button type="button" class="btn btn-success btn-sm" onClick="location='member_rank.php';">会员级别管理</button>
  22. <button type="button" class="btn btn-success btn-sm" onClick="location='member_operations.php';">会员业务记录</button>
  23. </td>
  24. </tr>
  25. </table>
  26. </td>
  27. </tr>
  28. <tr bgcolor="#F8FCF1">
  29. <td width="22%" height="26" align="center">产品名称</td>
  30. <td width="23%" align="center">会员级别</td>
  31. <td width="21%" align="center">产品价格</td>
  32. <td width="18%" align="center">会员期限(天)</td>
  33. <td width="16%" align="center">状态</td>
  34. </tr>
  35. <?php
  36. $dsql->SetQuery("Select * From #@__member_type");
  37. $dsql->Execute();
  38. $k=0;
  39. while($row = $dsql->GetObject())
  40. {
  41. $k++;
  42. ?>
  43. <input type="hidden" name="ID_<?php echo $k?>" value="<?php echo $row->aid?>">
  44. <tr align="center">
  45. <td height="26">
  46. <input name="pname_<?php echo $k?>" value="<?php echo $row->pname?>" type="text" id="pname_<?php echo $k?>" style="width:90%" class='pubinputs'>
  47. </td>
  48. <td height="26">
  49. <select name='rank_<?php echo $k?>' id='rank_<?php echo $k?>' style='width:90%'>
  50. <?php
  51. foreach($arcranks as $kkk=>$vvv){
  52. if($row->rank==$kkk) echo "<option value='{$kkk}' selected>{$vvv}</option>";
  53. else echo "<option value='{$kkk}'>{$vvv}</option>";
  54. }
  55. ?>
  56. </select>
  57. </td>
  58. <td>
  59. <input name="money_<?php echo $k?>" value="<?php echo $row->money?>" type="text" id="money_<?php echo $k?>" style="width:80%" class='pubinputs'>
  60. (元)
  61. </td>
  62. <td>
  63. <select name='exptime_<?php echo $k?>' id='exptime_<?php echo $k?>' style='width:90%'>
  64. <?php
  65. foreach($times as $kkk=>$vvv){
  66. if($row->exptime==$kkk) echo "<option value='{$kkk}' selected>{$vvv}</option>";
  67. else echo "<option value='{$kkk}'>{$vvv}</option>";
  68. }
  69. ?>
  70. </select>
  71. </td>
  72. <td>
  73. <input name="check_<?php echo $k?>" type="checkbox" id="check_<?php echo $k?>" value="1" checked='1'
  74. class='np'>
  75. 保留
  76. </td>
  77. </tr>
  78. <?php
  79. }
  80. ?>
  81. <input type="hidden" name="idend" value="<?php echo $k?>">
  82. <tr>
  83. <td height="26" colspan="5">&nbsp;新增一个会员产品类型:</td>
  84. </tr>
  85. <tr height="26" align="center">
  86. <td>
  87. <input name="pname_new" type="text" id="pname_new" style="width:90%" class='pubinputs'>
  88. </td>
  89. <td>
  90. <select name='rank_new' id='rank_new' style='width:90%'>
  91. <?php
  92. foreach($arcranks as $kkk=>$vvv){
  93. echo "<option value='{$kkk}'>{$vvv}</option>";
  94. }
  95. ?>
  96. </select>
  97. </td>
  98. <td>
  99. <input name="money_new" type="text" id="money_new" style='width:80%' value="100" class='pubinputs'>
  100. (元)
  101. </td>
  102. <td>
  103. <select name='exptime_new' id='exptime_new' style='width:90%'>
  104. <?php
  105. foreach($times as $kkk=>$vvv){
  106. echo "<option value='{$kkk}'>{$vvv}</option>";
  107. }
  108. ?>
  109. </select>
  110. </td>
  111. <td align="center">
  112. <input name="check_new" type="checkbox" id="check_new" value="1" checked='1' class='np'>
  113. 新增
  114. </td>
  115. </tr>
  116. <tr>
  117. <td height="26" colspan="5"></td>
  118. </tr>
  119. <tr>
  120. <td bgcolor="#f8f8f8" colspan="5" align="center" class="py-3">
  121. <button type="submit" class="btn btn-success btn-sm">保存</button>
  122. </td>
  123. </tr>
  124. </form>
  125. </table>
  126. </body>
  127. </html>