12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- <include file="public@header" />
- </head>
- <body>
- <div class="wrap js-check-wrap">
- <ul class="nav nav-tabs">
- <li class="active"><a href="{:url('adminUser/auth')}">允许注册列表</a></li>
- <li><a href="{:url('adminUser/authAdd')}">添加注册名单</a></li>
- </ul>
- <form class="well form-inline margin-top-20" method="get" action="{:url('adminUser/auth')}">
- 关键字:
- <input type="text" class="form-control" name="keyword" style="width: 240px;" value="{:input('request.keyword/s','')}" placeholder="请输入姓名/身份证/手机号">
- <input type="submit" class="btn btn-primary" value="搜索" />
- <a class="btn btn-danger" href="{:url('adminUser/auth')}">清空</a>
- </form>
- <div class="table-actions">
- <button class="btn btn-primary btn-sm import">导入</button>
- <a target="_blank" class="btn btn-primary btn-sm import" href="/1.xls">导入模板下载</a>
- </div>
- <table class="table table-hover table-bordered">
- <thead>
- <tr>
- <th width="50">ID</th>
- <th>姓名</th>
- <th>身份证号</th>
- <th>手机号</th>
- <th>单位</th>
- <th>身份类型</th>
- <th>婚姻状况</th>
- <th width="140">{:lang('ACTIONS')}</th>
- </tr>
- </thead>
- <tbody>
- <php>$user_statuses=array("0"=>lang('USER_STATUS_BLOCKED'),"1"=>lang('USER_STATUS_ACTIVATED'),"2"=>lang('USER_STATUS_UNVERIFIED'));</php>
- <foreach name="list" item="vo">
- <tr>
- <td>{$vo.id}</td>
- <td>{$vo.name}</td>
- <td>{$vo.idcard}</td>
- <td>{$vo.mobile}</td>
- <td>{$vo.company}</td>
- <td>{$vo.id_type}</td>
- <td>{$vo.marry}</td>
- <td>
- <a class="btn btn-xs btn-primary" href='{:url("adminUser/authEdit",array("id"=>$vo["id"]))}'>{:lang('EDIT')}</a>
- <a class="btn btn-xs btn-danger js-ajax-delete" href="{:url('adminUser/authDelete',array('id'=>$vo['id']))}">{:lang('DELETE')}</a>
- </td>
- </tr>
- </foreach>
- </tbody>
- </table>
- <div class="pagination">
- {$page}
- <li class="page-item"><span>共{$total}条</span></li>
- </div>
- </div>
- <script src="__STATIC__/js/admin.js"></script>
- <script>
- $(function () {
- Wind.use('layer', function () {
- $('.import').click(function(){
- openUploadDialog('导入', function (dialog, files) {
- var index = layer.load();
- $.post('{:url("adminUser/import")}',{url:files[0].url},function(json){
- layer.msg(json.msg);
- layer.close(index);
- if (json.code === 1) {
- location.reload();
- }
- },'json')
- }, {},0,'file');
- });
- });
- });
- </script>
- </body>
- </html>
|