Edit C:\Users\Administrator\Desktop\Back\galaxie - Copy\navigation\master.jsp
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <%@page import="com.edeal.frontline.helper.ContextHelper"%> <%@page import="com.edeal.frontline.controller.actions.GetInfoBarInformationAction"%><% /****************************************************************************** * Copyright (c) 2000-2010 E-DEAL * * E-DEAL S.A. * 41, rue Périer * 92120 Montrouge * France * * T: +33 (0)1 73 03 29 80 * F: +33 (0)1 73 01 69 77 * http://www.e-deal.com * * La diffusion de ce code source sous quelque forme que ce soit sans * l'autorisation de E-DEAL est interdite. * * Vous êtes autorisés à modifier ce code source uniquement pour votre usage * propre et sous réserve que les mentions de copyright demeurent intactes. * * Ce code est fourni en l'état. Aucune garantie d'aucune sorte, explicite ou * implicite n'est donnée. En aucun cas E-DEAL ne pourra être tenu pour * responsable des dommages pouvant résulter de l'utilisation de ce code * source. ******************************************************************************/ %><%@ page isELIgnored="false" %><%@page session="true" contentType="text/html; charset=UTF-8" import="com.edeal.frontline.*, java.util.*, com.edeal.frontline.controller.ControllerServlet"%><%@ page import="com.edeal.frontline.navigation.FlRequest" %><%@taglib uri="http://www.e-deal.com/taglib/fl" prefix="fl" %><%@page import="org.apache.commons.lang.StringUtils"%><%@page import="com.edeal.frontline.controller.actions.SaveActionbarCssAction"%><%@page import="com.edeal.frontline.helper.custom.AlarmHelper"%><% final org.apache.commons.logging.Log logger = org.apache.commons.logging.LogFactory.getLog(getClass()); FlRequest flRequest = new FlRequest(request); FlContext context = flRequest.getContext(); DataDictionary dico = context.getDataDictionary(); String bodyPageURL = Utils.getRequestParameter(context, request, "bodyPageURL"); String actionBodyURL = Utils.getRequestParameter(context, request, "actionPageURL"); if (bodyPageURL == null) { bodyPageURL = (String)request.getAttribute("body"); } if (actionBodyURL == null) { actionBodyURL = (String)request.getAttribute("action"); } String strActDisp = null; String actID = (String)session.getAttribute("actorID"); try { strActDisp = dico.getTable("sql", "Actor").toString(session, actID); } catch (Throwable ex) { } Vector jsIncludes = (Vector)request.getAttribute(ControllerServlet.JS_INCLUDES_ATTR); if (jsIncludes == null) { jsIncludes = new Vector(); } Iterator iter = jsIncludes.iterator(); Vector jsBeenIncluded = (Vector)request.getAttribute(ControllerServlet.JS_BEEN_INCLUDED_ATTR); if (jsBeenIncluded == null) { jsBeenIncluded = new Vector(); } Integer resX = (Integer) session.getAttribute("resolutionX"); String activateAlert = context.getContextParameter("ActivateAlert"); boolean isAlertsActivated = ( (activateAlert != null) && ("true".equalsIgnoreCase(activateAlert)) ); String alertType = context.getContextParameter("InfoBar.AlertType"); alertType = (alertType != null) ? alertType : GetInfoBarInformationAction.ALERTTYPE_SCROLL; Boolean isABDeployed = (Boolean)session.getAttribute(SaveActionbarCssAction.ACTIONBAR_DEPLOYED_ATTR); if (isABDeployed == null) { isABDeployed = true; } MenuBean menuBeanMaster = null; SoftwareBean swBeanMaster = null; String menuIdMaster = flRequest.getRequestParameterOrAttribute("mn"); if (menuIdMaster != null) { menuIdMaster = flRequest.getRequestParameterOrAttribute("MenID"); } String sfwIdMaster = flRequest.getRequestParameterOrAttribute("SfwID"); // First try the menu directly, and get sfwIdMaster from that if (menuIdMaster != null) { try { menuBeanMaster = new MenuBean(menuIdMaster, context); try { sfwIdMaster = menuBeanMaster.getMenSfwID(); } catch (FieldNotInitializedException fnie) { } swBeanMaster = new SoftwareBean(sfwIdMaster, context); } catch (Exception e) { menuBeanMaster = null; swBeanMaster = null; } } // Then try the getting the software and pulling the menu from there if (menuBeanMaster == null) { try { swBeanMaster = new SoftwareBean(sfwIdMaster, context); menuBeanMaster = context.getMenuManager().getMenu(actID, swBeanMaster.getID()); } catch (Exception e) { menuBeanMaster = null; swBeanMaster = null; } } // If we still don't have a menu, try getting it from the default stored in the session if (menuBeanMaster == null) { try { menuBeanMaster = new MenuBean((String) session.getAttribute("DefaultMenID"), context); swBeanMaster = new SoftwareBean(menuBeanMaster.getMenSfwID(), context); } catch (Exception e) { swBeanMaster = context.getLicenceManager().getSoftwareBeans().elementAt(0); } } String sfwCodeMaster = ""; try { sfwCodeMaster = swBeanMaster.getSfwCode(); } catch (FieldNotInitializedException e) { } if (sfwCodeMaster.equals("")) { sfwCodeMaster = "UNDEFINED"; } // Title StringBuilder pageTitle = new StringBuilder(); //get obj type String objType = flRequest.getRequestParameterOrAttribute("LoadedFooterType"); if (objType != null) { BasicBean objBean = (BasicBean)flRequest.getAttribute(objType); String objID = null; try { objID = objBean.getID(); } catch (Exception e) { } if (objID != null) { pageTitle.append(objBean.toString()); } else { ObjectsBean object = null; try { object = dico.getTable("sql", objType); } catch (FrontlineException fe) {} String objDisplay = null; pageTitle.append(Utils.getMessage(session, "A3057", "Créer") + " "); if("Enterprise".equalsIgnoreCase(objType)) { EnterpriseBean ent = (EnterpriseBean)flRequest.getAttribute("Enterprise"); try { objDisplay = (String)dico.getRefDisp(session, "enttyeid", ent.getEntTyeID()); } catch(FieldNotInitializedException ex) { } } else if (object != null) { try { String objDisplayLabel = object.getObjDisplayLabel(); if (objDisplayLabel != null) { objDisplay = Utils.getMessage(session, objDisplayLabel, ""); } } catch (FieldNotInitializedException fnie2) {} if (StringUtils.isEmpty(objDisplay)) { try { objDisplay = object.getObjDisplay(); } catch (FieldNotInitializedException fnie3) {} } }if("Opportunity".equalsIgnoreCase(objType)) { OpportunityBean opp = (OpportunityBean)flRequest.getAttribute("Opportunity"); try { objDisplay = (String)dico.getRefDisp(session, "OppStoID", opp.getOppStoID()); } catch(FieldNotInitializedException ex) { } } pageTitle.append(StringUtils.isEmpty(objDisplay) ? Utils.formatToWeb(objType, false) : objDisplay); } } if (pageTitle.length() > 0) { pageTitle.append(" - "); } pageTitle.append(Utils.getMessage(session, "M808B", "E-DEAL CRM")); FlLocale flLocale = FlLocale.getInstance(session); String language = flLocale.getLanguage(); boolean isGeolocalizationActivated = false; isGeolocalizationActivated = ContextHelper.isActivatedService(context, "Geolocalization"); String geocoderkey = (String) context.getContextParameter("GoogleMapKey"); String warnMsg = (String) session.getAttribute("warnMsg"); String contextFromRequest = (String)request.getAttribute("jsonContext"); if (contextFromRequest == null) { contextFromRequest = "{\"actorId\":\"" + actID + "\", \"locale\":\"" + language + "\"}"; } %> <html> <head> <title><%=pageTitle%></title> <link rel="stylesheet" type="text/css" href="<fl:webapp/>/css/sidebar/sidebar.css"> <link rel="stylesheet" type="text/css" href="<fl:webapp/>/css/sidebar/actions_css.jsp"> <link rel="stylesheet" type="text/css" href="<fl:webapp/>/css/sidebar/searchbox_css.jsp"> <link rel="stylesheet" type="text/css" href="<fl:webapp/>/css/sidebar/calendar_css.jsp"> <link rel="stylesheet" type="text/css" href="<fl:webapp/>/css/sidebar/notepad_css.jsp"> <link rel="stylesheet" type="text/css" href="<fl:webapp/>/css/grid/grid_custom_styles.css"> <link type="text/css" rel="stylesheet" href="<fl:webapp/>/js/edeal/libraries/jquery/plugins/jquery.qtip/2.0/jquery.qtip.css" /> <link rel="stylesheet" href="<fl:webapp/>/css/common_css.jsp" type="text/css"/> <link rel="stylesheet" href="<fl:webapp/>/css/alert.css" type="text/css"/> <link rel="stylesheet" href="<fl:webapp/>/css/tooltip.css" type="text/css"/> <link rel="stylesheet" href="<fl:webapp/>/css/kpi/kpi_table.css" type="text/css"/> <link rel="stylesheet" href="<fl:webapp/>/css/master_css.jsp?sfwCode=<%=sfwCodeMaster%>" type="text/css"/> <link rel="icon" href="<fl:webapp/>/favicon.ico" type="image/x-icon"/> <link rel="shortcut icon" href="<fl:webapp/>/favicon.ico" type="image/x-icon"/> <link rel="stylesheet" href="<fl:webapp/>/skins/default/css/master.css" type="text/css"/> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/master_js.jsp"></script> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/notification/NotificationDisplayer.js"></script> <% while (iter.hasNext()) { String nextInclude = (String)iter.next(); if (!jsBeenIncluded.contains(nextInclude)) { jsBeenIncluded.add(nextInclude); } %> <script type="text/javascript" language="javascript" src="<fl:webapp/><%=nextInclude%>"></script> <% } request.setAttribute(com.edeal.frontline.controller.ControllerServlet.JS_BEEN_INCLUDED_ATTR, jsBeenIncluded); %> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/infobar/infobar_js.jsp"></script> <!--[if IE 7]> <script type="text/javascript" language="javascript" src="./js/edeal/libraries/json.org/json2/json2.js"></script> <![endif]--> <script type="text/javascript" language="javascript" src="./js/edeal/context/edContext.js"></script> <script type="text/javascript" language="javascript" src="./js/edeal/application/edApplication.js"></script> <script type="text/javascript" language="javascript" src="./js/edeal/libraries/includeJS/include.js"></script> <script type="text/javascript" language="javascript" src="./js/edeal/tools/utils.js"></script> <script type="text/javascript" language="javascript" src="./js/edeal/managers/edManager.js"></script> <script language="javascript"> $(document).ready(loadMainContent); previous$ = $; function loadMainContent() { if(previous$ != $) $.noConflict(); var context = new edContext('<%=contextFromRequest%>'); //Gérer ici l'auto post de l'input jsonContext et la surcharge des submit de formulaire $(document).one("edApplication_onInitialize", computeEdViews); $(document).one("onallviewsrendered", alertWarn); var application = new edApplication({path: "<fl:webapp/>/", isgeolocalizationactivated: <%=isGeolocalizationActivated%>, geocoderkey: "<%=geocoderkey%>" }); //alertWarn(); } function computeEdViews() { edManager.createEdViewsFromHTML(); } function alertWarn() { <% if (warnMsg != null) { %> displayWarning("<b><%= warnMsg %></b>"); <% session.removeAttribute("warnMsg"); } %> } </script> </head> <body> <div id="header"> <div id="infobar_css"> <%@include file="/navigation/infobar/infobar.jsp" %> </div> <div id="menubar_css"> <%@include file="/navigation/menubar/menubar.jsp" %> </div> </div> <div id="object_css"> <div id="pop_alert" style="display:none"> </div> <script language="javascript"> $(document).ready(function() { window.notificationDisplayer = new Notification.NotificationDisplayer(document.getElementById("pop_alert")); }); </script> <div id="object_body" <%= (!isABDeployed ? "style=\"right: 5px;\"" : "") %>> <% try { %> <jsp:include page="<%= bodyPageURL %>" /> <% } catch (Exception e) { logger.error("Exception raised during body page inclusion", e); Throwable t = e.getCause(); if (t != null) { logger.error("Cause is " + t.toString()); } } %> </div> <div id="object_actions" style="z-index: 999" <%= (!isABDeployed ? "style=\"padding-top: 0px;\"" : "") %>> <%@include file="/navigation/sidebar/sidebar.jsp" %> </div> </div> <div id="waiting" style="display:none;border:1px solid black;"><img src="<fl:webapp/>/icons/ajax-loader.gif" height="10"/></div> <script type="text/javascript" language="javascript"> <% if (isAlertsActivated == true && alertType.equals(GetInfoBarInformationAction.ALERTTYPE_POPUP)) { %> checkAlarms(); <% } else if (isAlertsActivated == true && alertType.equalsIgnoreCase(GetInfoBarInformationAction.ALERTTYPE_SCROLL)) { %> getInfoBarInformation(); window.setInterval("getInfoBarInformation()", <%= AlarmHelper.getRefreshTime(context)%>); <% } %> <% if (resX == null || "".equals(resX)) { %> doAjax("<fl:webapp/>/navigation/setres.jsp?resx=" + screen.width + "&resy=" + screen.height); <% } %> </script> </body> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de