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

71 lines
2.9KB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
  6. <title>积分产品分类</title>
  7. <link rel="stylesheet" href="/static/web/css/font-awesome.min.css">
  8. <link rel="stylesheet" href="/static/web/css/bootstrap.min.css">
  9. <link rel="stylesheet" href="/static/web/css/admin.css">
  10. </head>
  11. <body>
  12. <div class="container-fluid">
  13. <ol class="breadcrumb">
  14. <li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
  15. <li class="breadcrumb-item"><a href="cards_manage.php">积分产品管理</a></li>
  16. <li class="breadcrumb-item active">积分产品分类</li>
  17. </ol>
  18. <div class="card shadow-sm">
  19. <div class="card-header">积分产品管理</div>
  20. <div class="card-body">
  21. <form name="form1" action="cards_type.php" method="post">
  22. <input type="hidden" name="dopost" value="save">
  23. <div class="table-responsive">
  24. <table class="table table-borderless">
  25. <thead>
  26. <tr>
  27. <td scope="col">产品名称</td>
  28. <td scope="col">金币点数</td>
  29. <td scope="col">价格</td>
  30. <td scope="col">状态</td>
  31. </tr>
  32. </thead>
  33. <tbody>
  34. <?php
  35. $dsql->SetQuery("SELECT * FROM `#@__moneycard_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->tid?>">
  43. <tr>
  44. <td><input type="text" name="pname_<?php echo $k?>" value="<?php echo $row->pname?>" class="w-100" id="pname_<?php echo $k?>"></td>
  45. <td><input type="text" name="num_<?php echo $k?>" value="<?php echo $row->num?>" class="w-100" id="num_<?php echo $k?>"></td>
  46. <td><input type="text" name="money_<?php echo $k?>" value="<?php echo $row->money?>" class="w-75" id="money_<?php echo $k?>">(元)</td>
  47. <td><input type="checkbox" name="check_<?php echo $k?>" id="check_<?php echo $k?>" value="1" checked> 保留</td>
  48. </tr>
  49. <?php }?>
  50. <input type="hidden" name="idend" value="<?php echo $k?>">
  51. <tr>
  52. <td><input type="text" name="pname_new" class="w-100" id="pname_new"></td>
  53. <td><input type="text" name="num_new" class="w-100" id="num_new" value="100"></td>
  54. <td><input type="text" name="money_new" class="w-75" id="money_new" value="30">(元)</td>
  55. <td align="center"><input type="checkbox" name="check_new" id="check_new" value="1" checked> 新增</td>
  56. </tr>
  57. <tr>
  58. <td colspan="4" align="center">
  59. <button type="submit" class="btn btn-success btn-sm">保存</button>
  60. <a href="cards_manage.php" class="btn btn-outline-success btn-sm">返回</a>
  61. </td>
  62. </tr>
  63. </tbody>
  64. </table>
  65. </div>
  66. </form>
  67. </div>
  68. </div>
  69. </div>
  70. </body>
  71. </html>