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

133 lines
5.3KB

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