Edit C:\galaxie\Back\galaxie\kbase\frontoffice\kb_faq.jsp
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <% /****************************************************************************** * 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 session="true"%> <%@ page import="com.edeal.frontline.navigation.FlRequest" %> <%@ page import="com.edeal.frontline.FlContext" %> <%@ page import="com.edeal.frontline.Utils" %> <%@ page import="com.edeal.frontline.FieldNotInitializedException" %> <%@ page import="java.util.Date" %> <%@ page import="java.util.Vector" %> <%@ page import="java.util.Hashtable" %> <%@ page import="java.util.LinkedHashMap" %> <%@ page import="java.util.Iterator" %> <%@ page import="java.util.Map" %> <%@ page import="java.util.Calendar" %> <%@ page import="com.edeal.frontline.DataDictionary" %> <%@ page import="com.edeal.frontline.FlLocale" %> <%@ page import="com.edeal.frontline.ActorBean" %> <%@ page import="com.edeal.frontline.grid.functions.FaqHeaderSyntaxActions" %> <%@taglib uri="http://www.e-deal.com/taglib/fl" prefix="fl" %> <jsp:useBean class="com.edeal.frontline.FAQBean" id="FAQ" 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(); DataDictionary dico = context.getDataDictionary(); String width = "750"; String height = flRequest.getRequestParameterOrAttribute("height"); String id = FAQ.getFaqID(); String title = ""; try{ title = FAQ.getFaqTitle(); }catch(FieldNotInitializedException e){ title = ""; } String content = ""; try{ content = FAQ.getFaqResponse(); }catch(FieldNotInitializedException e){ content = ""; } String fahID = FAQ.getFaqFahID(); Boolean deleteMode = Boolean.valueOf(flRequest.getRequestParameterOrAttribute("deleteMode")); String score = flRequest.getRequestParameterOrAttribute("score"); int nbComments = Integer.parseInt(flRequest.getRequestParameterOrAttribute("nbComments")); String tags = flRequest.getRequestParameterOrAttribute("tags"); String category = flRequest.getRequestParameterOrAttribute("category"); String subCategory = flRequest.getRequestParameterOrAttribute("subCategory"); String catID = flRequest.getRequestParameterOrAttribute("catID"); String subCatID = flRequest.getRequestParameterOrAttribute("catLev1"); String crtID = flRequest.getRequestParameterOrAttribute("crtID"); Vector<String> attachedFilesID = (Vector<String>)flRequest.getAttribute("attachedFilesID"); Vector<String> attachedFilesName = (Vector<String>)flRequest.getAttribute("attachedFilesName"); Vector<Vector> internalContacts = (Vector<Vector>)flRequest.getAttribute("internalContacts"); Vector<Vector> relatedFaqs = (Vector<Vector>)flRequest.getAttribute("relatedFaqsList"); String author = (String)flRequest.getRequestParameterOrAttribute("author"); String manager = (String)flRequest.getRequestParameterOrAttribute("manager"); String status = (String)flRequest.getRequestParameterOrAttribute("status"); String hasAttachment = (String)flRequest.getRequestParameterOrAttribute("hasAttachment"); String audiences = (String)flRequest.getRequestParameterOrAttribute("audiences"); %> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/checkFields.jsp"></script> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/utils.js"></script> <link rel="stylesheet" type="text/css" href="<fl:webapp/>/css/common_css.jsp"> <style type="text/css"> .button { border-style: solid; border-width: 1px; border-color: rgb(132, 166, 174); font-weight: bold; font-size: 11px; padding: 3px; } .popup-div { /*width: 800px;*/ } .popup-header { height : 25px; } .popup-title { float : left; font-family : Arial,Verdana,sans-serif; font-size : 12px; color : #000000; font-weight : bold; padding-left: 4px; padding-right: 4px; padding-top : 2px; vertical-align: middle; letter-spacing: 1px; } .popup-header .close-link { float : right; } .popup-body { height: 100%; margin-right:210px; } .popup-content { height: 99%; margin-top: 5px; margin-bottom: 5px; } </style> <script type="text/javascript" language="javascript"> function doClosePopUp(){ $.closePopupLayer('Faq_<%=id%>'); } function reload_page(params){ document.location.href = "<fl:webapp/>/knowledge_base.fl?CrtID=<%=crtID%>"+"&"+params; } </script> <table cellspacing="0" border="0"> <tr class="tooltip" height="10px"> <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="data_column, innerPopup" cellspacing="0" cellpadding="0" border="0" width="100%"> <tr> <td nowrap="nowrap"> <div class="popup-div"> <div class="popup-content"> <table cellspacing="0" cellpadding="0" border="0"> <tr style="height: 43px;"> <td><img width="10" height="10" src="<fl:webapp/>/icons/spacer.gif"></td> <td width="98%" valign="top" colspan="3"> <table cellpadding="0" class="container" id="BTabs"> <tr> <td style="text-align: right; width: 15px;"><img style="width: 15px; height: 43px;" src="<fl:webapp/>/icons/nav/principal_onglet/ong_blanc_pos_1.gif"></td> <td class="ongletblanc"> <fl:getMessage code="L1055" alt="FAQ"/> </td> <td class="actif-fin"></td> <td style="width: 90%; text-align: right; background: url("<fl:webapp/>/icons/nav/principal_onglet/fd_cell.gif") repeat scroll 0% 0% transparent;" class="tabRightSpace"></td> <td class="finTab"> </td> </tr> </table> </td> <td width="10"><img width="10" height="10" src="<fl:webapp/>/icons/spacer.gif"></td> </tr> <tr style="height: 100%;"> <td width="10"><img width="10" height="10" src="<fl:webapp/>/icons/spacer.gif"></td> <td width="15" background="<fl:webapp/>/icons/nav/principal_cadre/fd_cell_g.gif"><img width="15" height="42" src="<fl:webapp/>/icons/spacer.gif"></td> <td valign="top"> <table class="container" cellspacing="0" cellpadding="0" border="0"> <tr style="height: 100%;"> <td> <table class="container" cellpadding="0" style="width:<%=width %>px"> <tr class="fieldline"> <td colspan="3" class="titreFiche"> <div style="width: <%=width %>px;height:auto;overflow: hidden; text-align: left; white-space: normal;"><%=title %> <%=hasAttachment%> <%=status %> <a href="#" onclick="<%=(deleteMode)? "remove" : "add" %>Faq('<%=id %>');"><img border="0" style="vertical-align: middle;" src="<fl:webapp/>/icons/frontoffice/cart-<%=(deleteMode)? "delete" : "add" %>-icon.png"/></a></div> </td> </tr> <tr class="ligne_separation"><td></td></tr> <tr> <td colspan="3"> <%=!(Utils.isEmpty(category))? "<a href=\"#\" onclick=\"javascript:reload_page('catID="+catID+"');\">" + category : "" %> <%=!(Utils.isEmpty(subCategory))? "� </a><a href=\"#\" onclick=\"javascript:reload_page('catID=" + catID + "&subCatID="+subCatID+"');\">" + subCategory + "</a>": "" %> </td> </tr> <tr> <td class="dataLabel" colspan="3"> <%if(!Utils.isEmpty(audiences)){%><fl:getMessage code="L8086" alt="Public concerné"/> : <%=audiences %><%} %> </td> </tr> <tr> <td colspan="3"> <div style="width: <%=width %>px;height:auto;overflow: hidden; text-align: left; white-space: normal;"> <%=content %> <br/> </div> <table class="container"> <tr valign="top"> <td class="column2" style="vertical-align: top;"> <table class="data_column" cellpadding="0"> <tr> <td class="dataLabel" style="vertical-align: top"><div><label title="Contact(s) interne" for="IntActID">Contact(s) interne</label></div></td> <td class="dataValue"> <div style="width: 200px;height:auto; text-align: left; white-space: normal;"> <%if(internalContacts != null){ for(Vector internalContact : internalContacts){ String actID = (String)internalContact.get(0); //String actor = (internalContact.size()>1)? "<div class=\"bubbleInfo\" id=\"bubbleInfo_" + actID + "\" ed:fobname=\"Actor\" ed:fobobjid=\"" + actID + "\" ed:hasbubble=\"false\" onmouseover=\"javascript:getTooltip(this);\" onmouseout=\"javascript:hideTooltip(this);\" ed:hidebubble=\"false\"><a class=\"trigger_Actor\" href=\"" + flRequest.computeURL("/read_actor.fl") + "?id=" + actID + "\">"+(String)internalContact.get(1)+"</a></div>" : ""; String actor = (internalContact.size()>1)? Utils.getHrefLinkWithToolTip(actID, "Actor", flRequest.computeURL("/read_actor.fl") + "?id=" + actID, (String)internalContact.get(1)) : ""; String siteID = (internalContact.size()>2)?(String)internalContact.get(2) : ""; //String site = (internalContact.size()>3)? "(<div class=\"bubbleInfo\" id=\"bubbleInfo_" + siteID + "\" ed:fobname=\"Site\" ed:fobobjid=\"" + siteID + "\" ed:hasbubble=\"false\" onmouseover=\"javascript:getTooltip(this);\" onmouseout=\"javascript:hideTooltip(this);\" ed:hidebubble=\"false\"><a class=\"trigger_Site\" href=\"" + flRequest.computeURL("/read_site.fl") + "?id=" + siteID + "\">"+(String)internalContact.get(3)+"</a>)" : ""; String site = (internalContact.size()>3)? Utils.getHrefLinkWithToolTip(siteID, "Site", flRequest.computeURL("/read_site.fl") + "?id=" + actID, (String)internalContact.get(3)) : ""; %> <span><%=actor%> <%=site %></span><br/> <% } }%> </div> </td> </tr> <tr> <td class="dataLabel" id="FahCntctCorID_label" style="vertical-align: top"><fl:label field="FahCntctCorID"/></td> <td class="dataValue"> <div style="width: 200px;height:auto; text-align: left; white-space: normal;"> <% String correspondents = ""; correspondents = FaqHeaderSyntaxActions.getFaqCorrespondentHtml(session,context,fahID); %> <%=correspondents%> </div> </td> </tr> </table> </td> <td class="separation"><div class="separation"></div></td> <td class="column2" style="vertical-align: top;"> <table class="data_column"> <tr> <td class="dataLabel" style="vertical-align: top"><div><label><fl:getMessage code="F70AD" alt="Fiche(s) connexe(s)"/></label></div></td> <td class="dataValue"> <div style="width: 200px;height:auto;overflow: hidden; text-align: left; white-space: normal;"> <% if (relatedFaqs != null) { for (Vector<Hashtable> relatedFaq : relatedFaqs) { Hashtable<String, String> relatedFAQData = relatedFaq.get(0); String relatedFaqID = relatedFAQData.get("FaqID"); String relatedFaqTitle = relatedFAQData.get("FaqTitle"); %> <a title="<%=relatedFaqTitle %>" href="#" onclick="javascript:$.closePopupLayer('Faq_<%=id%>');showFaq('<%=relatedFaqID %>')"><%=relatedFaqTitle %></a><br/> <%} }%> </div> </td> </tr> <tr> <td class="dataLabel" style="vertical-align: top"><fl:label field="FahAttID"/></td> <td class="dataValue"> <div style="width: 220px;height:auto;overflow: hidden; text-align: left; white-space: normal;"> <%if(attachedFilesID != null){ int i=0; for(String attID : attachedFilesID){ String fileName = ""; if(attachedFilesName.size()>i){ fileName = attachedFilesName.get(i); }else{ fileName = Utils.getMessage(context, "fr_FR", "L8096", "Fichier sans titre"); } i++; %> <a href="<fl:webapp/>/download?id=<%=attID %>" target="_blank"><%=fileName %></a><br> <% } }%> </div> </td> </tr> </table> </td> </tr> <tr><td><br/><br/></td></tr> </table> <table> <tr valign="top"> <td> <table> <tr> <td><div class="score_<%=id %>" style="color: #777;font-size: 11px;"><%=score %><%if(!Utils.isEmpty(score)){%><fl:getMessage code="L70F0" alt="avis"/> <%}%></div></td> <td><%if(!Utils.isEmpty(score)){%>|<%}%> <span style="color: #777;font-size: 11px;">Votre note</span> </td> <td><div id="rating" style="color: #777;font-size: 11px;"></div></td> <td> | <a name="comment_link" href="#comment_link" onclick="javascript:showComments()"><span id="nb_comments" style="font-size: 11px;"><fl:getMessage code="L64B4" alt="Commentaires"/>(<%=nbComments%>)</span></a></td> </tr> </table> </td> </tr> <tr> <td><div style="color: #777;font-size: 11px;width: 720px;height:auto;overflow: hidden; text-align: left; white-space: normal;"><%if(!Utils.isEmpty(tags)){ %><fl:getMessage code="F70AC" alt="Mot(s) clé(s)"/>: <%=tags%><%} %></div></td> </tr> </table> <div style="text-align: center; position: relative;" class="footerText"> <hr /><fl:getMessage code="F105D" alt="Auteur"/> <%=author %> | <fl:getMessage code="F6007" alt="Responsable"/> <%=manager %> </div> <div id="comments" style="display:none;"> <div id="comments_data"> <br/> <div style="width: <%=width %>px;height:auto;overflow: hidden; text-align: left; white-space: normal;"> <fl:grid name="FAQCMNTS" ajaxUrl="<%=\"/comments_list_ajax_embedded.fl?FahID=\"+fahID%>"></fl:grid> </div> </div> <fieldset> <legend align=top><fl:getMessage code="L7110" alt="Votre commentaire"/></legend> <table> <tr> <td id="content_cell"> <input type="hidden" id="FahID" name="FahID" value="<%=fahID %>"/> <table class="container" cellpadding="0" style="width:720px"> <tr class="fieldline"> <td class="labelTitreFiche"> <div><label title="Titre" for="CmtTitle" class="titreFiche">Titre</label></div> </td> </tr> <tr class="fieldline"> <td> <div class="input text"><input type="text" maxlength="255" value="" name="CmtTitle" id="CmtTitle" class="input text"><span style="display: none" class="mandatory_alert" id="CmtTitle_msg">!</span></div> </td> </tr> <tr class="fieldline"> <td><div><label title="Contenu" for="CmtContent" class="titreFiche">Contenu</label></div></td> </tr> <tr class="fieldline"> <td class="fieldTitreFiche"><textarea name="CmtContent" id="CmtContent" class="input textarea"></textarea><span style="display: none" class="mandatory_alert" id="CmtContent_msg">!</span></td> </tr> <tr><td><br/></td></tr> <tr> <td align="center"> <a title="Valider" href="javascript:addComment('<%=id %>')"><img src="<fl:webapp/>/icons/ico/valid_green_long.gif"/></a> <a title="<fl:getMessage code="A3035" alt="Fermer"/>" href="javascript:doClosePopUp();"><img src="<fl:webapp/>/icons/ico/fermer_red_long.gif" /></a> </td> </tr> </table> </td> </tr> </table> </fieldset> </div> </td> </tr> </table> </td> </tr> </table> </td> <td width="15" background="<fl:webapp/>/icons/nav/principal_cadre/fd_cell_d.gif"><img width="15" height="42" src="<fl:webapp/>/icons/spacer.gif"></td> <td width="10"><img width="10" height="10" src="<fl:webapp/>/icons/spacer.gif"></td> </tr> <tr style="height: 15px;"> <td width="10"><img width="10" height="10" src="<fl:webapp/>/icons/spacer.gif"></td> <td width="15"><img width="15" height="15" src="<fl:webapp/>/icons/nav/principal_cadre/cell_bas_g.gif"></td> <td width="98%" background="<fl:webapp/>/icons/nav/principal_cadre/fd_cell_bas_m.gif"><img width="15" height="15" src="<fl:webapp/>/icons/spacer.gif"></td> <td width="15"><img width="15" height="15" src="<fl:webapp/>/icons/nav/principal_cadre/cell_bas_d.gif"></td> <td width="10"><img width="10" height="10" src="<fl:webapp/>/icons/spacer.gif"></td> </tr> <tr style="height: 20px;"> <td colspan="5" style="text-align: center;"> <div id="popup_closer"><a title="<fl:getMessage code="A3035" alt="Fermer"/>" href="javascript:doClosePopUp();"><img src="<fl:webapp/>/icons/ico/fermer_red_long.gif" /></a></div> </td> </tr> </table> </div> </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 class="corner" id="bottomleft" style="background-image:url('<fl:webapp/>/icons/tooltip/bubble-6.png')" ></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>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de