Пример #1
0
    _parser_($fic_catal, array("ITEM" => "_item_"), "CATALOG");
    //Création de la liste des types d'import
    $export_type = "<select name=\"export_type\" id=\"export_type\">\n";
    for ($i = 0; $i < count($catalog); $i++) {
        $export_type .= "<option value=\"" . $catalog[$i][INDEX] . "\">" . $catalog[$i][NAME] . "</option>\n";
    }
    $export_type .= "</select>";
    $cart_choix_quoi_exporter = str_replace("!!export_type!!", $export_type, $cart_choix_quoi_exporter);
    $param = new export_param(EXP_DEFAULT_GESTION);
    $cart_choix_quoi_exporter = str_replace("!!form_param!!", $param->check_default_param(), $cart_choix_quoi_exporter);
    return $cart_choix_quoi_exporter;
}
if ($idcaddie) {
    $myCart = new caddie($idcaddie);
    print pmb_bidi(aff_cart_titre($myCart));
    switch ($action) {
        case 'choix_quoi':
            print pmb_bidi(aff_cart_nb_items($myCart));
            print aff_choix_quoi_export("./catalog.php?categ=caddie&sub=action&quelle=export&action=exporter&idcaddie={$idcaddie}", "./catalog.php?categ=caddie&sub=action&quelle=export&action=&idcaddie=0", $msg["caddie_choix_export"], $msg["caddie_bouton_exporter"]);
            break;
        case 'exporter':
            export_param::init_session();
            $param_exp = new export_param(EXP_SESSION_CONTEXT);
            echo "<div>\n\t\t\t\t<iframe name=\"ieexport\" frameborder=\"0\" scrolling=\"yes\" width=\"600\" height=\"500\" src=\"./admin/convert/start_export_caddie.php?elt_flag={$elt_flag}&elt_no_flag={$elt_no_flag}&keep_expl={$keep_expl}&idcaddie={$idcaddie}&export_type={$export_type}&" . $param_exp->get_parametres_to_string() . "\">\n\t\t\t\t</div>\n\t\t\t\t<noframes>\n\t\t\t\t</noframes>";
            break;
        default:
            break;
    }
} else {
    aff_paniers($idcaddie, "NOTI", "./catalog.php?categ=caddie&sub=action&quelle=export", "choix_quoi", $msg["caddie_select_export"], "", 0, 0, 0);
}
Пример #2
0
            }
            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;
        if ($modulo == 1) {
            $page_suppr = !$page ? 1 : $page - 1;
Пример #3
0
        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);
        }
}
Пример #4
0
            if ($expl_ajout_ok) {
                if ($res_ajout == CADDIE_ITEM_OK) {
                    print "<hr /><div class='row'><span class='erreur'>" . $msg["caddie_" . $myCart->type . "_pointe"] . "</span></div><hr />";
                    print $begin_result_expl_liste_unique;
                    print pmb_bidi(print_info($stuff, 0, 1));
                }
                if ($res_ajout == CADDIE_ITEM_NULL) {
                    print "<hr /><div class='row'><span class='erreur'>{$msg['caddie_item_null']}</span></div><hr />";
                    $alert_sound_list[] = "critique";
                }
                if ($res_ajout == CADDIE_ITEM_IMPOSSIBLE_BULLETIN) {
                    print "<hr /><div class='row'><span class='erreur'>{$msg['caddie_pointe_item_impossible_bulletin']}</span></div><hr />";
                    $alert_sound_list[] = "critique";
                }
                if ($res_ajout == CADDIE_ITEM_INEXISTANT) {
                    print "<hr /><div class='row'><span class='erreur'>{$form_cb_expl}&nbsp;: {$msg['caddie_pointe_inconnu_panier']}</span></div><hr />";
                    $alert_sound_list[] = "critique";
                }
            } else {
                print "<hr /><div class='row'><span class='erreur'>{$message_ajout_expl}</span></div><hr />";
            }
            break;
        default:
            print aff_cart_nb_items($myCart);
            // form de saisie cb exemplaire
            print get_cb_expl($msg["caddie_pointe_expl"], $msg[661], "./catalog.php?categ=caddie&sub=pointage&moyen=douchette&action=pointe_item&idcaddie={$idcaddie}", 1);
            break;
    }
} else {
    aff_paniers($idcaddie, "NOTI", "./catalog.php?categ=caddie&sub=pointage&moyen=douchette", "", $msg["caddie_select_pointe"], "", 0, 0, 0);
}
Пример #5
0
                            $requete = "select {$table}.* from " . $table;
                            $resultat = pmb_mysql_query($requete, $dbh);
                            while ($row = pmb_mysql_fetch_object($resultat)) {
                                $res_ajout = $myCart->pointe_item($row->notice_id, $myCart->type);
                            }
                            break;
                    }
                }
                print "<h3>" . $msg["caddie_menu_pointage_apres_pointage"] . "</h3>";
                print pmb_bidi(aff_cart_nb_items($myCart));
                print $sc->show_search_history($idcaddie, $myCart->type, "./catalog.php?categ=caddie&sub=pointage&moyen=search_history", "pointe_item");
            }
            break;
        default:
            print pmb_bidi(aff_cart_nb_items($myCart));
            switch ($myCart->type) {
                case "EXPL":
                    $sc = new search(true, "search_fields_expl");
                    break;
                case "NOTI":
                    $sc = new search(true, "search_fields");
                    break;
            }
            if (is_object($sc)) {
                print $sc->show_search_history($idcaddie, $myCart->type, "./catalog.php?categ=caddie&sub=pointage&moyen=search_history", "pointe_item");
            }
            break;
    }
} else {
    aff_paniers($idcaddie, "NOTI", "./catalog.php?categ=caddie&sub=pointage&moyen=search_history", "", $msg["caddie_select_pointe"], "", 0, 0, 0);
}
Пример #6
0
        if (is_array($cart_autorisations)) {
            $autorisations = implode(" ", $cart_autorisations);
        } else {
            $autorisations = "";
        }
        $myCart->autorisations = $autorisations;
        $myCart->create_cart();
        aff_paniers($idcaddie, "NOTI", "./circ.php?categ=resa_planning&resa_action=search_resa&mode=3&unq=" . md5(microtime()) . "&id_empr={$id_empr}&groupID={$groupID}", "add_item", "Sélectionnez un caddie pour en afficher le contenu", "NOTI", 0, 1, 1);
        break;
    default:
        if ($idcaddie) {
            $myCart = new caddie($idcaddie);
            print pmb_bidi("<div class=\"row\"><b>Panier&nbsp;: " . $myCart->name . ' (' . $myCart->type . ')</b></div>');
            aff_cart_notices($myCart->get_cart(), $myCart->type, $idcaddie);
        } else {
            aff_paniers($idcaddie, "NOTI", "./circ.php?categ=resa_planning&resa_action=search_resa&mode=3&unq=" . md5(microtime()) . "&id_empr={$id_empr}&groupID={$groupID}", "add_item", "Sélectionnez un caddie pour en afficher le contenu", "NOTI", 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, $end_result_liste;
    global $end_result_list;
    global $id_empr;
    global $groupID;
    if (!sizeof($liste) || !is_array($liste)) {
        print $msg[399];
        return;
    } else {
Пример #7
0
                $nb_element_apres = $myCart->nb_item;
                $msg["caddie_affiche_nb_ajouts"] = str_replace('!!nb_a_ajouter!!', $nb_element_a_ajouter, $msg["caddie_affiche_nb_ajouts"]);
                $msg["caddie_affiche_nb_ajouts"] = str_replace('!!nb_ajoutes!!', $nb_element_apres - $nb_element_avant, $msg["caddie_affiche_nb_ajouts"]);
                $res_exec = "<hr />{$msg['caddie_affiche_nb_ajouts']}<hr />";
                print pmb_bidi($res_exec);
            }
            // fin if $droit
            print aff_cart_nb_items($myCart);
            break;
        default:
            print aff_cart_nb_items($myCart);
            show_procs($idcaddie);
            break;
    }
} else {
    aff_paniers($idcaddie, "NOTI", "./catalog.php?categ=caddie&sub=collecte&moyen=selection", "", $msg["caddie_select_ajouter"], "", 0, 0, 0);
}
function show_procs($idcaddie)
{
    global $msg;
    global $PMBuserid;
    global $dbh;
    print "<hr />{$msg['caddie_select_proc']}<br /><table>";
    // affichage du tableau des procédures
    if ($PMBuserid != 1) {
        $where = " and (autorisations='{$PMBuserid}' or autorisations like '{$PMBuserid} %' or autorisations like '% {$PMBuserid} %' or autorisations like '% {$PMBuserid}') ";
    }
    $requete = "SELECT idproc, type, name, requete, comment, autorisations, parameters FROM caddie_procs WHERE type='SELECT' {$where} ORDER BY name ";
    $res = pmb_mysql_query($requete, $dbh);
    $nbr = pmb_mysql_num_rows($res);
    $parity = 1;
Пример #8
0
                            } else {
                                $requete = "SELECT bulletin_titre, num_notice FROM bulletins WHERE bulletin_id='" . $row->expl_bulletin . "'";
                                $res2 = mysql_query($requete);
                                if (mysql_num_rows($res2)) {
                                    $element = mysql_fetch_object($res2);
                                    if (trim($element->bulletin_titre)) {
                                        $requete = "UPDATE bulletins SET index_titre=' " . addslashes(strip_empty_words($element->bulletin_titre)) . " ' WHERE bulletin_id='" . $row->expl_bulletin . "'";
                                        mysql_query($requete);
                                    }
                                    if ($element->num_notice) {
                                        notice::majNoticesTotal($element->num_notice);
                                    }
                                }
                            }
                        }
                        $pb->progress();
                    }
                }
                $pb->hide();
            }
            print "<br /><h3>{$msg['caddie_situation_reindex']}</h3>";
            print sprintf($msg["caddie_action_flag_processed"], $nb_elements_flag) . "<br />";
            print sprintf($msg["caddie_action_no_flag_processed"], $nb_elements_no_flag) . "<br />";
            print "<b>" . sprintf($msg["caddie_action_total_processed"], $nb_elements_total) . "</b><br /><br />";
            print aff_cart_nb_items($myCart);
        default:
            break;
    }
} else {
    aff_paniers($idcaddie, "NOTI", "./catalog.php?categ=caddie&sub=action&quelle=reindex", "choix_quoi", $msg["caddie_action_reindex"], "", 0, 0, 0);
}
Пример #9
0
                }
                if (pmb_mysql_num_rows($result_selection)) {
                    while ($obj_selection = pmb_mysql_fetch_object($result_selection)) {
                        $myCart->pointe_item($obj_selection->object_id, $obj_selection->object_type);
                    }
                }
            }
            print pmb_bidi(aff_cart_nb_items($myCart));
            break;
        default:
            print pmb_bidi(aff_cart_nb_items($myCart));
            show_procs($idcaddie);
            break;
    }
} else {
    aff_paniers($idcaddie, "NOTI", "./catalog.php?categ=caddie&sub=pointage&moyen=selection", "", $msg[caddie_select_pointe], "", 0, 0, 0);
}
function show_procs($idcaddie)
{
    global $msg;
    global $PMBuserid;
    global $dbh;
    print "<table>";
    // affichage du tableau des procédures
    if ($PMBuserid != 1) {
        $where = " and (autorisations='{$PMBuserid}' or autorisations like '{$PMBuserid} %' or autorisations like '% {$PMBuserid} %' or autorisations like '% {$PMBuserid}') ";
    }
    $requete = "SELECT idproc, type, name, requete, comment, autorisations, parameters FROM caddie_procs WHERE type='SELECT' {$where} ORDER BY name ";
    $res = pmb_mysql_query($requete, $dbh);
    $nbr = pmb_mysql_num_rows($res);
    $parity = 1;
Пример #10
0
                    error_message_history($msg["caddie_action_invalid_query"], $error_message, 1);
                    exit;
                }
            }
            print aff_cart_nb_items($myCart);
            echo "<hr /><input type='button' class='bouton' value='" . $msg["caddie_select_reindex"] . "' onclick='document.location=&quot;./catalog.php?categ=caddie&amp;sub=action&amp;quelle=reindex&amp;action=suite&amp;idcaddie=" . $idcaddie . "&amp;elt_flag=" . $elt_flag . "&amp;elt_no_flag=" . $elt_no_flag . "&quot;' />";
            echo "<input type='button' class='bouton' value='" . $msg["caddie_menu_action_suppr_panier"] . "' onclick='document.location=&quot;./catalog.php?categ=caddie&amp;sub=action&amp;quelle=supprpanier&amp;action=choix_quoi&amp;object_type=NOTI&amp;idcaddie=" . $idcaddie . "&amp;item=0&amp;elt_flag=" . $elt_flag . "&amp;elt_no_flag=" . $elt_no_flag . "&quot;' />";
            break;
        default:
            print aff_cart_nb_items($myCart);
            print $cart_choix_quoi_action;
            show_procs($idcaddie);
            break;
    }
} else {
    aff_paniers($idcaddie, "NOTI", "./catalog.php?categ=caddie&sub=action&quelle=selection", "", $msg["caddie_select_for_action"], "", 0, 0, 0);
}
function is_for_cart($requete)
{
    global $myCart;
    if (preg_match("/CADDIE\\(([^\\)]*)\\)/", $requete, $match)) {
        $m = explode(",", $match[1]);
        $as = array_search($myCart->type, $m);
        if ($as !== NULL && $as !== false) {
            return true;
        } else {
            return false;
        }
    } else {
        return false;
    }
Пример #11
0
            $myCart = new caddie($idcaddie);
            if ($include_child) {
                $tab_list_child = notice::get_list_child($item);
                if (count($tab_list_child)) {
                    foreach ($tab_list_child as $notice_id) {
                        $myCart->add_item($notice_id, "NOTI");
                    }
                }
            } else {
                $myCart->add_item($item, "NOTI");
            }
            $myCart->compte_items();
        }
        print "<script type='text/javascript'>window.close();</script>";
        break;
    case 'new_cart':
        $select_cart = "\n\t\t<select name='cart_type'>\n\t\t\t<option value='NOTI' selected>{$msg['caddie_de_NOTI']}</option>\n\t\t\t<option value='EXPL'>{$msg['caddie_de_EXPL']}</option>\n\t\t\t<option value='BULL'>{$msg['caddie_de_BULL']}</option>\n\t\t</select>\n\t\t<input type='hidden' name='current_print' value='{$current_print}'/>";
        $c_form = str_replace('!!cart_type_select!!', $select_cart, $cart_form);
        print $c_form;
        break;
    case 'del_cart':
    case 'valid_new_cart':
    default:
        if ($current_print) {
            $action = "print_prepare";
            require_once "./print_cart.php";
        } else {
            aff_paniers($item, "NOTI", "./cart.php?", "add_item", $msg["caddie_add_EXPL"], "", 0, 1, 1);
        }
        break;
}
Пример #12
0
                                $myCart->add_item($object, $myCartOrigine->type, "DEP");
                            }
                        }
                    }
                } else {
                    // on est dans le cas "normal"
                    if ($elt_flag) {
                        $liste = $myCartOrigine->get_cart("FLAG");
                        while (list($cle, $object) = each($liste)) {
                            $myCart->add_item($object, $myCartOrigine->type);
                        }
                    }
                    if ($elt_no_flag) {
                        $liste = $myCartOrigine->get_cart("NOFLAG");
                        while (list($cle, $object) = each($liste)) {
                            $myCart->add_item($object, $myCartOrigine->type);
                        }
                    }
                }
                $myCart->compte_items();
                // procédure d'ajout
                echo "<h3>" . $msg[empr_caddie_menu_action_apres_transfert] . "</h3>";
                print aff_cart_nb_items($myCart);
            }
            break;
        default:
            break;
    }
} else {
    aff_paniers($item, "NOTI", "./catalog.php?categ=caddie&sub=action&quelle=transfert", "transfert", $msg["caddie_select_transfert"], "", 0, 0, 0);
}
Пример #13
0
            foreach ($caddie as $idcaddie) {
                $myCart = new caddie($idcaddie);
                if ($include_child) {
                    $tab_list_child = notice::get_list_child($item);
                    if (count($tab_list_child)) {
                        foreach ($tab_list_child as $notice_id) {
                            $myCart->add_item($notice_id, "BULL", $what);
                        }
                    }
                } else {
                    $myCart->add_item($item, "BULL", $what);
                }
                $myCart->compte_items();
            }
            print "<script type='text/javascript'>window.close();</script>";
            break;
        case 'new_cart':
            $select_cart = "\n\t\t\t<select name='cart_type'>\n\t\t\t\t<option value='NOTI'>{$msg['caddie_de_NOTI']}</option>\n\t\t\t\t<option value='EXPL'>{$msg['caddie_de_EXPL']}</option>\n\t\t\t\t<option value='BULL' selected>{$msg['caddie_de_BULL']}</option>\n\t\t\t</select>";
            $c_form = str_replace('!!cart_type_select!!', $select_cart, $cart_form);
            print $c_form;
            break;
        case 'del_cart':
        case 'valid_new_cart':
        default:
            print $aff;
            aff_paniers($item, "BULL", "./cart.php?&what={$what}", "add_item", $msg["caddie_add_BULL"], "", 0, 1, 1);
            break;
    }
} else {
    print "<h1>" . $msg["fonct_no_accessible"] . "</h1>";
}
Пример #14
0
    }
    $label_fmt_sel .= "</select>";
    $cart_choix_quoi_impr_cote = str_replace("<!--label_fmt_sel-->", $label_fmt_sel, $cart_choix_quoi_impr_cote);
    //Affichage format
    $label_fmt_dis = displayLabelFormat($label_id);
    $cart_choix_quoi_impr_cote = str_replace("<!--label_fmt_dis-->", $label_fmt_dis, $cart_choix_quoi_impr_cote);
    //Script verification Format
    $label_fmt_ver = verifLabelFormat($label_id);
    $cart_choix_quoi_impr_cote = str_replace("<!--label_fmt_ver-->", $label_fmt_ver, $cart_choix_quoi_impr_cote);
    //Affichage contenu
    $label_con_dis = displayLabelContent($label_id);
    $cart_choix_quoi_impr_cote = str_replace("<!--label_con_dis-->", $label_con_dis, $cart_choix_quoi_impr_cote);
    //Script verification contenu
    $label_con_ver = verifLabelContent($label_id);
    $cart_choix_quoi_impr_cote = str_replace("<!--label_con_ver-->", $label_con_ver, $cart_choix_quoi_impr_cote);
    return $cart_choix_quoi_impr_cote;
}
if ($idcaddie) {
    $myCart = new caddie($idcaddie);
    print aff_cart_titre($myCart);
    switch ($action) {
        case 'choix_quoi':
            print aff_cart_nb_items($myCart);
            print aff_choix_quoi_impr_cote("./catalog/caddie/action/impr_cote_suite.php?idcaddie={$idcaddie}", "./catalog.php?categ=caddie&sub=action&quelle=impr_cote&action=choix_quoi&object_type=EXPL&idcaddie=" . $idcaddie, "./catalog.php?categ=caddie&sub=action&quelle=impr_cote&action=&idcaddie=0", $msg[caddie_choix_panier_impr_cote], $msg[caddie_act_panier_impr_cote], "");
            break;
        default:
            break;
    }
} else {
    aff_paniers($idcaddie, "EXPL", "./catalog.php?categ=caddie&sub=action&quelle=impr_cote", "choix_quoi", $msg[caddie_select_panier_impr_cote], "EXPL", 0, 0, 0);
}
Пример #15
0
<?php

// +-------------------------------------------------+
// © 2002-2004 PMB Services / www.sigb.net pmb@sigb.net et contributeurs (voir www.sigb.net)
// +-------------------------------------------------+
// $Id: raz.inc.php,v 1.3 2007-03-10 09:03:17 touraine37 Exp $
if (stristr($_SERVER['REQUEST_URI'], ".inc.php")) {
    die("no access");
}
if ($idcaddie) {
    $myCart = new caddie($idcaddie);
    print pmb_bidi(aff_cart_titre($myCart));
    $droit = verif_droit_caddie($idcaddie);
    if ($droit) {
        $myCart->depointe_items();
    }
    print pmb_bidi(aff_cart_nb_items($myCart));
} else {
    aff_paniers($idcaddie, "NOTI", "./catalog.php?categ=caddie&sub=pointage&moyen=raz", "", $msg[caddie_pointage_raz], "", 0, 0, 0);
}
Пример #16
0
                            } else {
                                $res_aff_suppr_base .= aff_cart_unique_object($object, $myCart->type, $url_base = "./catalog.php?categ=caddie&sub=gestion&quoi=panier&idcaddie={$idcaddie}");
                            }
                        }
                    } else {
                        if ($myCart->del_item_base($object, $forcage) == CADDIE_ITEM_SUPPR_BASE_OK) {
                            $myCart->del_item_all_caddies($object, $myCart->type);
                        } else {
                            $res_aff_suppr_base .= aff_cart_unique_object($object, $myCart->type, $url_base = "./catalog.php?categ=caddie&sub=gestion&quoi=panier&idcaddie={$idcaddie}");
                        }
                    }
                }
            }
            if ($res_aff_suppr_base) {
                print "<br /><h3>" . $msg['caddie_supprbase_elt_used'] . "</h3>";
                // inclusion du javascript de gestion des listes dépliables
                // début de liste
                print $begin_result_liste;
                print $res_aff_suppr_base;
                print $end_result_liste;
            }
            print "<br /><h3>" . $msg['caddie_situation_after_suppr'] . "</h3>";
            $myCart->compte_items();
            print aff_cart_nb_items($myCart);
            break;
        default:
            break;
    }
} else {
    aff_paniers($idcaddie, "NOTI", "./catalog.php?categ=caddie&sub=action&quelle=supprbase", "choix_quoi", $msg['caddie_select_supprbase'], "", 0, 0, 0);
}