| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144 |
- <%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
- <%@include file="/context/mytags.jsp"%>
- <!DOCTYPE html>
- <html>
- <head>
- <title>菜单信息</title>
- <t:base type="jquery,easyui,tools"></t:base>
- <script type="text/javascript">
-
- $(function() {
- $('#cc').combotree({
- url : 'functionController.do?setPFunction&selfId=${function.id}',
- panelHeight: 200,
- width: 157,
- onClick: function(node){
- $("#functionId").val(node.id);
- }
- });
-
- if($('#functionLevel').val()=='1'){
- $('#pfun').show();
- }else{
- $('#pfun').hide();
- }
-
-
- $('#functionLevel').change(function(){
- if($(this).val()=='1'){
- $('#pfun').show();
- var t = $('#cc').combotree('tree');
- var nodes = t.tree('getRoots');
- if(nodes.length>0){
- $('#cc').combotree('setValue', nodes[0].id);
- $("#functionId").val(nodes[0].id);
- }
- }else{
- var t = $('#cc').combotree('tree');
- var node = t.tree('getSelected');
- if(node){
- $('#cc').combotree('setValue', null);
- }
- $("#functionId").val(null);
- $('#pfun').hide();
- }
- });
- });
-
- function viewStyle(param) {
- var url = "<%=basePath%>/functionIconStyle.jsp?style = "+ param;
- //add("图标样式预览",url,'functionIconStyle',700,450);
- window.open(url,"_blank");
- }
- </script>
- </head>
- <body style="overflow-y: hidden" scroll="no">
- <t:formvalid formid="formobj" layout="div" dialog="true" refresh="true" action="functionController.do?saveFunction">
- <input name="id" type="hidden" value="${function.id}">
- <fieldset class="step">
- <div class="form">
- <label class="Validform_label"> <t:mutiLang langKey="menu.name"/>: </label>
- <input name="functionName" class="inputxt" value="${function.functionName}" datatype="*2-50">
- <span class="Validform_checktip"> <t:mutiLang langKey="menuname.rang2to15"/> </span>
- </div>
- <div class="form">
- <label class="Validform_label"> 功能描述: </label>
- <input name="remark" class="inputxt" value="${function.remark}" >
- <span class="Validform_checktip"> </span>
- </div>
- <div class="form">
- <label class="Validform_label"> <t:mutiLang langKey="funcType"/>: </label>
- <select name="functionType" id="functionType" datatype="*">
- <option value="0" <c:if test="${function.functionType eq 0}">selected="selected"</c:if>>
- <t:mutiLang langKey="funcType.page"/>
- </option>
- <option value="1" <c:if test="${function.functionType>0}"> selected="selected"</c:if>>
- <t:mutiLang langKey="funcType.from"/>
- </option>
- </select>
- <span class="Validform_checktip"></span>
- </div>
- <div class="form">
- <label class="Validform_label"> <t:mutiLang langKey="menu.level"/>: </label>
- <select name="functionLevel" id="functionLevel" datatype="*">
- <option value="0" <c:if test="${function.functionLevel eq 0}">selected="selected"</c:if>>
- <t:mutiLang langKey="main.function"/>
- </option>
- <option value="1" <c:if test="${function.functionLevel>0}"> selected="selected"</c:if>>
- <t:mutiLang langKey="sub.function"/>
- </option>
- </select>
- <span class="Validform_checktip"></span>
- </div>
- <div class="form" id="pfun">
- <label class="Validform_label"> <t:mutiLang langKey="parent.function"/>: </label>
- <input id="cc" <c:if test="${function.TSFunction.functionLevel eq 0}"> value="${function.TSFunction.id}"</c:if>
- <c:if test="${function.TSFunction.functionLevel > 0}"> value="${function.TSFunction.functionName}"</c:if>>
- <input id="functionId" name="TSFunction.id" style="display: none;" value="${function.TSFunction.id}">
- </div>
- <div class="form" id="funurl">
- <label class="Validform_label">
- <t:mutiLang langKey="menu.url"/>:
- </label>
- <input name="functionUrl" class="inputxt" value="${function.functionUrl}" style="width:70%">
- </div>
- <div class="form" id="icon">
- <label class="Validform_label"> <t:mutiLang langKey="common.icon"/>: </label>
- <select name="TSIcon.id">
- <c:forEach items="${iconlist}" var="icon">
- <option value="${icon.id}" <c:if test="${icon.id==function.TSIcon.id || (function.id eq null && icon.iconClas eq 'default') }">selected="selected"</c:if>>
- <t:mutiLang langKey="${icon.iconName}"/>
- </option>
- </c:forEach>
- </select>
- </div>
- <%--update-begin--Author:zhangguoming Date:20140509 for:云桌面图标管理--%>
- <div class="form" id="desktopIcon">
- <label class="Validform_label"> <t:mutiLang langKey="desktop.icon"/>: </label>
- <select name="TSIconDesk.id">
- <c:forEach items="${iconDeskList}" var="icon">
- <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>>
- <t:mutiLang langKey="${icon.iconName}"/>
- </option>
- </c:forEach>
- </select>
- </div>
- <%--update-end--Author:zhangguoming Date:20140509 for:云桌面图标管理--%>
- <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>
- <%-- update-begin--Author:chenj Date:20160722 for:添加菜单图标样式 --%>
- <div class="form" id="funiconstyle">
- <label class="Validform_label">
- <t:mutiLang langKey="menu.funiconstyle"/>:
- </label>
- <input name="functionIconStyle" class="inputxt" value="${function.functionIconStyle}" />
- <%-- update-start--Author:dangzhenghui Date:20170608 for:注释掉ace样式 --%>
- <%-- <a href="<%=basePath%>/webpage/common/functionIconStyleList.jsp?style=ace" target="_blank">[ace图标样式]</a>--%>
- <a href="http://fontawesome.dashgame.com" target="_blank"> <i class="fa fa-eye-slash"></i>图标库 </a>
- <%-- update-start--Author:dangzhenghui Date:20170608 for:注释掉ace样式 --%>
- <%-- update-end--Author:chenj Date:20160729 for:增加图标样式预览页面 --%>
- </div>
- <%-- update-end--Author:chenj Date:20160722 for:添加菜单图标样式 --%>
- </fieldset>
- </t:formvalid>
- </body>
- </html>
|