Edit C:\Users\Administrator\Desktop\Back\Livraison EVQG22\siteweb\product\product.jsp
<% /****************************************************************************** * Copyright (c) 2000-2009 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 session="true" %> <%@ page import="com.edeal.frontline.navigation.FlRequest" %> <%@ page import="com.edeal.frontline.FlContext" %> <%@ page import="com.edeal.frontline.*,java.util.*"%> <%@ page import="com.edeal.frontline.custom.VisitorBeanExtension" %> <%@taglib uri="http://www.e-deal.com/taglib/fl" prefix="fl" %> <jsp:useBean class="com.edeal.frontline.ProductBean" id="Product" scope="request"/> <% final org.apache.commons.logging.Log logger = org.apache.commons.logging.LogFactory.getLog(getClass()); FlRequest flRequest = new FlRequest(request); FlContext context = flRequest.getContext(); String url = "/siteweb/product"; String color = "#000000"; String familyActID = null; try { String[] fields = {"PrfID", "PrfColor:RefTe2", "PrfActID"}; String[][] query = {{"PrfID = " + Utils.formatToSQL(context, Product.getPrdFamilyID())}}; Vector list = ProductFamilyBean.listSummary(session, fields, query); if (list != null && list.size() > 0) { String te2 = (String)((Hashtable)list.elementAt(0)).get("PrfColor:RefTe2"); familyActID = (String)((Hashtable)list.elementAt(0)).get("PrfActID"); color = te2 != null ? te2 : color; } } catch (FieldNotInitializedException fnie) { } String actID = null; try { actID = Product.getPrdActID(); } catch (FieldNotInitializedException fnie) { actID = familyActID; } // **** get nb of visits and it reached the trigger limit VisitorBean visitor = null; try { visitor = new VisitorBean(VisitorBean.retrieveVisitor(context,request,response)); } catch (Exception e) { logger.error("retrieve visitor ex",e); } String visId=visitor.getID(); boolean doTriggerForVisit=VisitorBeanExtension.doTriggerNbOfVisits(flRequest); if (VisitorBeanExtension.isSilhouette(visitor)) { try { visitor.getMail(); doTriggerForVisit=false; } catch (Exception e) { } } else { doTriggerForVisit=false; } String fAlreadyTriggered=(String)session.getAttribute("triggered"); logger.debug("end dotrigger:"+doTriggerForVisit+" fAlreadyTriggered"+fAlreadyTriggered); if (doTriggerForVisit) { session.setAttribute("triggered","true"); } if (fAlreadyTriggered!=null) { doTriggerForVisit=false; } %> <html> <head> <title><fl:getProperty name="Product" property="PrdName" alt=""/></title> <style type="text/css"> body { margin: 0px 0px 20px 0px; padding: 0px; font-family: Verdana, Arial, sans-serif; font-size: 100%; word-spacing: normal; text-align: center; } .prdname { color: <%= color %>; font-size: x-large; font-family: Verdana; font-weight: bolder } .family { color: <%= color %>; font-size: x-large; font-family: Verdana; font-weight: bolder; border-bottom-color:<%= color %>; border-bottom-style:solid; border-bottom-width: medium } .subtitle { color: #999999; font-size: large; font-family: Verdana; font-weight: bold; font-variant: small-caps } .data { font-family: Times; padding-left:10px; text-align: justify } .contact { font-family: Times; border-color: #000000; border-style: solid; border-width: thin } </style> <script language="javascript"> function viewProductTrack(url) { window.open(url, 'Product', 'location=no,menubar=no,resizable=yes,status=no,scrollbars=yes,toolbar=no,width=1024,height=600'); } function getEmailPopUp(silId) { window.open('<fl:webapp/>/web_getsilhouettemail.fl?id='+encodeURIComponent(silId),'emailpopup','location=no,menubar=no,resizable=no,status=no,scrollbars=no,toolbar=no,width=400,height=310'); } function bodyOnLoad() { <% if (doTriggerForVisit) { %> getEmailPopUp('<%= visId%>'); <% } %> } </script> </head> <body onload="bodyOnLoad()"> <fl:appetenceComputeForVisitor/> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr valign="top"> <td width="100%"><img src="<fl:webapp/><%= url %>/icons/header.jpg" border="0" width="100%"></td> </tr> <tr valign="top"> <td width="100%" align="center"> <table width="75%" cellpadding="3" cellspacing="3" border="0" align="center"> <tr valign="top"> <td colspan="2" class="family"><fl:getProperty name="Product" property="PrdFamilyID" bean="true" alt=" "/></td> </tr> <tr valign="top"> <td colspan="2" class="prdname"><fl:getProperty name="Product" property="PrdName" alt=" "/></td> </tr> <tr valign="top"> <td width="50%"> <table width="100%"> <tr valign="top"> <td class="subtitle"><fl:getMessage code="F2045" alt="Descriptif collaborateur"/></td> </tr> <tr valign="top"> <td class="data"><fl:getProperty name="Product" property="PrdProdCard" alt=" " edit="false"/></td> </tr> </table> <table width="100%"> <tr valign="top"> <td class="subtitle"><fl:getMessage code="F2046" alt="Points forts"/></td> </tr> <tr valign="top"> <td class="data"><fl:getProperty name="Product" property="PrdStrength" alt=" " edit="false"/></td> </tr> </table> </td> <td width="50%"> <table width="100%"> <tr valign="top"> <td class="subtitle"><fl:getMessage code="F2047" alt="Points Faibles"/></td> </tr> <tr valign="top"> <td class="data"><fl:getProperty name="Product" property="PrdWeakness" alt=" " edit="false"/></td> </tr> </table> <p></p> <% try { String picID = Product.getPrdPicID(); %> <center><a href="<fl:webapp/>/download?id=<%= picID %>" target="_balnk"><img src="<fl:webapp/>/download?id=<%= picID %>" border="0" style="height: 200px" align="center"></a></center> <p></p> <% } catch (FieldNotInitializedException fnie) { } %> <% String[] actFields = {"ActFstName", "ActName", "ActMail", "ActMobile", "ActFax"}; String[][] actQuery = {{"ActID = " + Utils.formatToSQL(context, actID)}}; Vector actList = ActorBean.listSummary(context, actFields, actQuery); if (actList != null && actList.size() > 0) { Hashtable row = (Hashtable)actList.elementAt(0); String actName = (row.get("ActFstName") != null ? (String)row.get("ActFstName") + " " : "") + (row.get("ActName") != null ? (String)row.get("ActName") : ""); String actPhone = (String)row.get("ActMobile"); String actFax = (String)row.get("ActFax"); String actMail = (String)row.get("ActMail"); %> <table width="100%" class="contact" style="padding-left: 10px"> <tr valign="top"> <td class="subtitle">> <fl:getMessage code="L61F9" alt="Contact"/></td> </tr> <tr valign="top"> <td class="data"> <span style="font-weight: bolder"><%= Utils.formatToWeb(context.getLicenceManager().getLicence().getCorpName(), false) %></span><br> <span style="font-weight: bolder"><%= Utils.formatToWeb(actName, false) %></span><br> <fl:getMessage code="F0049" alt="Tél."/> : <%= Utils.formatToWeb(actPhone, false) %><br> <fl:getMessage code="F2013" alt="Fax"/> : <%= Utils.formatToWeb(actFax, false) %><br> <fl:getMessage code="F201E" alt="e-mail"/> : <a href="mailto:<%= Utils.formatToWeb(actMail, false) %>"><%= Utils.formatToWeb(actMail, true) %></a> </td> </tr> </table> <% } %> </td> </tr> <tr valign="top"> <td colspan="2"> </td> </tr> <% String label = Utils.getMessage(session, "L62EB", "Fiche") + " "; %> <tr valign="top"> <td colspan="2" style="font-size: x-large;font-family: Arial;font-weight: bolder; border-bottom-color: #000000;border-bottom-style: solid;border-bottom-width: medium;text-align: right"><fl:getProperty name="Product" property="PrdCode" alt=" " preText="<%= label %>"/></td> </tr> <tr valign="top"> <td colspan="2"><fl:getMessage code="L62EC" alt="Edité le"/> <fl:getProperty name="Product" property="PrdUpd" alt=" " format="date"/></td> </tr> </table> </td> </tr> <tr valign="top"> <td width="100%"><img src="<fl:webapp/><%= url %>/icons/footer.jpg" border="0" width="100%"></td> </tr> </table> </body> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de