76 lines
3.9 KiB
PHP
Executable File
76 lines
3.9 KiB
PHP
Executable File
<?php
|
|
$nomFicAppelant = basename(__FILE__);
|
|
// ---------------------------------------------------
|
|
// Affichage Somme des options
|
|
// ---------------------------------------------------
|
|
echo '<div data-tooltip="calculer" onClick="calculer(' .$u. '); " style="text-align:left; white-space:break-spaces; background:white; " >';
|
|
// Message = Montant des options :
|
|
itemImageNew(0, 1, 0 , '-divClass-', '-styleDiv-', 'span', '-baliseClass-', 'cursor:pointer;', 'onClick=\"calculer(' .$u. ');\"', 'cde', '104', '-icoClass-', '-icoStyle-', '-img1-', '-champType-', '-champClass-', '-champStyle-', '-champValue-', '-msgStyle-', '-msg1Title-', '-ordreImgTxt-', '-id-');
|
|
|
|
echo '<span>';
|
|
echo $_SESSION['montantTotOpt'].' €';
|
|
echo '</span>';
|
|
echo '</div>';
|
|
|
|
// ---------------------------------------------------
|
|
// Bouton suivant enable et disable
|
|
// ---------------------------------------------------
|
|
if ($_SESSION['trouveOrdre']!=0) {
|
|
|
|
// ---------------------------------------------------
|
|
// le code C1 donne la quantité min :=> defini dans 21-itemCheck
|
|
// ---------------------------------------------------
|
|
if ($min!='' && ($_SESSION['quantiteParListe'] < $min) && $_SESSION['quantiteParListe']>0) {
|
|
if (isset($debug[15]) && $debug[15] == '1' ) $debugMsg .='<script type="text/javascript">alert("min=' .$min. ' -quantiteParListe=' .$_SESSION['quantiteParListe']. '");</script>';
|
|
$isQAtteinte=true;
|
|
}
|
|
|
|
if ($activBtn==1) {
|
|
if ($isQDepasse==true) {
|
|
echo '<script type="text/javascript">alert("' .$cdeMsg[107]. '");</script>';
|
|
echo '<span style="color:red; white-space:break-spaces;">' .$cdeMsg[107]. '</span>';
|
|
}
|
|
elseif ($isQAtteinte==true) {
|
|
echo '<span style="color:red; white-space:break-spaces;">' .$cdeMsg[108]. '</span>';
|
|
}
|
|
else {
|
|
// codeOpeForm = -on appliquera la quantité par defaut le cas echeant
|
|
echo '<div id="btnEnable" style="margin-top:10px; margin-bottom:10px; margin-left:50px;" >';
|
|
echo '<span style="border:0; padding:2px; width:100%;" data-tooltip="Valider" onClick="location.href=\'panier-options-' .$itemNumberPost. '-' .$n. '-' .$montantTotal. '-' .$idLgCde. '-' .$idPrd. '\'" >';
|
|
|
|
// ---------------------------------------------------
|
|
// Btn suivant
|
|
// ---------------------------------------------------
|
|
dynamiqItemImage (0, 0, 'boutons ', 'div', '-', 'bouton', 12, '-', '-textClass-', '-');
|
|
echo '</span>';
|
|
echo '</div>';
|
|
}
|
|
}
|
|
else {
|
|
echo '<div id="btnDisable" style="margin-top:10px; margin-bottom:10px; margin-left:50px;" >';
|
|
echo '<span style="border:0; padding:2px; width:100%;" data-tooltip="Valider" onClick="alert(\'' .$cdeMsg[105]. '\');" >';
|
|
|
|
// ---------------------------------------------------
|
|
// Btn valider disabled
|
|
// ---------------------------------------------------
|
|
dynamiqItemImage (0, 0, 'boutons ', 'div', '-', 'bouton', 6, '-', '-textClass-', '-');
|
|
echo '</span>';
|
|
echo '</div>';
|
|
}
|
|
}
|
|
|
|
// ---------------------------------------------------
|
|
// Bouton submit
|
|
// ---------------------------------------------------
|
|
if ($_SESSION['trouveOrdre']==0) {
|
|
echo '<div style="padding:7px; margin-top:20px; display:contents" >';
|
|
echo '<span style="border:0; padding:5px; width:100%; margin:auto; margin-top:20px;" data-tooltip="Valider" onClick="location.href=\'panier-open-' .$montantTotal. '-' .$idPrd. '-' .$idLgCde. '\'" >';
|
|
|
|
// ---------------------------------------------------
|
|
// Btn continuer
|
|
// ---------------------------------------------------
|
|
itemImageNew(0, 1, 0 , '-divClass-', '-styleDiv-', 'span', 'boutons', 'cursor:pointer;', '-', 'bouton', 9, '-icoClass-', '-icoStyle-', '-img1-', '-champType-', '-champClass-', '-champStyle-', '-champValue-', '-msgStyle-', '-msg1Title-', '1', '-id-');
|
|
echo '<script type="text/javascript">document.getElementById(\'optionForm\').style.border="none";</script>';
|
|
echo '</div>';
|
|
}
|
|
?>
|