userprice.php 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <form action="/agent/users/setuserrate/<?php echo $userid ?>" method="post">
  2. <input type="hidden" name="saveset" value="1">
  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. </tr>
  19. </thead>
  20. <tbody>
  21. <?php if($userprice):?>
  22. <?php foreach($userprice as $key=>$val):$acc=$this->model()->select('name')->from('acc')->where(array('fields'=>'id=?','values'=>array($val['channelid'])))->fetchRow();?>
  23. <tr>
  24. <td>
  25. <?php echo $acc[ 'name']?>
  26. </td>
  27. <td>
  28. <?php if($val[ 'is_state']=='0' ):?>
  29. <span class="label label-success">
  30. <span class="glyphicon glyphicon-ok">
  31. </span>
  32. </span>
  33. <?php else:?>
  34. <span class="label label-danger">
  35. <span class="glyphicon glyphicon-remove">
  36. </span>
  37. </span>
  38. <?php endif;?>
  39. </td>
  40. <td>
  41. <input type="hidden" name="accid[]" value="<?php echo $val['channelid']?>">
  42. <input type="text" name="uprice[]" class="form-control" size="5" maxlength="6"
  43. value="<?php echo $val['uprice']?>">
  44. </td>
  45. <td>
  46. <?php foreach($agentprice as $key2=>$val2):?>
  47. <?php if($val2[ 'channelid']==$val[ 'channelid']):?>
  48. <?php echo $val2[ 'gprice']?>
  49. <?php endif;?>
  50. <?php endforeach;?>
  51. </td>
  52. </tr>
  53. <?php endforeach;?>
  54. <?php endif;?>
  55. </tbody>
  56. </table>
  57. <div class="text-center">
  58. <button type="submit" class="btn btn-success">
  59. &nbsp;
  60. <span class="glyphicon glyphicon-save">
  61. </span>
  62. &nbsp;保存设置&nbsp;
  63. </button>
  64. </div>
  65. <br>
  66. </form>