// fin if rqt sélection
                    }
                    //fin valeur nonvide
                }
                // fin while list $cle
                $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_empr_cart_nb_items($myCart);
            break;
        default:
            print aff_empr_cart_nb_items($myCart);
            show_empr_procs($idemprcaddie);
            break;
    }
} else {
    aff_paniers_empr($idcaddie, "./circ.php?categ=caddie&sub=gestion&quoi=selection&moyen=selection", "", $msg["caddie_select_ajouter"], "", 0, 0, 0);
}
function show_empr_procs($idemprcaddie)
{
    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}') ";
            if ($id_item) {
                if ($typecaddie == 'empr') {
                    $res_pointage = $myCart->pointe_item($id_item);
                } else {
                    $res_pointage = $myCart->pointe_item($id_item, $myCart->type);
                }
            }
            break;
        case 'del_item':
            $res_pointage = $myCart->depointe_item($id_item);
            break;
        default:
            break;
    }
    if ($typecaddie == 'empr') {
        $aff_cart_nb_items = aff_empr_cart_nb_items($myCart);
    } else {
        $aff_cart_nb_items = aff_cart_nb_items($myCart);
    }
}
if (!$id_item) {
    $id_item = 0;
}
if (!$idcaddie) {
    $idcaddie = 0;
}
if (!$res_pointage) {
    $res_pointage = 0;
}
$result = array('id' => $id_item, 'idcaddie' => $idcaddie, 'res_pointage' => $res_pointage, 'aff_cart_nb_items' => $charset != "utf-8" ? utf8_encode($aff_cart_nb_items) : $aff_cart_nb_items);
ajax_http_send_response($result);