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

80 lines
3.2KB

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