Edit C:\galaxie\Back\galaxie\cti\C3T\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"); String pCallerPhone = flRequest.getRequestParameterOrAttribute("pCallerPhone"); pCallerPhone = (pCallerPhone != null ? pCallerPhone : ""); String callType = flRequest.getRequestParameterOrAttribute("callType"); String id = flRequest.getRequestParameterOrAttribute("id"); String actorAjaxUrl = "/select_actor_list_C3T_cti.fl?ref="+ pRef; 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 isC3TCTI = false; String idService = null; if (activateCTI) { try { if (cti != null) { idService = cti.getProviderId(); if ("C3T".equalsIgnoreCase(idService)){ isC3TCTI = true; } } } catch(Exception e) { logger.error("CTI Service Error : ", e); activateCTI = false; } } %> <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 %>'; function doTransfer(pRef, pPhone){ window.top.opener.opener.doTransfer(pRef, pPhone); } <%-- 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;"> <!-- 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