12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <{include file="admin/permission/header.html"}>
- <{include file="admin/permission/nav.html"}>
- <div class="container">
- <form name='add_usergroup_from' action="<{$web_cfg.domain}>" method="get">
- <input name="c" type="hidden" value="permission" />
- <input name="a" type="hidden" value="searchUser" />
- <div class="form-group" style="width:300px;">
- <label for="input_username">用户名称</label>
- <input name="username" type="text" id="input_username" class="input-sm form-control" placeholder="输入用户名称">
- </div>
- <div class="form-group" style="width:300px;">
- <label for="input_uid">用户UID</label>
- <input name="uid" type="text" id="input_uid" class="input-sm form-control" placeholder="输入用户UID">
- </div>
- <input type="submit" id="search_btn" value="查询" class="btn btn-primary btn-sm"/>
- </form>
-
- <div class='block_15'></div>
- <table class="table table-condensed table-bordered">
- <tr>
- <th width=200>用户名</th>
- <th>用户组</th>
- </tr>
- <{foreach from=$data item=info}>
- <tr>
- <td><a href="http://home.kimiss.com/member/<{$info.uid}>/" target="_blank"><{$members[$info.uid].username}></a></td>
- <td>
- <{if $info.groupids}>
- <{foreach from=$info.groupids item=groupid}>
- <a><{$groups[$groupid].description}></a>
- <{/foreach}>
- <{else}>
- -
- <{/if}>
- </td>
- </tr>
- <{/foreach}>
- </table>
- </div>
- <script>
- KISSY.use('node', function (S, Node) {
- var $ = S.all;
-
- $('#search_btn').on('click', function () {
- var username = S.trim($('#input_username').val());
- var uid = S.trim($('#input_uid').val());
-
- if (username == '' && uid == '') {
- alert('请填写查询内容');
- return false;
- }
- });
- });
- </script>
- <{include file="admin/permission/bottom.html"}>
|