getapidata.php 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <style>
  2. table.customize{border-collapse: collapse;width:100%}table.customize td{height:
  3. 40px;border-bottom:1px solid #ddd}table.customize td.title{color:#999;background:
  4. #fff}
  5. </style>
  6. <div class="panel panel-info">
  7. <div class="panel-heading">
  8. 用户接入信息
  9. </div>
  10. <div class="panel-body">
  11. <table class="customize">
  12. <tr>
  13. <td class="title">
  14. 注册编号:
  15. </td>
  16. <td>
  17. <?php echo $user['id']?>
  18. </td>
  19. <td class="title">
  20. 账号状态:
  21. </td>
  22. <td>
  23. <?php switch($user['is_state']){case '0': $state='<span class="label label-warning">未开通</span>'
  24. ;break;case '1': $state='<span class="label label-success">已开通</span>'
  25. ;break;case '2': $state='<span class="label label-danger">已停用</span>' ;break;}echo
  26. $state;?>
  27. </td>
  28. </tr>
  29. <tr>
  30. <td class="title">
  31. 接入密钥:
  32. </td>
  33. <td colspan="3">
  34. <?php echo $user['apikey']?>
  35. &nbsp;
  36. <a href="<?php echo $this->dir?>users/resetapikey/<?php echo $user['id']?>">
  37. <span class="glyphicon glyphicon-refresh" title="重新生成密钥">
  38. </span>
  39. </a>
  40. </td>
  41. </tr>
  42. <tr>
  43. <!--<td class="title">
  44. 收银台功能:
  45. </td>
  46. <td>
  47. <?php echo $user['is_checkout'] ? '<span class="label label-success">已开通</span>' : '<span class="label label-warning">未开通</span>' ?>
  48. </td> -->
  49. <td class="title">
  50. API功能:
  51. </td>
  52. <td>
  53. <?php echo $user['is_paysubmit'] ? '<span class="label label-success">已开通</span>' : '<span class="label label-warning">未开通</span>' ?>
  54. </td>
  55. </tr>
  56. </table>
  57. </div>
  58. </div>