treeTacheModel.jsp 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <%@ page language="java" contentType="text/html;charset=GBK"
  2. pageEncoding="GBK"%>
  3. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
  4. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  5. <html>
  6. <head>
  7. <meta http-equiv="Content-Type" content="text/html; charset=GBK">
  8. <title>Insert title here</title>
  9. <link
  10. href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css"
  11. rel="stylesheet" type="text/css" />
  12. <script type="text/javascript" src="/shares/js/jquery-1.8.2.js"></script>
  13. <script type="text/javascript" src="/shares/js/yw/bpm/promptDefine.js"></script>
  14. <script
  15. src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/core/base.js"
  16. type="text/javascript"></script>
  17. <script
  18. src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerLayout.js"
  19. type="text/javascript"></script>
  20. <script
  21. src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerTree.js"
  22. type="text/javascript"></script>
  23. <link href="${pageContext.request.contextPath}/main.css"
  24. rel="stylesheet" type="text/css" />
  25. <script type="text/javascript" src="/shares/js/constant.js"></script>
  26. <script type="text/javascript" src="/shares/js/common.js"></script>
  27. <script type="text/javascript" src="/shares/js/yw/bpm/oa.js"></script>
  28. <script type="text/javascript">
  29. $(function() {
  30. $("#tree2").ligerTree({
  31. checkbox : false,
  32. parentIcon : null,
  33. childIcon : null,
  34. openFolderEven:false,
  35. attribute: ['id'],
  36. nodeWidth : 140,
  37. onSelect: function(node){
  38. var id = node.data.id;
  39. if(id == -1){
  40. } else {
  41. refreshT(id);
  42. }
  43. }
  44. });
  45. });
  46. function refreshT(tmodelId){
  47. parent.document.getElementById('rightFrame').src=
  48. '${pageContext.request.contextPath }/FlowModelAction.do?task=toConfigTacheElement&formId=${param.formId}&modelId=${param.modelId}&tmodelId=' + tmodelId;
  49. }
  50. </script>
  51. </head>
  52. <body>
  53. <div
  54. style="width: 95%; margin: 5px; float: left; border: 1px solid #ccc; ">
  55. <ul id="tree2">
  56. <li id="-1"><span>»·½ÚÁбí</span>
  57. <ul>
  58. <c:forEach items="${requestScope.tacheModelTrees }"
  59. var="tacheModel">
  60. <li id="${tacheModel.tmodelId }"><span>${tacheModel.tmodelName }</span></li>
  61. </c:forEach>
  62. </ul></li>
  63. </ul>
  64. </div>
  65. </body>
  66. </html>