getagentprice.php 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <form action="<?php echo $this->dir?>agent/saveprice/<?php echo $userid?>"
  2. method="post">
  3. <table class="table table-hover">
  4. <thead>
  5. <tr class="info">
  6. <th>
  7. 编号
  8. </th>
  9. <th>
  10. 通道名称
  11. </th>
  12. <th>
  13. 默认分成
  14. </th>
  15. <th>
  16. 代理分成
  17. </th>
  18. <th>
  19. 设置状态
  20. </th>
  21. </tr>
  22. </thead>
  23. <tbody>
  24. <?php if($data):?>
  25. <?php foreach($data as $key=>$val):?>
  26. <tr>
  27. <td>
  28. <?php echo $val[ 'id']?>
  29. </td>
  30. <td>
  31. <?php echo $val[ 'name']?>
  32. </td>
  33. <td>
  34. <?php echo isset($val[ 'gprice_default']) ? $val[ 'gprice_default'] :
  35. $val[ 'gprice']?>
  36. </td>
  37. <td>
  38. <input type="text" class="form-control" size="4" name="gprice[<?php echo $val['id']?>]"
  39. value="<?php echo $val['gprice']?>">
  40. </td>
  41. <td>
  42. <?php if($val[ 'is_state']=='0' ):?>
  43. <div class="label label-success" data-toggle="tooltip" title="已开通">
  44. <span class="glyphicon glyphicon-ok">
  45. </span>
  46. </div>
  47. <?php else:?>
  48. <div class="label label-danger" data-toggle="tooltip" title="已关闭">
  49. <span class="glyphicon glyphicon-remove">
  50. </span>
  51. </div>
  52. <?php endif;?>
  53. </td>
  54. </tr>
  55. <?php endforeach;?>
  56. <?php endif;?>
  57. </tbody>
  58. </table>
  59. <div class="text-center">
  60. <button type="submit" class="btn btn-success">
  61. &nbsp;
  62. <span class="glyphicon glyphicon-save">
  63. </span>
  64. &nbsp;保存设置&nbsp;
  65. </button>
  66. &nbsp;&nbsp;
  67. <a onclick="if(!confirm('是否要执行此操作?'))return false;" href="<?php echo $this->dir?>agent/resetprice/<?php echo $userid?>"
  68. class="btn btn-danger">
  69. <span class="glyphicon glyphicon-refresh">
  70. </span>
  71. &nbsp;重置分成
  72. </a>
  73. </div>
  74. <br>
  75. </form>