Edit C:\Users\Administrator\Desktop\Back\Livraison EVQG22\siteweb\product\index.jsp
<%@page import="com.edeal.frontline.custom.VisitorBeanExtension"%><% /****************************************************************************** * Copyright (c) 2000-2004 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.custom.VisitorBeanExtension" %> <%@ page import="com.edeal.frontline.*,java.util.*"%> <%@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(); DataDictionary dico = context.getDataDictionary(); String dbVendor = context.getContextParameter("DatabaseVendor"); boolean isDB2 = "IBM DB2".equalsIgnoreCase(dbVendor); String[] fields = {"PrfID", "PrfTitle", "PrfDesc"}; String[] orderBy = {"PrfTitle"}; String query = "SELECT PrfID, PrfTitle, PrfDesc FROM ProductFamily ORDER BY PrfTitle"; Vector list = new Vector(); if (isDB2) { list = ProductFamilyBean.listSQL(context, fields, query); } else { list = ProductFamilyBean.listSummary(context, fields, orderBy); } String prfID = flRequest.getRequestParameterOrAttribute("PrfID"); String marque = "Voyages +"; // **** 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>Prestations et services de <%= marque%></title> <meta http-equiv="Content-Language" content="fr"> <link rel="stylesheet" href="<fl:webapp/>/siteweb/product/style.css" type="text/css"> <style type="text/css"> body * { line-height: 150%; } .header { font-family= Arial; color: #ffffff; text-align: left; font-size= medium; background-image: url("<fl:webapp/>/siteweb/product/icons/bleubarre.gif") } .domain { font-family= Verdana; font-size= x-small; font-weight: bold; color=#000080 } .text { font-family= Verdana; font-size= x-small; } .menu { font-family= Arial; font-size= xx-small; } .menubig { font-family= Arial; font-size= x-small; } .title { background-color: #ffcc66; font-family= Verdana; font-size= x-small; font-weight: bold; } .comment { font-family= Verdana; font-size= xx-small; } body { background-color: #ffffff; font-family: Verdana; line-height: 150%; } hr { color:#000080; height:2px } A{ text-decoration:none; border: none; } img { border: none; } </style> <script language="javascript"> <% if (prfID != null && !"".equals(prfID)) { %> function viewProduct(id) { window.open('<fl:webapp/>/web_product.fl?id=' + encodeURIComponent(id), 'Product' + id, 'location=no,menubar=no,resizable=yes,status=no,scrollbars=yes,toolbar=no,width=1024,height=600'); } <% } %> 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 leftmargin="0" topmargin="0" style="" onload="bodyOnLoad()"> <div id="container"> <div class="container-decorator1"> <div class="container-decorator2"> <div id="banner-img"> <div class="banner-img-decorator1"> <div class="banner-img-decorator2"> <div class="img-link"> <a href="<fl:webapp/>/acceuil.fl"></a> </div> </div> </div> </div> <div id="banner"> <div class="banner-decorator1"> <div class="banner-decorator2"> <h1><a href="<fl:webapp/>/acceuil.fl"><%= marque%></a> </h1> <h2>Accompagner l'entreprise, chaque jour.</h2> </div> </div> </div> <div id="left"> <div class="left-decorator1"> <div class="left-decorator2"> <div class="sidebar"> <div class="box-decorator1"><div class="box-decorator2"><div class="box-decorator3"> <div class="decorator1"><div class="decorator2"> <h2>Nos produits</h2> </div></div> <div class="boxcontent-decorator1"><div class="boxcontent-decorator2"><div class="boxcontent-decorator3"> <ul> <% if (list != null && list.size() > 0) { for (int i = 0; i < list.size(); i++) { Hashtable row = (Hashtable)list.elementAt(i); String id = (String)row.get("PrfID"); String title = (String)row.get("PrfTitle"); %> <li><a href="<fl:webapp/>/acceuil.fl?PrfID=<%= id %>"><%= Utils.formatToWeb(title, false) %></a></li> <% } } %> </ul> </div></div></div> </div></div></div> </div> </div> </div> </div> <div id="right"> <div class="left-decorator1"> <div class="left-decorator2"> <div class="sidebar"> <p>E-DEAL<br> 55 Rue Brillat-Savarin<br> 75013 Paris<br> Tél. : 01 53 80 80 30<br> Fax : 01 73 01 69 77<br> <a href="mailto:support@e-deal.com">info@e-deal.com</a></p> <p> <img height="10" src="<fl:webapp/>/siteweb/product/icons/flechebleue.gif" width="13" border="0"> <a href="http://www.adobe.fr/products/acrobat/readstep.html" target="_blank">TELECHARGEZ ACROBAT READER<br> <img align="center" height="31" src="<fl:webapp/>/siteweb/product/icons/getacro.gif" width="88" border="0"> </a> </p> </div> <%-- *** to use the appetence message <fl:appetenceGetMessageForVisitor/> --%> <div> <% String blankUrl=context.getContextName()+"/siteweb/blank.gif"; %> <a href="javascript:viewProductTrack('<fl:webapp/>/iredirect?wop=SEJ_GO_SP')"> <img src="<fl:appetenceGetMessageForVisitor valueIfNull="<%=blankUrl %>"/>"> </a> </div> </div> </div> </div> </div> <div id="center"> <div class="center-decorator1"> <div class="center-decorator2"> <div class="content"> <% if (prfID == null || "".equals(prfID)) { // liste des domaines %> <fl:tracker name="Accueil Site Web"/> <a id="a1272650"></a> <h3><span><%= marque%> propose plus de 150 produits ou services différents répartis en 22 domaines de compétences.</span></h3> <div class="postText"> <div class="postText-decorator1"> <div class="postText-decorator2"> <p>Premier partenaire de l'entreprise commerciale, industrielle et de service par la globalité de son offre, <%= marque%> propose ses services répartis en 22 domaines de compétences. Cet éventail de prestations est mis à disposition de l'entreprise, pour l'accompagner dans son développement, chaque jour ...</p> </div> </div> </div> <%--<div class="postbottom"> <div class="postbottom-decorator1"> <div class="postbottom-decorator2"> <p class="posted"> </p> </div> </div> </div> --%> <hr> <% if (list != null && list.size() > 0) { for (int i = 0; i < list.size(); i++) { Hashtable row = (Hashtable)list.elementAt(i); String id = (String)row.get("PrfID"); String title = (String)row.get("PrfTitle"); String desc = (String)row.get("PrfDesc"); String dispDesc = ""; boolean allDesc = false; if (desc != null) { if (desc.length() <= 120) { dispDesc = desc; } else { String tmpStr = desc.substring(120, desc.length()); int index = tmpStr.indexOf(" "); if (index == -1) { dispDesc = desc; } else { dispDesc = desc.substring(0, 120 + index); } } allDesc = dispDesc.length() == desc.length(); } %> <h3><span><%= Utils.formatToWeb(title, false) %></span></h3> <div class="postText"> <div class="postText-decorator1"> <div class="postText-decorator2"> <p><%= Utils.formatToWeb(dispDesc, false) %><% if (!allDesc) { %>... <% } %> [<a href="<fl:webapp/>/web_accueil.fl?PrfID=<%= id %>">Suite, accès aux offres</A>]</p> </div> </div> </div> <% } } %> <br/> <br/> <br/> <br/> <% } else { // liste des produits pour le domaine String title = null; String desc = null; if (list != null && list.size() > 0) { for (int i = 0; i < list.size(); i++) { Hashtable row = (Hashtable)list.elementAt(i); String id = (String)row.get("PrfID"); if (prfID.equals(id)) { title = (String)row.get("PrfTitle"); desc = (String)row.get("PrfDesc"); } } } Date now = Utils.formatDateFromWeb(session, Utils.formatToWebDate(session, new Date(), true)); String[] prdFields = {"PrdID", "PrdName", "PrdPdfID"}; String[][] prdQuery = {{"PrdFamilyID = " + Utils.formatToSQL(context, prfID)}, {"PrdPubSince = null", "PrdPubSince <= " + Utils.formatToSQL(context, now)}, {"PrdPubTo = null", "PrdPubTo >= " + Utils.formatToSQL(context, now)}}; String[] prdOrderBy = {"PrdName"}; Vector prdList = ProductBean.listSummary(context, prdFields, prdQuery, prdOrderBy, true); %> <fl:tracker name="Famille produit" custom="<%= Utils.formatToWeb(title, false) %>"/> <h3><span><%= Utils.formatToWeb(title, false) %></span></h3> <div class="postText"> <div class="postText-decorator1"> <div class="postText-decorator2"> <p><%= Utils.formatToWeb(desc, false) %></p> </div></div></div> <hr> <% if (prdList != null && prdList.size() > 0) { %> <div class="postText"> <div class="postText-decorator1"> <div class="postText-decorator2"> <p >Les fiches descriptives des prestations proposées sont disponibles au format PDF, cliquez sur le lien pour y accéder.</p> <% for (int i = 0; i < prdList.size(); i++) { Hashtable row = (Hashtable)prdList.elementAt(i); String name = (String)row.get("PrdName"); String prdID = (String)row.get("PrdID"); String pdf = (String)row.get("PrdPdfID"); %> <p class="posted"><img src="<fl:webapp/>/siteweb/product/icons/puceligne.gif" border="0" height="8" width="8" alt="" style="border: 0px;"> <%-- <a href="<fl:webapp/>/download?id=<%= pdf %>" target="_blank"><%= Utils.formatToWeb(name, false) %></a></span><br> --%> <a href="javascript:viewProduct('<%= Utils.formatToJavascript(prdID) %>')"><%= Utils.formatToWeb(name, false) %></a></p> <% } %> <br/> <br/> <br/> <br/> <br/> <% }else{ %> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <% } } %> </div> </div> </div> </div> <div style="clear: both;"> </div> </div> </div> </div> </body> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de