83 lines
2.7 KiB
PHP
Executable File
83 lines
2.7 KiB
PHP
Executable File
<?php
|
|
// ---------------------------------------------------
|
|
// Init
|
|
// ---------------------------------------------------
|
|
include ("options.js_css.php");
|
|
require_once($includePath. "/_fonctions/fonctionItemMessage.php");
|
|
// $debugMsg='';
|
|
$toutAfficher=0;
|
|
|
|
$itemNumberPost='';
|
|
$tabItemNumber=array();
|
|
$tabQuantite=array();
|
|
$ordreOptTab=array();
|
|
$_SESSION['quantiteParListe']=0;
|
|
$isQDepasse=false;
|
|
$isQAtteinte=false;
|
|
global $tabItemNumberFromDb;
|
|
$delta=0;
|
|
$numColonne=array(); // nombre de champs pour les valeurs des sous liste
|
|
$montantTotal=0;
|
|
$sOpt=0; // option postée
|
|
$ETOU='';
|
|
$itemToDesactiv='';
|
|
$kantToDesactiv='';
|
|
$codeOpeForm='';
|
|
// ne pas reposter le panier
|
|
|
|
$_SESSION['c1']='';
|
|
$isAucun='';
|
|
$activBtn=0;
|
|
$listeOptions='';
|
|
$selectionFaite='';
|
|
|
|
$totMontantParListe=0;
|
|
$u=0;
|
|
$c1='';
|
|
// $currentFormOrder='';
|
|
$nextFormOrder=1;
|
|
$quantitePost=1;
|
|
|
|
global $lineItemLibelle;
|
|
global $lineItemQuantite;
|
|
global $lineItemPrixHT;
|
|
global $lineItemPrixTTC;
|
|
global $lineItemPrixHtTOT;
|
|
global $lineItemPrixTtcTOT;
|
|
global $lineItemTvaTaux;
|
|
global $lineItemNumber;
|
|
global $lineItemCode1;
|
|
|
|
// --------------------------------------------------
|
|
// POST et GET
|
|
// --------------------------------------------------
|
|
if (isset($_GET['idCde'])) $idCde=$_GET['idCde'];
|
|
|
|
if (isset($_GET['idLgCde'])) $idLgCde=$_GET['idLgCde'];
|
|
if (isset($_POST['idLgCde'])) $idLgCde=$_POST['idLgCde'];
|
|
// $debugMsg .= ' | idLgCde = ' .$idLgCde. ' ';
|
|
if (isset($_GET['n'])) $n=$_GET['n']; else $n=0;
|
|
|
|
if (isset($_GET['btnSuivant'])) $btnSuivant=$_GET['btnSuivant'];
|
|
if (isset($_GET['viderOption'])) {$_SESSION['viderOption']=$_GET['viderOption'];} else $_SESSION['viderOption']='false';
|
|
|
|
if (isset($_POST['sOpt'])) $sOpt=$_POST['sOpt']; //numero de form posté
|
|
if (isset($_POST['quantitePost'])) $quantitePost=$_POST['quantitePost'];
|
|
if (isset($_POST['itemToDesactiv'])) $itemToDesactiv=$_POST['itemToDesactiv'];
|
|
if (isset($_POST['kantToDesactiv'])) $kantToDesactiv=$_POST['kantToDesactiv'];
|
|
|
|
if (isset($_POST['activBtn'])) $activBtn=$_POST['activBtn'];
|
|
if (isset($_POST['isAucun'])) $isAucun=$_POST['isAucun'];
|
|
|
|
if (isset($_GET['itemNumberPost'])) $itemNumberPost=$_GET['itemNumberPost'];
|
|
if (isset($_POST['itemNumberPost'])) $itemNumberPost=$_POST['itemNumberPost'];
|
|
|
|
if (isset($_POST['codeOpeForm'])) $codeOpeForm=$_POST['codeOpeForm'];
|
|
else if (isset($_GET['codeOpeForm'])) $codeOpeForm=$_GET['codeOpeForm'];
|
|
|
|
// $debugMsg .= ' | codeOpeForm = ' .$codeOpeForm;
|
|
if (isset($_SESSION['lineItemNumber'])) $lineItemNumber=$_SESSION['lineItemNumber'];
|
|
|
|
if (isset($_GET['selectionFaite'])) { $selectionFaite=$_GET['selectionFaite']; $_SESSION['selectionFaite']=$selectionFaite; }
|
|
|
|
?>
|