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

81 lines
3.1KB

  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="cards_type.php" method="post">
  14. <input type="hidden" name="dopost" value="save">
  15. <tr>
  16. <td height="26" colspan="4" background="../static/web/img/tbg.gif">点卡产品分类</td>
  17. </tr>
  18. <tr bgcolor="#F8FCF1">
  19. <td width="30%" height="26" align="center">产品名称</td>
  20. <td width="27%" align="center">点数(金币数)</td>
  21. <td width="30%" align="center">价格</td>
  22. <td width="17%" align="center">状态</td>
  23. </tr>
  24. <?php
  25. $dsql->SetQuery("Select * From #@__moneycard_type");
  26. $dsql->Execute();
  27. $k=0;
  28. while($row = $dsql->GetObject())
  29. {
  30. $k++;
  31. ?>
  32. <input type="hidden" name="ID_<?php echo $k?>" value="<?php echo $row->tid?>">
  33. <tr align="center">
  34. <td height="26">
  35. <input name="pname_<?php echo $k?>" value="<?php echo $row->pname?>" type="text" id="pname_<?php echo $k?>" class='pubinputs' style="width:90%">
  36. </td>
  37. <td height="26">
  38. <input name="num_<?php echo $k?>" value="<?php echo $row->num?>" type="text" id="num_<?php echo $k?>" class='pubinputs' style="width:80%">
  39. </td>
  40. <td>
  41. <input name="money_<?php echo $k?>" value="<?php echo $row->money?>" type="text" id="money_<?php echo $k?>" class='pubinputs' style="width:80%">
  42. (元)
  43. </td>
  44. <td>
  45. <input name="check_<?php echo $k?>" type="checkbox" id="check_<?php echo $k?>" value="1" checked='1'
  46. class='np'>
  47. 保留
  48. </td>
  49. </tr>
  50. <?php
  51. }
  52. ?>
  53. <input type="hidden" name="idend" value="<?php echo $k?>">
  54. <tr bgcolor="#F8FCF1">
  55. <td height="26" colspan="4" bgcolor="#f8f8f8" style="padding-left:10px">
  56. 新增一个点卡产品类型:</td>
  57. </tr>
  58. <tr height="26" align="center">
  59. <td>
  60. <input name="pname_new" type="text" id="pname_new" class='pubinputs' style="width:90%">
  61. </td>
  62. <td>
  63. <input name="num_new" value="100" type="text" id="num_new" class='pubinputs' style="width:80%">
  64. </td>
  65. <td>
  66. <input name="money_new" type="text" id="money_new" class='pubinputs' style='width:80%' value="30">
  67. (元)
  68. </td>
  69. <td align="center">
  70. <input name="check_new" type="checkbox" id="check_new" value="1" checked='1' class='np'>
  71. 新增 </td>
  72. </tr>
  73. <tr>
  74. <td colspan="4" align="center" bgcolor="#f8f8f8" class="py-3">
  75. <button type="submit" class="btn btn-success btn-sm">保存</button>
  76. </td>
  77. </tr>
  78. </form>
  79. </table>
  80. </body>
  81. </html>