function.jsp 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. <%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2. <%@include file="/context/mytags.jsp"%>
  3. <!DOCTYPE html>
  4. <html>
  5. <head>
  6. <title>菜单信息</title>
  7. <t:base type="jquery,easyui,tools"></t:base>
  8. <script type="text/javascript">
  9. $(function() {
  10. $('#cc').combotree({
  11. url : 'functionController.do?setPFunction&selfId=${function.id}',
  12. panelHeight: 200,
  13. width: 157,
  14. onClick: function(node){
  15. $("#functionId").val(node.id);
  16. }
  17. });
  18. if($('#functionLevel').val()=='1'){
  19. $('#pfun').show();
  20. }else{
  21. $('#pfun').hide();
  22. }
  23. $('#functionLevel').change(function(){
  24. if($(this).val()=='1'){
  25. $('#pfun').show();
  26. var t = $('#cc').combotree('tree');
  27. var nodes = t.tree('getRoots');
  28. if(nodes.length>0){
  29. $('#cc').combotree('setValue', nodes[0].id);
  30. $("#functionId").val(nodes[0].id);
  31. }
  32. }else{
  33. var t = $('#cc').combotree('tree');
  34. var node = t.tree('getSelected');
  35. if(node){
  36. $('#cc').combotree('setValue', null);
  37. }
  38. $("#functionId").val(null);
  39. $('#pfun').hide();
  40. }
  41. });
  42. });
  43. function viewStyle(param) {
  44. var url = "<%=basePath%>/functionIconStyle.jsp?style = "+ param;
  45. //add("图标样式预览",url,'functionIconStyle',700,450);
  46. window.open(url,"_blank");
  47. }
  48. </script>
  49. </head>
  50. <body style="overflow-y: hidden" scroll="no">
  51. <t:formvalid formid="formobj" layout="div" dialog="true" refresh="true" action="functionController.do?saveFunction">
  52. <input name="id" type="hidden" value="${function.id}">
  53. <fieldset class="step">
  54. <div class="form">
  55. <label class="Validform_label"> <t:mutiLang langKey="menu.name"/>: </label>
  56. <input name="functionName" class="inputxt" value="${function.functionName}" datatype="*2-50">
  57. <span class="Validform_checktip"> <t:mutiLang langKey="menuname.rang2to15"/> </span>
  58. </div>
  59. <div class="form">
  60. <label class="Validform_label"> 功能描述: </label>
  61. <input name="remark" class="inputxt" value="${function.remark}" >
  62. <span class="Validform_checktip"> </span>
  63. </div>
  64. <div class="form">
  65. <label class="Validform_label"> <t:mutiLang langKey="funcType"/>: </label>
  66. <select name="functionType" id="functionType" datatype="*">
  67. <option value="0" <c:if test="${function.functionType eq 0}">selected="selected"</c:if>>
  68. <t:mutiLang langKey="funcType.page"/>
  69. </option>
  70. <option value="1" <c:if test="${function.functionType>0}"> selected="selected"</c:if>>
  71. <t:mutiLang langKey="funcType.from"/>
  72. </option>
  73. </select>
  74. <span class="Validform_checktip"></span>
  75. </div>
  76. <div class="form">
  77. <label class="Validform_label"> <t:mutiLang langKey="menu.level"/>: </label>
  78. <select name="functionLevel" id="functionLevel" datatype="*">
  79. <option value="0" <c:if test="${function.functionLevel eq 0}">selected="selected"</c:if>>
  80. <t:mutiLang langKey="main.function"/>
  81. </option>
  82. <option value="1" <c:if test="${function.functionLevel>0}"> selected="selected"</c:if>>
  83. <t:mutiLang langKey="sub.function"/>
  84. </option>
  85. </select>
  86. <span class="Validform_checktip"></span>
  87. </div>
  88. <div class="form" id="pfun">
  89. <label class="Validform_label"> <t:mutiLang langKey="parent.function"/>: </label>
  90. <input id="cc" <c:if test="${function.TSFunction.functionLevel eq 0}"> value="${function.TSFunction.id}"</c:if>
  91. <c:if test="${function.TSFunction.functionLevel > 0}"> value="${function.TSFunction.functionName}"</c:if>>
  92. <input id="functionId" name="TSFunction.id" style="display: none;" value="${function.TSFunction.id}">
  93. </div>
  94. <div class="form" id="funurl">
  95. <label class="Validform_label">
  96. <t:mutiLang langKey="menu.url"/>:
  97. </label>
  98. <input name="functionUrl" class="inputxt" value="${function.functionUrl}" style="width:70%">
  99. </div>
  100. <div class="form" id="icon">
  101. <label class="Validform_label"> <t:mutiLang langKey="common.icon"/>: </label>
  102. <select name="TSIcon.id">
  103. <c:forEach items="${iconlist}" var="icon">
  104. <option value="${icon.id}" <c:if test="${icon.id==function.TSIcon.id || (function.id eq null && icon.iconClas eq 'default') }">selected="selected"</c:if>>
  105. <t:mutiLang langKey="${icon.iconName}"/>
  106. </option>
  107. </c:forEach>
  108. </select>
  109. </div>
  110. <%--update-begin--Author:zhangguoming Date:20140509 for:云桌面图标管理--%>
  111. <div class="form" id="desktopIcon">
  112. <label class="Validform_label"> <t:mutiLang langKey="desktop.icon"/>: </label>
  113. <select name="TSIconDesk.id">
  114. <c:forEach items="${iconDeskList}" var="icon">
  115. <option value="${icon.id}" <c:if test="${icon.id==function.TSIconDesk.id || (function.id eq null && icon.iconClas eq 'System Folder') }">selected="selected"</c:if>>
  116. <t:mutiLang langKey="${icon.iconName}"/>
  117. </option>
  118. </c:forEach>
  119. </select>
  120. </div>
  121. <%--update-end--Author:zhangguoming Date:20140509 for:云桌面图标管理--%>
  122. <div class="form" id="funorder"><label class="Validform_label"> <t:mutiLang langKey="menu.order"/>: </label> <input name="functionOrder" class="inputxt" value="${function.functionOrder}" datatype="n1-3"></div>
  123. <%-- update-begin--Author:chenj Date:20160722 for:添加菜单图标样式 --%>
  124. <div class="form" id="funiconstyle">
  125. <label class="Validform_label">
  126. <t:mutiLang langKey="menu.funiconstyle"/>:
  127. </label>
  128. <input name="functionIconStyle" class="inputxt" value="${function.functionIconStyle}" />
  129. <%-- update-start--Author:dangzhenghui Date:20170608 for:注释掉ace样式 --%>
  130. <%-- <a href="<%=basePath%>/webpage/common/functionIconStyleList.jsp?style=ace" target="_blank">[ace图标样式]</a>--%>
  131. <a href="http://fontawesome.dashgame.com" target="_blank"> <i class="fa fa-eye-slash"></i>图标库 </a>
  132. <%-- update-start--Author:dangzhenghui Date:20170608 for:注释掉ace样式 --%>
  133. <%-- update-end--Author:chenj Date:20160729 for:增加图标样式预览页面 --%>
  134. </div>
  135. <%-- update-end--Author:chenj Date:20160722 for:添加菜单图标样式 --%>
  136. </fieldset>
  137. </t:formvalid>
  138. </body>
  139. </html>