Edit C:\Users\Administrator\Desktop\Back\galaxie\navigation\infobar\infobar.jsp
<%@page session="true"%><%@ page import="com.edeal.frontline.navigation.FlRequest" %><%@ page import="com.edeal.frontline.FlLocale" %><%@ page import="java.text.SimpleDateFormat" %><%@ page import="java.util.Date" %><%@ page import="com.edeal.frontline.FlContext" %><%@ page import="com.edeal.frontline.DataDictionary" %><%@ page import="com.edeal.frontline.Utils" %> <%@page import="com.edeal.frontline.helper.ActorBaseHelper"%> <%@page import="org.apache.commons.lang.StringUtils"%> <%@page import="com.edeal.frontline.ActorBean"%> <%@page import="com.edeal.frontline.LicenceManager"%> <%@page import="com.edeal.frontline.services.cti.CTIServiceClient"%> <%@page import="com.edeal.frontline.helper.CTIHelper"%> <%@page import="com.edeal.frontline.services.FlServiceException"%> <%@page import="com.edeal.frontline.SyncModelBean"%><%@taglib uri="http://www.e-deal.com/taglib/fl" prefix="fl" %><% // Remark : this page is not stand-alone. It uses variables declared in // navigation/dashboard/dashboard.jsp : org.apache.commons.logging.Log logger, // FlRequest flRequest, FlContext context, DataDictionary dico and String // actID. // Store the actor's name in the session for future use String strActDisp_info = (String)flRequest.getSession().getAttribute(ActorBaseHelper.ACTOR_SESSION_FULLNAME_KEY); if (strActDisp_info == null || "".equals(strActDisp_info)) { try { strActDisp_info = dico.getTable("sql", "Actor").toString(session, actID); } catch (Throwable ex) { } flRequest.getSession().setAttribute(ActorBaseHelper.ACTOR_SESSION_FULLNAME_KEY, strActDisp_info); } SyncModelBean smb = (SyncModelBean)flRequest.getSession().getAttribute(ActorBaseHelper.ACTOR_SESSION_ACTSYNCMODEL_KEY); if (smb == null) { try { ActorBean actBean = new ActorBean(actID, session); String actSyncModel = actBean.getActSyncModel(); smb = new SyncModelBean(actSyncModel, session); flRequest.getSession().setAttribute(ActorBaseHelper.ACTOR_SESSION_ACTSYNCMODEL_KEY, smb); } catch (Exception e) { } } boolean fSyncEnabled=(smb!=null); boolean fSyncIsGoogle=false; try { fSyncIsGoogle=dico.getRefIdByCode("SymType","GOOGLEAPPS").equals(smb.getSymType()); } catch (Exception e) {} FlLocale locale = FlLocale.getInstance(session); SimpleDateFormat sdf = locale.getSimpleDateFormat("EEEE dd MMMM yyyy"); boolean isSA = "true".equalsIgnoreCase(flRequest.getParameter("standalone")); String actifID = dico.getRefIdByCode("Sta", "Val", "ACTIF"); String indispoID = dico.getRefIdByCode("Sta", "Val", "INDISPO"); String actorStatusID = (String)session.getAttribute("ActStaID"); if (actorStatusID == null) { actorStatusID = actifID; session.setAttribute("ActStaID", actifID); } String actorUrl = indispoID.equals(actorStatusID) ? "ico_pas_dispo.gif" : "ico_dispo.gif"; String actorTitle = (String)dico.getRefDisp(session, "Sta", "Te1", actorStatusID); boolean actHasLic = false; try { // Lic V3 version. actHasLic = context.getLicenceManager().actorHasSoftware(actID, CTIServiceClient.CTI_LIC_CODE, LicenceManager.LicenceType.PermanentLicence, null); } catch (Exception e) { logger.error("LoginAction: cannot perform CTI licence check",e); } //if CTI is activated, the CTI window will pop up. //if not, it is hidden in the main frameset and the ActiveX control should not be loaded. CTIServiceClient cti; try { cti = (CTIServiceClient)context.getServiceManager().getServiceClient(session, "CTI"); } catch (FlServiceException e) { cti = null; } boolean isicomCTI = false; // DGE : vocalcom add-on. boolean vocalcomCTI = false; boolean sibiloCTI = false; boolean isCCACTI = false; boolean genesysCTI = false; boolean algoriaCTI = false; boolean activateCTI = (cti != null); String idService = null; if (activateCTI) { idService = cti.getProviderId(); if ("isicom".equalsIgnoreCase(idService)){ isicomCTI = true; } else if ("vocalcom".equalsIgnoreCase(idService)) { vocalcomCTI = true; } else if ("sibilo".equalsIgnoreCase(idService)) { sibiloCTI = true; } else if ("cca".equalsIgnoreCase(idService)) { isCCACTI = true; } else if ("genesys".equalsIgnoreCase(idService)) { genesysCTI = true; } else if ("algoria".equalsIgnoreCase(idService)) { algoriaCTI = true; } } if (isSA) { %> <html><head></head><body> <% } %> <script> function doChangeActorStatus() { changeActorStatus("<fl:link url="<%= \"/save_object_ajax.fl?type=Actor&$$presentFields=ActStaID&id=\"%>"/>"); } </script> <link rel="stylesheet" href="<fl:webapp/>/css/infobar_css.jsp" type="text/css"> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/cookie.js"></script> <script type="text/javascript" language="javascript"> function doLogout() { <% if (activateCTI && actHasLic) { %> var isicomCTI = '<%= isicomCTI %>'; var vocalcomCTI = '<%= vocalcomCTI %>'; var sibiloCTI = '<%= sibiloCTI %>'; var isCCACTI = '<%= isCCACTI %>'; var genesysCTI = '<%= genesysCTI %>'; var algoriaCTI = '<%= algoriaCTI %>'; var isCCACTI = '<%= isCCACTI %>'; //alert("isicom : " + isicomCTI + "\n vocalcom : " + vocalcomCTI + "\n + sibilo : " + sibiloCTI + "\n cca : " + isCCACTI + "\n genesys : " + genesysCTI + "\n algoria : " + algoriaCTI); var cookieValue = readCookie('EdealCtiWindow'); //alert("cookie : " + cookieValue); if (vocalcomCTI == 'true') { //alert("isicom or vocalcom CTI is used."); if (cookieValue != null) { var ctiWindow = window.open('','CTI'); try { ctiWindow.doUnLoad2(); } catch(error) { alert(error); } } else { ; } } else if (isCCACTI == 'true') { // logout from the CCA CTI var ctiWindow = window.open('','CTI'); try { ctiWindow.doOnUnLoadCTI(); } catch (error) { alert(error); } } else { <%-- // if it is another CTI that uses a CTI window, make it "unload" // without reopening the window --%> if (cookieValue != null) { eraseCookie('EdealCtiWindow'); //alert("cookie erased"); } } <% } %> } </script> <div id="infobar_logo"> <a href="<fl:link menu="true" list="false" url="/"/>"><img src="<fl:webapp/>/icons/infobar/edeal_logo.jpg" width="200" height="51"/></a> </div> <div id="infobar_person"> <table cellspacing="0" cellpadding="0" border="0" > <tr class="tooltip"> <td class="corner" id="topleft" width="19px"><img src="<fl:webapp/>/icons/tooltip/bubble-1.png"/></td> <td class="top" style="background-image:url('<fl:webapp/>/icons/tooltip/bubble-2.png'); align: center"></td> <td class="corner" id="topright"><img src="<fl:webapp/>/icons/tooltip/bubble-3.png"/></td> </tr> <tr class="tooltip"> <td class="left" style="background-image:url('<fl:webapp/>/icons/tooltip/bubble-4.png');"></td> <td style="vertical-align: top;"> <table class="infobar-information-content"> <tr> <td nowrap="nowrap"> <div id="infobar_information"> <%-- Information will be here --%> <table style="width: 100%"> <tr> <td style="vertical-align: middle; text-align: left;"> <img src="<fl:webapp/>/icons/infobar/notepad.gif" style="border: none; margin-right: 10px"/> </td> <td style="height: 30px; text-align: left;"> <table style="width: 100%"> <tr class="infobar-body" style="width: 100%;"> <td style="width: 90%; text-align: center;"> <label style="color: black"> <fl:getMessage code="LF384" alt="Bienvenue dans Galaxie !"/> </label> </td> <td style="width: 10%; text-align: right;"></td> </tr> </table> </td> </tr> </table> </div> </td> </tr> </table> </td> <td class="right" style="background-image:url('<fl:webapp/>/icons/tooltip/bubble-5.png')" width="19px"></td> </tr> <tr class="tooltip"> <td id="bottomleft" style="background-image:url('<fl:webapp/>/icons/tooltip/bubble-6.png')" class="corner"></td> <td class="bottom" style="background-image:url('<fl:webapp/>/icons/tooltip/bubble-7.png')" width="30" height="20"></td> <td class="corner" id="bottomright" style="background-image:url('<fl:webapp/>/icons/tooltip/bubble-8.png')"></td> </tr> </table> </div> <% int table_nbcols=0; %> <div id="infobar_table"> <table width="10" align="right" border="0" cellspacing="0" cellpadding="0"> <tr valign="middle"> <%-- It's a link to open the Google sync opts window --%> <% if (fSyncIsGoogle) { table_nbcols=table_nbcols+1; %> <td width="5%"><a href="javascript:var win=window.open('<fl:webapp/>/changeGoogleParams.fl', 'synch', 'width=800,height=300');"><img src="<fl:webapp/>/icons/ico/googleopts.gif" hspace="5" title="<fl:getMessage code="A3082" alt="Paramètres Google"/>"></a></td> <% } %> <% if (fSyncEnabled) { table_nbcols=table_nbcols+2; %> <td width="5%"><a href="javascript:var win=window.open('<fl:webapp/>/syncUserStart.fl', 'synch', 'width=400,height=300');"><img src="<fl:webapp/>/icons/ico/synchroManuel.gif" hspace="5" title="<fl:getMessage code="A3081" alt="Synchro Manuelle"/>"></a></td> <td width="5%"><a href="javascript:var win=window.open('<fl:webapp/>/cleanUserStart.fl', 'synch', 'width=400,height=300');"><img src="<fl:webapp/>/icons/ico/synchroCleanContact.gif" hspace="5" title="<fl:getMessage code="A3083" alt="Synchro Nettoyage Contacts"/>"></a></td> <% } table_nbcols=table_nbcols+4; %> <td width="5%"><a href="javascript:var win = window.open('<fl:webapp/>/listLicencesUsed.fl', 'licWin', 'status=0,toolbar=0,width=350,height=300');"><img src="<fl:webapp/>/icons/ico/listLics.gif" hspace="5" title="<fl:getMessage code="L6457" alt="Etat des licences"/>"></a></td> <%-- Change actor status. --%> <td width="5%"><a href="javascript:doChangeActorStatus();"><img src="<fl:webapp/>/icons/infobar/<%= actorUrl %>" hspace="5" id="actorstatus" actorstatus="<%= actorStatusID %>" title="<%= actorTitle %>"></a></td> <td nowrap class="infobar_table_text"><a style="text-decoration: underline; color: black" href="<fl:webapp/>/read_userprofile.fl"><%= Utils.formatToWeb(strActDisp_info, false) %></a></td> <td width="5%" rowspan="1" style="text-align: right;"><a href="<fl:webapp/>/logout.fl" onclick="doLogout();"><img src="<fl:webapp/>/icons/infobar/logout.gif" hspace="5" border="0" title="<fl:getMessage code="L2083" alt="Logout"/>"></a></td> <%-- Readiness handling for the Genesys CTI. Set the actor as ready/non ready in Genesys CTI should change the actor status, and vice versa. --%> <% if (activateCTI && cti !=null && "genesys".equalsIgnoreCase(cti.getProviderId()) && "1".equals((String)session.getAttribute(CTIHelper.SESSION_ATTRIBUTE_GENESYSLOGGED))) { table_nbcols=table_nbcols+1; %> <td width="10%">en</td> <% } %> </tr> <tr valign="top"> <td colspan="<%= table_nbcols %>" nowrap align="right"><%= sdf.format(new Date()) %> </td> </tr> </table> </div> <div style="font-family: Arial, Verdana, sans-serif;font-size: 10px;margin-top: 54px; margin-right: 15px; text-align:right; font-weight:bold; font-style: italic;">Spring 2013</div> <% if (isSA) { %> </body></html> <% } %>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de