人人商城

user-browser.html 1.4KB

123456789101112131415161718192021222324252627282930313233343536
  1. <div class="clearfix user-browser">
  2. <div class="form-horizontal">
  3. <div class="form-group">
  4. <label class="col-xs-2 col-sm-2 col-md-2 col-lg-2 control-label">用户名</label>
  5. <div class="col-xs-10 col-md-10 col-lg-10">
  6. <div class="input-group">
  7. <input id="keyword" type="text" class="form-control" value="{$_GPC['keyword']}" />
  8. <div class="input-group-btn">
  9. <button class="btn btn-default pull-right" onclick="{$callback}.pIndex=1;{$callback}.query();"><i class="fa fa-search"></i> 搜索</button>
  10. </div>
  11. </div>
  12. </div>
  13. </div>
  14. <table class="table tb" style="min-width:568px;">
  15. <thead>
  16. <tr>
  17. <th style="width: 100px;">用户名</th>
  18. <th style="width: 100px;">用户组</th>
  19. <th style="width:100px;">说明</th>
  20. <th style="width: 50px;" class="text-center"></th>
  21. </tr>
  22. </thead>
  23. <tbody>
  24. {loop $list $row}
  25. <tr>
  26. <td><label for="chk_user_{$row['uid']}" style="font-weight:normal;">{$row['username']}</label></td>
  27. <td><label class="label label-info">{$usergroups[$row['groupid']]['name']}</label></td>
  28. <td title="{$row['remark']}">{php echo cutstr($row['remark'], 13, '.')}</td>
  29. <td><a class="btn btn-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>
  30. </tr>
  31. {/loop}
  32. </tbody>
  33. </table>
  34. {$pager}
  35. </div>
  36. </div>