123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- <extend name="Public:base" />
- <block name="content">
-
- <div class="page-header">
-
- </div>
-
- <table class="table table-striped table-bordered table-hover search-form">
- <thead>
- <th><input name="name" type="text" placeholder="输入用户名" value="{:I('name')}" /></th>
- <th><input name="tel" type="text" placeholder="输入手机号码" value="{:I('tel')}" /></th>
- <th>
- <a class="btn btn-primary" href="javascript:;" id="search" url="{:U('Member/apply')}">查询</a>
- </th>
- </thead>
- </table>
-
- <div class="row">
- <div class="col-xs-12">
- <div class="table-responsive">
- <table class="table table-striped table-bordered table-hover">
- <thead>
- <tr>
- <th>用户名</th>
- <th>手机号码</th>
- <th>上级</th>
- <th>创建时间</th>
- <th>申请时间</th>
- <th>操作</th>
- </tr>
- </thead>
- <tbody>
- <volist name="list" id="m" empty="$empty">
- <tr>
- <td>{$m.uname}</td>
- <td>{$m.telephone}</td>
- <td>
- <?php if($m['share_id'] == 0){ ?>
- 平台推荐
- <?php }else { ?>
- <?php $member_info = M('member')->field('name')->where( array('member_id' => $m['share_id']) )->find(); ?>
- <span class="blue"><?php echo $member_info['name']; ?></span>
- <?php } ?>
- </td>
-
- <td><?php echo empty($m['create_time'])?'无':date('Y-m-d H:i:s',$m['create_time']); ?></td>
-
- <td><?php echo empty($m['addtime'])?'无':date('Y-m-d H:i:s',$m['addtime']); ?></td>
-
- <td>
- <a class="btn btn-xs btn-info" href='{:U("Member/info",array("id"=>$m["member_id"]))}'>
- <i class="icon-eye-open bigger-120"></i>查看详情
- </a>
- <?php if($m['comsiss_flag'] == 0){ ?>
- <a class="delete btn btn-xs btn-danger" href='{:U("Member/fencommissapply",array("id"=>$m["member_id"],"aid" => $m["id"]))}' >
- 升级为分销商
- </a>
- <?php } ?>
- </td>
- </tr>
- </volist>
-
- <tr>
- <td colspan="20" class="page">{$page}</td>
- </tr>
- </tbody>
-
- </table>
- </div>
- </div>
- </div>
- </block>
- <block name="javascript">
- <script>
- $(function(){
- $("#export").click(function(){
- var url = $(this).attr('url');
- var query = $('.search-form').find('input,select').serialize();
- query = query.replace(/(&|^)(\w*?\d*?\-*?_*?)*?=?((?=&)|(?=$))/g, '');
- query = query.replace(/^&/g, '');
- if (url.indexOf('?') > 0) {
- url += '&' + query;
- } else {
- url += '?' + query;
- }
- window.open(url);
- })
-
- $("#search").click(function () {
- var url = $(this).attr('url');
- var query = $('.search-form').find('input,select').serialize();
- query = query.replace(/(&|^)(\w*?\d*?\-*?_*?)*?=?((?=&)|(?=$))/g, '');
- query = query.replace(/^&/g, '');
- if (url.indexOf('?') > 0) {
- url += '&' + query;
- } else {
- url += '?' + query;
- }
- window.location.href = url;
- });
-
-
- });
- </script>
- </block>
|