sysUserSelector.jsp 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2. <%@include file="/commons/include/html_doctype.html" %>
  3. <html>
  4. <head>
  5. <title>用户列表</title>
  6. <%@include file="/commons/include/get.jsp" %>
  7. <script type="text/javascript">
  8. var isSingle='${isSingle}';
  9. forbidF5("Chrome");//禁止刷新页面
  10. $(function(){
  11. $("#sysUserItem").find("tr").bind('click', function() {
  12. if(isSingle=='true'){
  13. var rad=$(this).find('input[name=userData]:radio');
  14. rad.attr("checked","checked");
  15. }else{
  16. var ch=$(this).find(":checkbox[name='userData']");
  17. window.parent.selectMulti(ch);
  18. }
  19. });
  20. });
  21. </script>
  22. </head>
  23. <body style="overflow-x: hidden;overflow-y: auto;">
  24. <div class="panel-top">
  25. <div class="panel-search">
  26. <form id="searchForm" method="post" action="${ctx}/platform/system/sysUser/selector.ht" >
  27. <ul class="row">
  28. <input type="hidden" name="isSingle" value="${isSingle }">
  29. <input type="hidden" name="type" value="${type }">
  30. <input type="hidden" name="typeVal" value="${typeVal }">
  31. <li><span class="label" >姓名:</span><input size="14" type="text" name="Q_fullname_SL" class="inputText" style="width:60%;" value="${param['Q_fullname_SL']}"/>
  32. &nbsp;<a href="javascript:;" onclick="$('#searchForm').submit()" class='button'><span>查询</span></a></li>
  33. </ul>
  34. </form>
  35. </div>
  36. </div>
  37. <c:if test="${isSingle==false}">
  38. <c:set var="checkAll">
  39. <input onclick="window.parent.selectAll(this);" type="checkbox" />
  40. </c:set>
  41. </c:if>
  42. <display:table name="sysUserList" id="sysUserItem" requestURI="selector.ht" sort="external" cellpadding="1" cellspacing="1" export="false" class="table-grid">
  43. <display:column title="${checkAll}" media="html" style="width:30px;">
  44. <c:choose>
  45. <c:when test="${isSingle==false}">
  46. <input onchange="window.parent.selectMulti(this);" type="checkbox" class="pk" name="userData" value="${sysUserItem.userId}#${sysUserItem.account}#${sysUserItem.fullname}#${sysUserItem.email}#${sysUserItem.mobile}#${sysUserItem.orgName}">
  47. </c:when>
  48. <c:otherwise>
  49. <input type="radio" class="pk" name="userData" value="${sysUserItem.userId}#${sysUserItem.account}#${sysUserItem.fullname}#${sysUserItem.email}#${sysUserItem.mobile}#${sysUserItem.orgName}">
  50. </c:otherwise>
  51. </c:choose>
  52. </display:column>
  53. <display:column style="width:60px;" property="fullname" title="姓名" sortable="true" sortName="fullname"></display:column>
  54. <display:column title="所属组织" sortable="false" >
  55. <c:choose>
  56. <c:when test="${sysUserItem.orgName==''}"><span class="red">未设置</span></c:when>
  57. <c:otherwise>${sysUserItem.orgName}</c:otherwise>
  58. </c:choose>
  59. </display:column>
  60. </display:table>
  61. <hotent:paging tableId="sysUserItem" showExplain="false"/>
  62. </body>
  63. </html>