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

126 lines
4.8KB

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