acw.php 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. <?php require_once 'header.php' ?>
  2. <h3>
  3. <span class="current">
  4. 通用网关
  5. </span>
  6. &nbsp;/&nbsp;
  7. <span>
  8. 增加网关
  9. </span>
  10. </h3>
  11. <br>
  12. <div class="set set0 table-responsive">
  13. <table id="table-6" class="table table-hover ">
  14. <thead>
  15. <tr class="info">
  16. <th class="text-center">
  17. 编号
  18. </th>
  19. <th>
  20. 网关名称
  21. </th>
  22. <th>
  23. 编号
  24. </th>
  25. <th>
  26. 卡密面值
  27. </th>
  28. <th>
  29. 卡密长度
  30. </th>
  31. <th>
  32. 图片
  33. </th>
  34. <th class="text-center">
  35. 操作
  36. </th>
  37. </tr>
  38. </thead>
  39. <tbody>
  40. <?php if($lists):?>
  41. <?php foreach($lists as $key=>$val):?>
  42. <tr data-id="<?php echo $val['id']?>">
  43. <td class="text-center">
  44. <?php echo $val[ 'id']?>
  45. </td>
  46. <td>
  47. <?php echo $val[ 'name']?>
  48. </td>
  49. <td>
  50. <?php echo $val[ 'code']?>
  51. </td>
  52. <td>
  53. <?php echo $val[ 'price'] ? implode( '|',json_decode($val[ 'price'],true)) : '-'?>
  54. </td>
  55. <td class="text-center">
  56. <?php echo $val[ 'length'] ? implode( '|',json_decode($val[ 'length'],true)) : '-'?>
  57. </td>
  58. <td class="text-center">
  59. <?php echo $val[ 'img'] ? '<img src="/static/payimg/'.$val[ 'img'].'">' : '-'?>
  60. </td>
  61. <td class="text-center">
  62. <a href="<?php echo $this->dir?>acw/edit/<?php echo $val['id']?>" data-toggle="tooltip"
  63. title="编辑">
  64. <span class="glyphicon glyphicon-edit">
  65. </span>
  66. </a>
  67. &nbsp;
  68. <a href="javascript:;" onclick="del(<?php echo $val['id']?>,'<?php echo $this->dir?>acw/del')"
  69. data-toggle="tooltip" title="删除">
  70. <span class="glyphicon glyphicon-trash">
  71. </span>
  72. </a>
  73. </td>
  74. </tr>
  75. <?php endforeach;?>
  76. <?php else:?>
  77. <tr>
  78. <td colspan="7">
  79. no data.
  80. </td>
  81. </tr>
  82. <?php endif;?>
  83. </tbody>
  84. </table>
  85. </div>
  86. <style>
  87. .form-group>span.col-md-4{font-size:0.9em;color:#6B6D6E;line-height: 30px}
  88. </style>
  89. <div class="set set1 hide">
  90. <form class="form-ajax form-horizontal" action="<?php echo $this->dir?>acw/save"
  91. method="post">
  92. <div class="form-group">
  93. <label for="name" class="col-md-2 control-label">
  94. 网关名称:
  95. </label>
  96. <div class="col-md-4">
  97. <input type="text" name="name" class="form-control" required>
  98. </div>
  99. </div>
  100. <div class="form-group">
  101. <label for="name" class="col-md-2 control-label">
  102. 网关编号:
  103. </label>
  104. <div class="col-md-4">
  105. <input type="text" name="code" class="form-control" required>
  106. </div>
  107. </div>
  108. <div class="form-group">
  109. <label for="name" class="col-md-2 control-label">
  110. 卡密面值:
  111. </label>
  112. <div class="col-md-4">
  113. <input type="text" name="price" class="form-control" placeholder="非点卡可为空">
  114. </div>
  115. <span class="col-md-4">
  116. 格式为 50|100
  117. </span>
  118. </div>
  119. <div class="form-group">
  120. <label for="name" class="col-md-2 control-label">
  121. 卡密长度:
  122. </label>
  123. <div class="col-md-4">
  124. <input type="text" name="length" class="form-control" placeholder="可为空">
  125. </div>
  126. <span class="col-md-4">
  127. 格式为 10|12
  128. </span>
  129. </div>
  130. <div class="form-group">
  131. <label for="name" class="col-md-2 control-label">
  132. 图片名称:
  133. </label>
  134. <div class="col-md-4">
  135. <input type="text" name="img" class="form-control" placeholder="非点卡可为空">
  136. </div>
  137. </div>
  138. <div class="form-group">
  139. <div class="col-md-offset-2 col-md-4">
  140. <button type="submit" class="btn btn-success">
  141. &nbsp;
  142. <span class="glyphicon glyphicon-save">
  143. </span>
  144. &nbsp;保存设置&nbsp;
  145. </button>
  146. </div>
  147. </div>
  148. </form>
  149. </div>
  150. <?php require_once 'footer.php' ?>