1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547
| <%@ page language="java"
extends="org.jboss.portal.core.servlet.jsp.PortalJsp"
pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="/WEB-INF/tld/site.tld" prefix="site"%>
<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet"%>
<%@page import="javax.faces.context.FacesContext"%>
<%@page import="javax.portlet.RenderRequest"%>
<%@page import="javax.portlet.PortletSession"%>
<portlet:defineObjects />
<f:view>
<f:loadBundle basename="i18n.Panier" var="res" />
<f:loadBundle basename="i18n.MessageResources" var="msg" />
<f:loadBundle basename="app.Regex" var="exp" />
<script type="text/javascript" src="/site-site-web/js/panier.js"></script>
<script type="text/javascript" src="/site-site-web/js/utils.js"></script>
<%-- CHEMIN DE NAVIGATION --%>
<h:form id="panierForm">
<h:inputHidden value="#{panierData.etapeNavigation}" />
<%@include file="/jsp/cheminNavigation/cheminNavigation.jsp"%>
<h:messages styleClass="errorMessage" showSummary="false"
layout="table" showDetail="true" style="align: left;" />
<h:outputText escape="false" value="<H2>#{msg.LIB_PAN_TITLE}</H2>" />
<TABLE border="0" bgcolor="#eaf0ff" CELLSPACING="0" CELLPADDING="0"
width="611" class="process">
<tr>
<td><%-- COMMANDE DIRECTE --%> <%-- <h:outputText value="#{res.LIB_COMMANDE_DIRECTE}"
styleClass="titrePanier" /> <BR>
<h:panelGroup id="info_entete_commande_directe"
rendered="#{panierData.commandeDirecte}">
<f:verbatim>
<TABLE width="500" border="0" cellpadding="0" cellspacing="2"
class="process">
<h:outputText value="#{res.infoEnteteCommandeDirecte1}" styleClass="titre1"
escape="false" />
<h:outputText value="#{res.infoEnteteCommandeDirecte2}" styleClass="txt1b"
escape="false" />
</TABLE>
</f:verbatim>
</h:panelGroup>
--%>
<table width="611px" align="center" cellpadding="0" cellspacing="0"
class="bordsCommandeDirecte">
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="20" bgcolor="#eaf0ff">
<div align="center"><h:outputText
value="#{res.indicationCommandeDirecte}" escape="false" styleClass="txt1b" /></div>
</td>
</tr>
<tr>
<td bgcolor="#96a2ec">
<table width="300" border=0 align=CENTER cellpadding=0
cellspacing=0>
<tr valign="bottom">
<td class="txt2">
<center><font color="#FFFFFF"><b><h:outputText
value="#{res.libRef}" binding="#{panierValidator.refOutput}"
styleClass="txt2" escape="false" /></b></font></center>
</td>
<td class="txt2">
<center><font color="#FFFFFF"><b><h:outputText
value="#{res.libTailleCode}"
binding="#{panierValidator.tailleOutput}" styleClass="txt2"
escape="false" /></b></font></center>
</td>
<td class="txt2">
<center><font color="#FFFFFF"><b><h:outputText
value="#{res.libQuantite}"
binding="#{panierValidator.quantiteOutput}" styleClass="txt2"
escape="false" /></b></font></center>
</td>
<td> </td>
</tr>
<tr>
<td height="30">
<center><h:inputText value="#{panierData.dto.ref}"
id="refInput" binding="#{panierValidator.refInput}"
maxlength="7" onkeyup="filtreRef(true,event);"
onchange="filtreRef(false);"
styleClass="background-color:white;" size="25">
<site:validateRequired
requiredErrorMsg="#{res.ERR_REFERENCE_REQUIRED}" />
<site:validateRegex expression="#{exp.PTN_REFERENCE}"
notValidErrorMsg="#{res.ERR_REFERENCE_NOTVALID}" />
</h:inputText></center>
</td>
<td height="30">
<center><h:inputText value="#{panierData.dto.taille}"
id="tailleInput" binding="#{panierValidator.tailleInput}"
maxlength="3" size="10" styleClass="background-color:white;"
onkeyup="filtreTaille(true,event);"
onchange="filtreTaille(false);">
<site:validateRegex expression="#{exp.PTN_TAILLE}"
notValidErrorMsg="#{res.ERR_TAILLE_NOTVALID}" />
<f:converter converterId="TailleConverter" />
</h:inputText></center>
</td>
<td height="30">
<center><h:inputText
value="#{panierData.dto.quantite}" id="quantiteInput"
onkeyup="filtreQuantite(true,event);"
onchange="filtreQuantite(false);"
onkeypress="if (event.keyCode == 13) document.panierForm.submit();"
styleClass="background-color:white;"
binding="#{panierValidator.quantiteInput}" maxlength="2"
size="3">
<site:validateRegex expression="#{exp.PTN_QUANTITE}"
notValidErrorMsg="#{res.ERR_QUANTITE_NOTVALID}" />
</h:inputText></center>
</td>
<td><h:commandLink id="ajoutProd"
action="#{panierData.ajoutPanier}">
<h:graphicImage
value="#{panierData.CMSUrl}/site/App/panier/b_ajouter.gif"
alt="Ajouter dans le panier"
styleClass="btnSelectionCmdDirecte" />
</h:commandLink></td>
</tr>
</table>
</tr>
<tr>
<td><%--<h:panelGroup id="info_commande_directe"
rendered="#{panierData.commandeDirecte}">--%>
<%--</h:panelGroup>--%></td>
</tr>
<%--<tr>
<td height="20" bgcolor="#eaf0ff" class="txt1b">
<div align="center"><h:outputText
value="#{res.demandeInfoCommandeEnLigne}" escape="false" /> <h:commandLink
style="font-style: italic; text-decoration:underline;"
id="retour">
<h:outputText value="#{res.guide}" />
</h:commandLink></div>
</td>
</tr>--%>
</table>
</td>
</tr>
</table>
</td>
</tr>
<TR>
<TD><BR>
<table width="611px" border="0" CELLSPACING="0" CELLPADDING="0"
align="CENTER" bgcolor="#cccccc" class="process">
<tr>
<td><h:inputHidden id="nbLignes"
value="#{panierData.nbLignes}" /> <h:inputHidden
id="messSuppressions"
value="#{panierData.messageSuppressionNArticle}" />
<h:inputHidden id="bulErreur"
value="#{panierData.bulletinErreur}" /> <h:inputHidden
id="messSuppression"
value="#{panierData.messageSuppression1Article}" /> <h:inputHidden
id="reponse" value="#{panierData.reponse}" /> <h:inputHidden
id="listeQuantite" value="#{panierData.listeQuantite}" /> <h:dataTable
id="panier" var="varArticle" rendered="#{panierData.nonVide}"
value="#{panierData.dto.lignes}" width="611" cellspacing="1" headerClass="PanierHeader" rowClasses="saisieColLiv">
<%-- Vignette 60--%>
<h:column id="column1">
<f:facet name="header">
<h:outputText value="" />
</f:facet>
<h:outputLink value="#{varArticle.lien}"
rendered="#{varArticle.lienNotNull}">
<h:graphicImage value="#{varArticle.image}" width="40"
height="40" alt="#{varArticle.libelle}"/>
</h:outputLink>
<h:graphicImage value="#{varArticle.image}" width="40"
height="40" alt="#{varArticle.libelle}" rendered="#{!varArticle.lienNotNull}"/>
</h:column>
<%-- Libelle et reference 200--%>
<h:column id="column2">
<f:facet name="header">
<h:outputText value="#{res.LIB_ARTICLE}" />
</f:facet>
<h:panelGrid columns="1">
<h:outputLink value="#{varArticle.lien}"
rendered="#{varArticle.lienNotNull}">
<h:outputText value="#{varArticle.libelle}" />
</h:outputLink>
<h:outputText value="#{varArticle.libelle}"
rendered="#{varArticle.lienNull}" />
<h:outputText rendered="#{varArticle.refNotNull}"
value="#{res.LIB_COURT_REF} #{varArticle.reference}" />
</h:panelGrid>
</h:column>
<%-- Délai 50--%>
<h:column id="column3">
<f:facet name="header">
<h:outputText value="#{res.LIB_DELAI}" />
</f:facet>
<h:panelGrid width="100%" style="text-align:center;">
<h:outputText value="#{varArticle.dispo}" />
</h:panelGrid>
</h:column>
<%-- Coloris et taille 120--%>
<h:column id="column4">
<f:facet name="header">
<h:outputText value="#{res.LIB_COLORIS_TAILLE}" />
</f:facet>
<h:panelGrid columns="1">
<h:outputText value="#{varArticle.coloris}" />
<h:outputText value="#{res.LIB_TAILLE} #{varArticle.taille}"
rendered="#{!varArticle.catalogue}" />
</h:panelGrid>
</h:column>
<%-- Quantite 54--%>
<h:column id="column5">
<f:facet name="header">
<h:outputText value="#{res.LIB_QUANTITE}" />
</f:facet>
<h:panelGrid width="100%" style="text-align:center;">
<h:inputText id="saisieQte" maxlength="2" style="width:20px;"
onkeypress="return QueNum( event );"
disabled="#{varArticle.prodGratuit}"
value="#{varArticle.quantite}" />
</h:panelGrid>
</h:column>
<%-- Prix 95--%>
<h:column id="column6">
<f:facet name="header">
<h:outputText value="#{res.LIB_PRIX}" />
</f:facet>
<h:panelGrid width="100%" style="text-align:right;">
<h:outputText value="#{varArticle.txtPrixUnitaireFctQuantite}"
escape="false" />
<h:outputText style="text-decoration: line-through ;"
escape="false" value="#{varArticle.txtPrixBarreFctQuantite}"
rendered="#{varArticle.prixBarreExistant}" />
</h:panelGrid>
</h:column>
<%-- Suppr 21--%>
<h:column id="column7">
<f:facet name="header">
<h:outputText value="#{res.LIB_SUPPR}" />
</f:facet>
<h:panelGrid columns="1" style="text-align: right;" width="26px">
<h:commandLink action="#{panierData.supprimeArticle}"
immediate="true" onclick="confirmSuppression()">
<h:graphicImage
value="#{panierData.CMSUrl}/site/App/panier/suppression.gif"
style="border:none; text-align:center;" width="20"
height="20" alt="#{res.SUPPRESSION}" />
<f:param name="idASupprimer" value="#{varArticle.idLignes}" />
</h:commandLink>
</h:panelGrid>
</h:column>
</h:dataTable></td>
</tr>
</table>
</TD>
</TR>
<tr>
<td align="left"><BR>
<table width="563px" cellpadding="0" cellspacing="0"
class="bordsCommandeDirecte" col="2">
<tr>
<td align="right"><h:outputText value="#{res.TOTAL_SANS_ECONOMIE}"
escape="false" rendered="#{panierData.economieExistante}" /></td>
<td align="right"><h:outputText
value="#{panierData.txtTotalSansEconomie}" escape="false"
rendered="#{panierData.economieExistante}" /></td>
</tr>
<tr>
<td align="right"><h:outputText value="#{res.ECONOMIE}"
escape="false" rendered="#{panierData.economieExistante}" /></td>
<td align="right"><h:outputText
value="#{panierData.txtEconomie}" escape="false"
rendered="#{panierData.economieExistante}" /></td>
</tr>
<%--<tr>
<td align="right"><h:outputText value="#{res.REDUCTION}"
escape="false" rendered="#{panierData.remiseExistante}" /></td>
<td align="right"><h:outputText
value="#{panierData.totalRemise} € " escape="false"
rendered="#{panierData.remiseExistante}" /></td>
</tr> --%>
<tr>
<td align="right"><h:outputText
rendered="#{panierData.nonVide}" value="#{res.LIB_TOTAL_PANIER}"
escape="false" /></td>
<td align="right"><h:outputText
rendered="#{panierData.nonVide}"
value="#{panierData.dto.txtTotalCdePanier}" escape="false" >
<f:convertNumber groupingUsed="true" />
</h:outputText>
</td>
</tr>
<tr>
<td align="right"><h:outputText value="#{res.FRAIS_PORT}"
rendered="#{panierData.nonVide}" escape="false" /></td>
<td align="right"><h:outputText
rendered="#{panierData.nonVide}"
value="#{panierData.dto.txtFraisPortTotal}" escape="false" /></td>
</tr>
<tr>
<td align="right"><h:outputText
rendered="#{panierData.nonVide}"
value="#{res.LIB_TOTAL_COMMANDE}" escape="false" /></td>
<td align="right"><h:outputText
rendered="#{panierData.nonVide}"
value="#{panierData.dto.txtTotCdeCliNCpq}" escape="false" /></td>
</tr>
<tr>
<td align="left"><h:outputText rendered="#{panierData.vide}"
value="#{res.ERR_REF07_B}" escape="false" /></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<TABLE width="562px" border="0" cellspacing="0" cellpadding="0">
<TR>
<TD class="process" align="left"><h:outputText
rendered="#{panierData.nonVide}" value="#{res.LIB_BULLETIN}"
escape="false" /></TD>
<TD valign="bottom"><h:inputText maxlength="5" style="width:40px;"
rendered="#{panierData.nonVide}"
onkeypress="return QueNum( event );" id="bulletin"
value="#{panierData.dto.codeBulletin}"><site:validateRegex expression="#{exp.PTN_BULLETIN}"
notValidErrorMsg="#{res.ERR_BULLETIN_NOTVALID}" /></h:inputText><f:verbatim> </f:verbatim><h:commandLink onclick="verifQte()"
immediate="true" action="#{panierData.majCommande}"><h:graphicImage rendered="#{panierData.nonVide}"
value="#{panierData.CMSUrl}/site/App/panier/b_valider2.gif"
style="vertical-align:bottom;border:none; text-align:center;"
alt="#{res.RECALCULE}" /></h:commandLink></td><td></td>
</TR>
<TR>
<td></td>
<td colspan="2" width="250px"><h:outputText
value="#{panierData.libBulletin}"
rendered="#{panierData.nonVide}" escape="false" /></td>
</TR>
<TR>
<TD class="process" align="left"><h:outputText
rendered="#{panierData.nonVide}" value="#{res.LIB_LIVRAISON}"
escape="false" />
<h:selectOneMenu id="livraison"
rendered="#{panierData.nonVide}"
value="#{panierData.dto.modeLivraison}">
<f:selectItems value="#{panierData.listeLivraison}" />
</h:selectOneMenu></TD><td></td>
<td></td>
<td></td>
</TR>
</TABLE>
</td>
</tr>
<tr>
<td>
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
<TR>
<TD width="49%" class="process" align="left" valign="bottom"><h:outputText
rendered="#{panierData.nonVide}" value="#{res.MODIF_QUANTITE}"
escape="false" />
<h:commandLink
onclick="verifQte()" immediate="true"
action="#{panierData.majCommande}">
<h:graphicImage rendered="#{panierData.nonVide}"
value="#{panierData.CMSUrl}/site/App/panier/b_valider2.gif"
style="vertical-align:bottom;border:none; text-align:center;"
alt="#{res.MAJ}" />
</h:commandLink></TD><td></td>
</TR>
</TABLE>
</td>
</tr>
<tr>
<td><BR>
<BR>
<!-- placer fin de caisse ici -->
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
<TR>
<TD width="49%" class="process" align="center">
<f:verbatim>
<a href="#" onclick="javascript:window.open('/portal/portal/SiteInternet/Contenu/AideEnLigne/aide.html','AideEnLigne','status=no,scrollbars=yes,resizable=no,width=715,height=575,top=0,left=0')">
</f:verbatim>
<h:graphicImage rendered="#{panierData.nonVide}"
value="#{panierData.CMSUrl}/site/App/panier/besoin_d_aide.gif"
style="border:none; text-align:center;" />
<f:verbatim>
</a>
</f:verbatim>
</TD>
<TD width="51%" align="center"><h:commandLink
onclick="verifQte()" action="#{panierData.initModeLivraison}"
immediate="true">
<h:graphicImage rendered="#{panierData.nonVide}"
value="#{panierData.CMSUrl}/site/App/panier/b_valider_panier.gif"
style="border:none; text-align:center; margin-bottom:10px;" height="22" width="174"
alt="#{res.COMMANDE}" />
</h:commandLink></TD>
</TR>
</TABLE>
<h:inputHidden id="focusComponent"
binding="#{panierValidator.focusComponent}" /> <h:inputHidden
id="formCheck" value="initValue"
binding="#{panierValidator.formCheck}"
validator="#{panierValidator.validateForm}" /> <h:inputHidden
value="#{panierData.nbArticle}" id="nbArticle" /> <script
type="text/javascript" src="/site-site-web/js/utils.js"></script>
<script type="text/javascript" language="JavaScript">
giveFocus('panierForm', document.getElementById('panierForm:focusComponent').value);
document.getElementById("nbArticlePanier").innerHTML =document.getElementById('panierForm:nbArticle').value;
if (document.getElementById('panierForm:bulletin')) {
if (document.getElementById('panierForm:bulErreur')
&& document.getElementById('panierForm:bulErreur').value=='true') {
document.getElementById('panierForm:bulletin').className="errorInput";
}
else {
document.getElementById('panierForm:bulletin').className="process";
document.getElementById('panierForm:bulletin').style.color="black";
}
}
</script>
</h:form>
<h:form>
<h:dataTable id="finDeCaisse" var="varArticleFinDeCaisseSelec"
value="#{panierData.listeArticleFinDeCaisseSelec}" width="611" cellspacing="1"
headerClass="PanierHeader">
<h:column>
<h:panelGroup>
<h:panelGrid id="ligne1" columns="2">
<h:column>
<h:graphicImage value="#{varArticleFinDeCaisseSelec.image}" width="40"
height="40" alt="#{varArticleFinDeCaisseSelec.libelle}"/>
</h:column>
<h:column>
<h:outputText value="#{varArticleFinDeCaisseSelec.libelle}"/>
<f:verbatim><br></f:verbatim>
<h:outputText value="#{varArticleFinDeCaisseSelec.reference}"/>
</h:column>
</h:panelGrid>
<f:verbatim><br></f:verbatim>
<h:panelGrid id="ligne2" columns="2">
<h:column>
<h:outputText value="#{varArticleFinDeCaisseSelec.couleur}"/>
</h:column>
<h:column>
<h:outputText value="#{varArticleFinDeCaisseSelec.taille}"/>
</h:column>
</h:panelGrid>
<f:verbatim><br></f:verbatim>
<f:verbatim><br></f:verbatim>
<h:panelGrid id="ligne4" columns="3">
<h:column>
<h:outputText value="#{varArticleFinDeCaisseSelec.prix}"/>
<f:verbatim><br></f:verbatim>
<h:outputText value="#{varArticleFinDeCaisseSelec.prixBarre}"/>
</h:column>
<h:column>
<h:graphicImage value="#{panierData.CMSUrl}/site/App/panier/panier.gif" width="40"
height="40"/>
</h:column>
<h:column>
<h:commandLink id="ajoutProdFinDeCaisse"
action="#{panierData.ajoutPanier}"
immediate="true">
<h:graphicImage
value="#{panierData.CMSUrl}/site/App/panier/b_ajouter.gif"
alt="Ajouter dans le panier"/>
<f:param name="flagAjoutFinDeCaisse"
value="ok"/>
<f:param name="referenceArticle"
value="#{varArticleFinDeCaisseSelec.reference}"/>
<f:param name="couleurArticle"
value="#{varArticleFinDeCaisseSelec.couleur}"/>
<f:param name="tailleArticle"
value="#{varArticleFinDeCaisseSelec.taille}"/>
</h:commandLink>
</h:column>
</h:panelGrid>
</h:panelGroup>
</h:column>
</h:dataTable>
</h:form>
<%--
<div style="text-align:center;width:611px;margin-top:50px">
<div style="width:550px;">
<div
style="float:right; font:Arial, Helvetica, sans-serif; font-size:13px; color:#e63e4f; padding: 5px;"><h:outputText
value="#{res.messageConseillere}" /><br>
<h:outputText value="#{res.serveurVocal}" /></div>
<div
style="font:Arial, Helvetica, sans-serif;font-size:24px;font-weight:bold;color:#e63e4f;text-align:right"><h:outputText
value="#{res.numeroTel}" /></div>
<div
style="font:Arial, Helvetica, sans-serif;font-size:10px;color:#e63e4f;text-align:right"><h:outputText
value="#{res.tarif}" /></div>
</div>
</div>
<div
style="margin-top:10px;width:611px;text-align:right;font-size:10px">
<div style="width="><span
style="background-color:#f1efde;color:#85856f;font-weight:bolder;padding:2px">></span><span
style="background-color:#e63e4f;color:#FFFFFF;padding:2px"><h:outputText
value="#{res.pourNousConsulter}" /> <span
style="background-color:#f1efde;color:#85856f;padding:2px"><h:commandLink
id="service">
<h:outputText value="#{res.service}" />
</h:commandLink></span></span></div>
--%>
</f:view> |
Partager