user.html 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <{include file="admin/permission/header.html"}>
  2. <{include file="admin/permission/nav.html"}>
  3. <div class="container">
  4. <form name='add_usergroup_from' action="<{$web_cfg.domain}>" method="get">
  5. <input name="c" type="hidden" value="permission" />
  6. <input name="a" type="hidden" value="searchUser" />
  7. <div class="form-group" style="width:300px;">
  8. <label for="input_username">用户名称</label>
  9. <input name="username" type="text" id="input_username" class="input-sm form-control" placeholder="输入用户名称">
  10. </div>
  11. <div class="form-group" style="width:300px;">
  12. <label for="input_uid">用户UID</label>
  13. <input name="uid" type="text" id="input_uid" class="input-sm form-control" placeholder="输入用户UID">
  14. </div>
  15. <input type="submit" id="search_btn" value="查询" class="btn btn-primary btn-sm"/>
  16. </form>
  17. <div class='block_15'></div>
  18. <table class="table table-condensed table-bordered">
  19. <tr>
  20. <th width=200>用户名</th>
  21. <th>用户组</th>
  22. </tr>
  23. <{foreach from=$data item=info}>
  24. <tr>
  25. <td><a href="http://home.kimiss.com/member/<{$info.uid}>/" target="_blank"><{$members[$info.uid].username}></a></td>
  26. <td>
  27. <{if $info.groupids}>
  28. <{foreach from=$info.groupids item=groupid}>
  29. <a><{$groups[$groupid].description}></a>
  30. <{/foreach}>
  31. <{else}>
  32. -
  33. <{/if}>
  34. </td>
  35. </tr>
  36. <{/foreach}>
  37. </table>
  38. </div>
  39. <script>
  40. KISSY.use('node', function (S, Node) {
  41. var $ = S.all;
  42. $('#search_btn').on('click', function () {
  43. var username = S.trim($('#input_username').val());
  44. var uid = S.trim($('#input_uid').val());
  45. if (username == '' && uid == '') {
  46. alert('请填写查询内容');
  47. return false;
  48. }
  49. });
  50. });
  51. </script>
  52. <{include file="admin/permission/bottom.html"}>