user-browser.html 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <div class="clearfix user-browser">
  2. <div class="">
  3. <div class="search-box ">
  4. <div class="search-form">
  5. <div class="input-group">
  6. <input id="keyword" type="text" class="form-control" value="{$_GPC['keyword']}" placeholder="请输入用户名"/>
  7. <div class="input-group-btn">
  8. <button class="btn btn-default" onclick="{$callback}.pIndex=1;{$callback}.query();"><i class="fa fa-search"></i></button>
  9. </div>
  10. </div>
  11. </div>
  12. </div>
  13. <table class="table we7-table" style="min-width:568px;">
  14. <thead>
  15. <tr>
  16. <th style="width: 100px;">用户名</th>
  17. <th style="width: 100px;">用户组</th>
  18. <th style="width: 100px;">说明</th>
  19. <th style="width: 50px;">操作</th>
  20. </tr>
  21. </thead>
  22. <tbody>
  23. {loop $list $row}
  24. <tr>
  25. <td><label for="chk_user_{$row['uid']}" style="font-weight:normal;">{$row['username']}</label></td>
  26. <td>
  27. <label class="label label-info">{php echo empty($usergroups[$row['groupid']]) ? '未分组' : $usergroups[$row['groupid']]['name']}</label>
  28. </td>
  29. <td title="{$row['remark']}">{php echo empty($row['remark']) ? '无' : cutstr($row['remark'], 13, '.')}</td>
  30. <td><a href="javascript:;" class="color-default {if in_array($row['uid'], $uidArr)}btn-primary{else}js-btn-select{/if}" js-uid="{$row['uid']}" onclick="$(this).toggleClass('btn-primary')">选取</a></td>
  31. </tr>
  32. {/loop}
  33. </tbody>
  34. </table>
  35. {$pager}
  36. </div>
  37. </div>