dictList.jsp 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <%@ page contentType="text/html;charset=UTF-8" %>
  2. <%@ include file="/WEB-INF/views/include/taglib.jsp"%>
  3. <html>
  4. <head>
  5. <title>字典管理</title>
  6. <meta name="decorator" content="default"/>
  7. <script type="text/javascript">
  8. function page(n,s){
  9. $("#pageNo").val(n);
  10. $("#pageSize").val(s);
  11. $("#searchForm").submit();
  12. return false;
  13. }
  14. </script>
  15. </head>
  16. <body>
  17. <ul class="nav nav-tabs">
  18. <li class="active"><a href="${ctx}/sys/dict/">字典列表</a></li>
  19. <shiro:hasPermission name="sys:dict:edit"><li><a href="${ctx}/sys/dict/form?sort=10">字典添加</a></li></shiro:hasPermission>
  20. </ul>
  21. <form:form id="searchForm" modelAttribute="dict" action="${ctx}/sys/dict/" method="post" class="breadcrumb form-search">
  22. <input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
  23. <input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
  24. <label>类型:</label><form:select id="type" path="type" class="input-medium"><form:option value="" label=""/><form:options items="${typeList}" htmlEscape="false"/></form:select>
  25. &nbsp;&nbsp;<label>描述 :</label><form:input path="description" htmlEscape="false" maxlength="50" class="input-medium"/>
  26. &nbsp;<input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
  27. </form:form>
  28. <sys:message content="${message}"/>
  29. <table id="contentTable" class="table table-striped table-bordered table-condensed">
  30. <thead><tr><th>键值</th><th>标签</th><th>类型</th><th>描述</th><th>排序</th><shiro:hasPermission name="sys:dict:edit"><th>操作</th></shiro:hasPermission></tr></thead>
  31. <tbody>
  32. <c:forEach items="${page.list}" var="dict">
  33. <tr>
  34. <td>${dict.value}</td>
  35. <td><a href="${ctx}/sys/dict/form?id=${dict.id}">${dict.label}</a></td>
  36. <td><a href="javascript:" onclick="$('#type').val('${dict.type}');$('#searchForm').submit();return false;">${dict.type}</a></td>
  37. <td>${dict.description}</td>
  38. <td>${dict.sort}</td>
  39. <shiro:hasPermission name="sys:dict:edit"><td>
  40. <a href="${ctx}/sys/dict/form?id=${dict.id}">修改</a>
  41. <a href="${ctx}/sys/dict/delete?id=${dict.id}&type=${dict.type}" onclick="return confirmx('确认要删除该字典吗?', this.href)">删除</a>
  42. <a href="<c:url value='${fns:getAdminPath()}/sys/dict/form?type=${dict.type}&sort=${dict.sort+10}'><c:param name='description' value='${dict.description}'/></c:url>">添加键值</a>
  43. </td></shiro:hasPermission>
  44. </tr>
  45. </c:forEach>
  46. </tbody>
  47. </table>
  48. <div class="pagination">${page}</div>
  49. </body>
  50. </html>