print aff_cart_nb_items($myCart); aff_cart_objects($idcaddie, "./catalog.php?categ=caddie&sub=gestion&quoi=panier&idcaddie={$idcaddie}"); break; case 'valid_new_cart': $myCart = new caddie(0); $myCart->name = $cart_name; $myCart->type = $cart_type; $myCart->comment = $cart_comment; if (is_array($cart_autorisations)) { $autorisations = implode(" ", $cart_autorisations); } else { $autorisations = ""; } $myCart->autorisations = $autorisations; $myCart->classementGen = $classementGen_caddie; $myCart->acces_rapide = isset($acces_rapide) ? 1 : 0; if ($form_actif) { $myCart->create_cart(); } aff_paniers($idcaddie, "NOTI", "./catalog.php?categ=caddie&sub=gestion&quoi=panier", "", $msg["caddie_select_afficher"], "", 1, 0, 1); break; default: if ($idcaddie) { $myCart = new caddie($idcaddie); print pmb_bidi(aff_cart_titre($myCart)); print pmb_bidi(aff_cart_nb_items($myCart)); aff_cart_objects($idcaddie, "./catalog.php?categ=caddie&sub=gestion&quoi=panier&idcaddie={$idcaddie}"); } else { aff_paniers($idcaddie, "NOTI", "./catalog.php?categ=caddie&sub=gestion&quoi=panier", "", $msg["caddie_select_afficher"], "", 1, 0, 1); } }
$_POST["page"] = 1; $page = 1; } if ($_SESSION["CURRENT"] !== false) { $_SESSION["session_history"][$_SESSION["CURRENT"]]["NOTI"]["URI"] = "catalog.php?categ=search&mode=3&action=add_item&object_type=NOTI&idcaddie=1&item="; $_SESSION["session_history"][$_SESSION["CURRENT"]]["NOTI"]["GET"] = $_GET; $_SESSION["session_history"][$_SESSION["CURRENT"]]["NOTI"]["POST"] = $_POST; $_SESSION["session_history"][$_SESSION["CURRENT"]]["NOTI"]["PAGE"] = $page; $_SESSION["session_history"][$_SESSION["CURRENT"]]["NOTI"]["HUMAN_QUERY"] = $msg["histo_cart_alone"] . " : " . $myCart->name; $_SESSION["session_history"][$_SESSION["CURRENT"]]["NOTI"]["SEARCH_TYPE"] = "cart"; $_SESSION["session_history"][$_SESSION["CURRENT"]]["NOTI"]["NOPRINT"] = true; } $lien = "./catalog.php?categ=caddie&sub=gestion&quoi=panier&action=&object_type=" . $myCart->type . "&idcaddie=" . $myCart->idcaddie . "&item=0"; print pmb_bidi("<div class=\"row\"><b>" . $msg[caddie_intro] . " <a href='" . $lien . "'>" . $myCart->name . '</a> (' . $myCart->type . ')</b></div>'); //aff_cart_notices($myCart->get_cart(), $myCart->type, $idcaddie); aff_cart_objects($idcaddie, "./catalog.php?categ=search&mode=3&idcaddie={$idcaddie}", true, true, true); } else { aff_paniers($idcaddie, "NOTI", "./catalog.php?categ=search&mode=3", "add_item", $msg["caddie_select_afficher"], "", 0, 1, 1); } } // affichage du contenu du caddie à partir de $liste qui contient les object_id function aff_cart_notices($liste, $caddie_type, $idcaddie = 0) { global $msg; global $dbh; global $begin_result_liste; global $end_result_liste; global $page, $nbr_lignes, $nb_per_page; //Calcul des variables pour la suppression d'items if ($nb_per_page) { $modulo = $nbr_lignes % $nb_per_page;