Edit C:\Users\Administrator\Desktop\Back\galaxie - Copy\cti\select.jsp
<% /****************************************************************************** * Copyright (c) 2000-2005 e-Deal * * e-Deal S.A. * 55 rue Brillat Savarin * 75013 Paris * France * * T: +33 (0)1 53 80 80 30 * 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 language="java" contentType="text/html; charset=UTF-8"%> <%@ page import="com.edeal.frontline.services.FlServiceException, com.edeal.frontline.navigation.FlRequest, com.edeal.frontline.*, java.util.*, com.edeal.frontline.services.cti.*" %> <%@ page import="com.edeal.frontline.FlContext" %> <%@taglib uri="http://www.e-deal.com/taglib/fl" prefix="fl" %><% final org.apache.commons.logging.Log logger = org.apache.commons.logging.LogFactory.getLog(getClass()); FlRequest flRequest = new FlRequest(request); FlContext context = flRequest.getContext(); String formIndex = flRequest.getParameter("formIndex"); try { Integer.parseInt(formIndex); } catch (NumberFormatException nfe) { formIndex = "0"; } formIndex = formIndex != null && !"".equals(formIndex) ? formIndex : "0"; String pPhone = Utils.getRequestParameter(context, request, "phone"); String pRef = Utils.getRequestParameter(context, request, "ref"); // ISICOM-applet. //String pRef = flRequest.getRequestParameterOrAttribute("ref"); String pCallerPhone = flRequest.getRequestParameterOrAttribute("pCallerPhone"); pCallerPhone = (pCallerPhone != null ? pCallerPhone : ""); String callType = flRequest.getRequestParameterOrAttribute("callType"); String id = flRequest.getRequestParameterOrAttribute("id"); String isconsult = flRequest.getRequestParameterOrAttribute("isconsult"); // End of ISICOM-applet. // Is Consult / Transfer ? String pConsult = Utils.getRequestParameter(context, request, "consult"); boolean isConsult = false; isConsult = "true".equalsIgnoreCase(pConsult); // Reason of the transfer ? String reason = null; if (isConsult) { reason = Utils.getRequestParameter(context, request, "reason"); } // Ajout pour eviter un bug javascript //if (pRef==null || "".equals(pRef)){ // pRef="0"; //} String actorAjaxUrl = "/select_actor_list_cti.fl?ref="+ pRef + "&consult=" + isConsult; // Filter : show the alternate button only if CTI is Genesys or CCA String strActID = (String)session.getAttribute("actorID"); ActorBean actor = null; boolean hasCTIRole = false; try{ actor = new ActorBean(strActID, context); hasCTIRole = actor.hasRole("CTI"); } catch(Exception e){} boolean activateCTI = false; String pActivateCTI = context.getContextParameter("ActivateCTI"); if (pActivateCTI != null && "true".equalsIgnoreCase(pActivateCTI) && hasCTIRole) { activateCTI = true ; } CTIServiceClient cti; try { cti = (CTIServiceClient)context.getServiceManager().getServiceClient(session, "CTI"); } catch (FlServiceException e) { cti = null; } boolean isAlgoriaCTI = false; boolean isCCACTI = false; String idService = null; if (activateCTI) { try { if (cti != null) { idService = cti.getProviderId(); if ("algoria".equalsIgnoreCase(idService)){ isAlgoriaCTI = true; } else if ("cca".equalsIgnoreCase(idService)){ isCCACTI = true; } } } catch(Exception e) { logger.error("CTI Service Error : ", e); activateCTI = false; } } // End of filter %> <html> <head> <title>e-DEAL CRM</title> <link rel="stylesheet" type="text/css" href="<fl:link url="/common/select/select_css.jsp"/>"> <link rel="stylesheet" type="text/css" href="<fl:link url="/css/common_css.jsp"/>"> <link rel="stylesheet" href="<fl:webapp/>/css/master_css.jsp" type="text/css"> <link href="<fl:webapp/>/css/smalltabs_css.jsp" rel="stylesheet" type="text/css"> <script type="text/javascript" src="<fl:link url="/js/edeal/libraries/jquery/jquery.js"/>"></script> <script type="text/javascript" src="<fl:link url="/js/ajax/ajax.js"/>"></script> <script language="javascript"> var pRef='<%= (pRef==null)?"":pRef %>'; // For CCA function doCall2ndParty(pRef, pPhone) { //alert("Entering in select.jsp#doCall2ndParty(pRef=" + pRef + ", pPhone=" + pPhone); window.top.opener.secondCall(pPhone); window.top.opener.opener.doCall(pPhone); window.close(); } // ISICOM-applet function selectActorForTransfer(pRef, actID, actPhone, isGroup) { actPhone = doEpurePhone2(actPhone); try { <% if (callType != null) {%> // Action qui met à jour le sollicité de la sollicitation par rapport au transfert. // Devrait être déplacé si l'action de transfert s'effectue avec succès. var url = '<fl:webapp/>/update_sol_actor.fl?actID='+actID+'&solID=<%= id %>'; //alert('url : '+url); doAjax(url); //var isGroup = 'true'; //alert('isgroup : '+isGroup); //alert('pCallerPhone : <%= pCallerPhone %>'); doTransferForm(pRef, actPhone, '<%= id %>', '<%= callType %>', isGroup, '<%= pCallerPhone %>'); <% } else {%> if (isGroup == 'true') { //alert('doDirectTransfer'); doDirectTransfer(pRef,actPhone); } else { //alert('doTransfer'); doTransfer(pRef, actPhone); } <% } %> } catch (error) { try { window.opener.opener.doTransfer(pRef, actPhone); } catch (error2) { } } // DGE mettre un timer pour laisser le temps aux fonctions Ajax de s'exécuter. //window.opener.close(); //window.close(); } // ****************************************************************** // ********************** 2 phasis transfer ************************* // ****************************************************************** // function initiateTransfer(pRef, actID, actPhone) { // actPhone = doEpurePhone2(actPhone); // try { // doInitiateTransfer(pRef, actID, actPhone); // } catch (error) { // try { // window.opener.opener.doInitiateTransfer(pRef, actPhone); // } catch (error2) { // } // } // } //function formTransfer(pRef, actID, actPhone) { // actPhone = doEpurePhone2(actPhone); // try { // // Action qui met à jour le sollicité de la sollicitation par rapport au transfert. // var url = '<fl:webapp/>/update_sol_actor.fl?actID='+actID+'&solID=<%= id %>'; // //alert('url : '+url); // doAjax(url); // doFormTransfer(pRef, actID, actPhone, '<%= id %>', '<%= callType %>'); // } catch (error) { // try { // window.opener.opener.doFormTransfer(pRef, actPhone); // } catch (error2) { // } // } //} // function retrieveTransfer(pRef, actID, actPhone) { // actPhone = doEpurePhone2(actPhone); // try { // doRetrieve(pRef, actID, actPhone); // } catch (error) { // try { // window.opener.opener.doRetrieveTransfer(pRef, actPhone); // } catch (error2) { // } // } // } function doTransfer(pRef, pPhone){ //alert("cti/select.jsp#doTransfer(pRef=" + pRef + ", pPhone=" + pPhone + ") will try to do window.top.opener.opener.doTransfer(pRef, pPhone)"); window.top.opener.opener.doTransfer(pRef, pPhone); } function doInitiateTransfer(pPhone, pAttachedData, pReason) { window.top.opener.opener.doInitiateTransfer(pPhone, pAttachedData, pReason); } function doCompleteTransfer(pPhone, pReason) { window.top.opener.opener.doCompleteTransfer(pPhone, pReason); } function doReconnectTransfer(pReason) { window.top.opener.opener.doReconnectTransfer(pReason); } function doAlternate() { window.top.opener.opener.doAlternate(); } <%-- Get the list of actors that we can transfer the call to. --%> function getActors() { var strURL = _grid__Actor_js_.getAjaxUrl(); var params={} ; params["ref"] = pRef; params["cut"] = '2'; //params["gridName"] = "Actor"; _grid__Actor_js_.callAjaxForHtml(strURL,params,false); } </script> </head> <%-- <body style="overflow: auto;"> --%> <body style="overflow: auto;" onload="getActors()"> <div id="object_css" style="top: 0px; left: 0px; bottom: 0px; height: 100%;"> <fl:bigTabs objectTitle="<%=Utils.getMessage(session, \"L7005\", false, true, \"Consulter acteur\")%>"> <table class="container" style="width: 100%; margin-top: 10px;"> <% if (isConsult) {%> <tr> <td class="ligne_separation"> </td> </tr> <tr> <td> <span class="button"> <a href="javascript:doCompleteTransfer('','')" ><fl:getMessage code="L6431" alt="Transférer"/></a><!-- onclick="setTimeout('window.top.close();try { window.top.opener.top.close(); } catch (e) {}',500);" --> </span> <img src="icons/nav/spacer.gif" width="12" height="12"> <span class="button"> <a href="javascript:doReconnectTransfer()"><fl:getMessage code="L7003" alt="Reprendre appel"/></a> </span> <%-- Show the alternate button only if CTI is Genesys or CCA. --%> <% if (isAlgoriaCTI || isCCACTI) { %> <img src="icons/nav/spacer.gif" width="12" height="12"> <span class="button"> <a href="javascript:doAlternate()"><fl:getMessage code="L7004" alt="Alterner"/></a> </span> <% } %> <%-- Show the alternate button only if CTI is Genesys or CCA. --%> </td> </tr> <tr> <td> <img src="icons/nav/spacer.gif" width="12" height="12"> </td> </tr> </table> <% } %> <!-- show actors; using grids --> <fl:smallTabs name="CTIActors"> <fl:sTab hideLink="true" id="cti_actors" title="<%= Utils.getMessage(session, \"L607C\", false, true, \"Acteurs\") %>"> <div> <fl:grid name="Actor" ajaxUrl="<%= actorAjaxUrl %>"></fl:grid> </div> </fl:sTab> </fl:smallTabs> <table class="container" style="width: 100%; margin-top: 5px;"> <tr> <td colspan="2" style="text-align: center;"> <a href="javascript:window.close()"><img src="<fl:webapp/>/icons/ico/fermer_red_long.gif"></a> </td> </tr> </table> </fl:bigTabs> </div> </body> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de