| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127 |
- <include file="public@header"/>
- </head>
- <body>
- <div class="wrap">
- <ul class="nav nav-tabs">
- <li class="active"><a>{:lang('USER_INDEXADMIN_INDEX')}</a></li>
- </ul>
- <form class="well form-inline margin-top-20" method="get" action="{:url('user/adminIndex/index')}">
- 用户ID:
- <input class="form-control" type="text" name="uid" style="width: 200px;" value="{:input('request.uid')}"
- placeholder="请输入用户ID">
- 关键字:
- <input class="form-control" type="text" name="keyword" style="width: 200px;" value="{:input('request.keyword')}"
- placeholder="姓名/昵称/手机">
- 是否人才:
- <select name="is_talent" class="form-control">
- <option value="">全部</option>
- <option value="1" <if condition="$is_talent == 1">selected</if> >是</option>
- <option value="2" <if condition="$is_talent == 2">selected</if> >否</option>
- </select>
- <input type="submit" class="btn btn-primary" value="搜索"/>
- <a class="btn btn-danger" href="{:url('user/adminIndex/index')}">清空</a>
- </form>
- <form method="post" class="js-ajax-form">
- <table class="table table-hover table-bordered">
- <thead>
- <tr>
- <th width="20">ID</th>
- <th width="50">昵称</th>
- <th width="50">头像</th>
- <th width="50">姓名</th>
- <th width="70">手机</th>
- <th width="20">性别</th>
- <th width="100">身份证</th>
- <th width="50">积分</th>
- <td width="100">公司名称</td>
- <td width="100">公司职务</td>
- <td width="50">是否人才</td>
- <td width="50">人才层次</td>
- <td width="100">人才证号</td>
- <td width="50">操作</td>
- </tr>
- </thead>
- <tbody>
- <php>
- $sex_arr = array('保密','男','女');
- $level_arr = array('','第一层次','第二层次','第三层次','第四层次','第五层次','第六层次','第七层次');
- </php>
- <foreach name="list" item="vo">
- <tr>
- <td>{$vo.id}</td>
- <td>{$vo['user_nickname']}</td>
- <td><img width="25" height="25" src="{:url('user/public/avatar',array('id'=>$vo['id']))}"/></td>
- <td>{$vo['user_name']}</td>
- <td>{$vo.mobile}</td>
- <td>{$sex_arr[$vo['sex']]}</td>
- <td>{$vo.user_idcard}</td>
- <td>{$vo.score}</td>
- <td>{$vo.company_name}</td>
- <td>{$vo.job}</td>
- <td>{$vo['is_talent'] == 1 ? '是' : '否'}</td>
- <td>{$level_arr[$vo['talent_level']]}</td>
- <td>{$vo.talent_card}</td>
- <td>
- <a class="btn btn-xs btn-primary"
- href="javascript:void(0);"
- data-toggle="modal"
- data-target="#ReviewModal"
- data-score="{$vo.score}"
- data-id="{$vo.id}">更改积分</a>
- </td>
- </tr>
- </foreach>
- </tbody>
- </table>
- <div class="pagination">{$page}</div>
- </form>
- <div class="modal fade" id="ReviewModal" tabindex="-1" role="dialog" aria-labelledby="ReviewModalLabel">
- <div class="modal-dialog" role="document">
- <div class="modal-content">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
- <h4 class="modal-title" id="ReviewModalLabel">修改积分</h4>
- </div>
- <div class="modal-body">
- <form id="check_form">
- <input type="hidden" id="id" name="id" value="0">
- <div class="form-group">
- <label for="score" class="control-label">积分:</label>
- <input class="form-control" id="score" type="number" name="score" required value="" placeholder="请输入积分"/>
- </div>
- </form>
- </div>
- <div class="modal-footer">
- <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
- <button type="button" id="btn_check" class="btn btn-primary">确定</button>
- </div>
- </div>
- </div>
- </div>
- </div>
- <script src="__STATIC__/js/admin.js"></script>
- <script>
- $('#ReviewModal').on('show.bs.modal', function (event) {
- var button = $(event.relatedTarget) // Button that triggered the modal
- var score = button.data('score') // Extract info from data-* attributes
- var id = button.data('id') // Extract info from data-* attributes
- var modal = $(this)
- modal.find('#score').val(score);
- modal.find('#id').val(id)
- });
- $('#btn_check').click(function(){
- var data = $('#check_form').serialize();
- $.post("{:url('changeScore')}",data,function(json){
- $('#ReviewModal').modal('hide');
- reloadPage(window);
- },'json');
- });
- function reloadPage(win) {
- win.location.reload();
- }
- </script>
- </body>
- </html>
|