apply.html 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <extend name="Public:base" />
  2. <block name="content">
  3. <div class="row">
  4. <div class="col-xs-12 search-row">
  5. <div class="panel-body">
  6. <ul class="nav nav-tabs">
  7. <li <?php if($state == -1){ ?>class="active" <?php } ?>>
  8. <a href="{:U('SellerManage/apply' ,array('state' => -1))}">全部</a>
  9. </li>
  10. <li <?php if($state == 0){ ?>class="active" <?php } ?>>
  11. <a href="{:U('SellerManage/apply', array('state' => 0))}">待审核</a>
  12. </li>
  13. <li <?php if($state == 1){ ?>class="active" <?php } ?>>
  14. <a href="{:U('SellerManage/apply', array('state' => 1))}" >已审核</a>
  15. </li>
  16. <li <?php if($state == 2){ ?>class="active" <?php } ?>>
  17. <a href="{:U('SellerManage/apply', array('state' => 2))}" >已拒绝</a>
  18. </li>
  19. </ul>
  20. </div>
  21. </div>
  22. <div class="col-xs-12">
  23. <div class="table-responsive">
  24. <table class="table table-striped table-bordered table-hover">
  25. <thead>
  26. <tr>
  27. <th>申请人姓名</th>
  28. <th>申请人电话</th>
  29. <th>店铺名称</th>
  30. <th>所在城市</th>
  31. <th>申请类型</th>
  32. <th>主营类目</th>
  33. <th>状态</th>
  34. <th>申请时间</th>
  35. <th>操作</th>
  36. </tr>
  37. </thead>
  38. <tbody>
  39. <volist name="list" id="m" empty="$empty">
  40. <tr>
  41. <td>{$m.username}</td>
  42. <td>{$m.mobile}</td>
  43. <td>{$m.store_name}</td>
  44. <td>{$m.city}</td>
  45. <td>
  46. <?php
  47. if($m['type'] == 0)
  48. {
  49. echo '<span class="green bold">个人</span>';
  50. }else if($m['type'] == 1)
  51. {
  52. echo '<span class="red bold">企业</span>';
  53. }
  54. ?>
  55. </td>
  56. <td>{$m.category_name}</td>
  57. <td>
  58. <?php
  59. switch($m['state']){
  60. case '1':
  61. echo '<span class="green bold">通过</span>';
  62. break;
  63. case '2':
  64. echo '<span class="blue bold">拒绝</span>';
  65. break;
  66. case '0':
  67. echo '<span class="red bold">申请中</span>';
  68. break;
  69. }
  70. ?>
  71. </td>
  72. <td>
  73. <?php echo date('Y-m-d H:i:s', $m['addtime']); ?>
  74. </td>
  75. <td>
  76. <a class="btn btn-xs btn-info" href='{:U("SellerManage/apply_detail",array("id"=>$m["id"]))}'>
  77. <i class="icon-eye-open bigger-120"></i>查看资料
  78. </a>
  79. <?php if($m['state'] == 0){ ?>
  80. <a class="delete btn btn-xs btn-danger" href='{:U("SellerManage/shenhe",array("id"=>$m["id"],"state" => 1))}' >
  81. 审核通过
  82. </a>
  83. <a class="delete btn btn-xs btn-danger" href='{:U("SellerManage/shenhe",array("id"=>$m["id"],"state" => 2))}' >
  84. 残忍拒绝
  85. </a>
  86. <?php } ?>
  87. </td>
  88. </tr>
  89. </volist>
  90. <tr>
  91. <td colspan="20" class="page">{$page}</td>
  92. </tr>
  93. </tbody>
  94. </table>
  95. </div>
  96. </div>
  97. </div>
  98. </block>
  99. <block name="javascript">
  100. <script>
  101. $(function(){
  102. $("#search").click(function () {
  103. var url = $(this).attr('url');
  104. var query = $('.search-form').find('input,select').serialize();
  105. query = query.replace(/(&|^)(\w*?\d*?\-*?_*?)*?=?((?=&)|(?=$))/g, '');
  106. query = query.replace(/^&/g, '');
  107. if (url.indexOf('?') > 0) {
  108. url += '&' + query;
  109. } else {
  110. url += '?' + query;
  111. }
  112. window.location.href = url;
  113. });
  114. });
  115. </script>
  116. </block>