" . $msg[transferts_circ_menu_titre] . " > " . $msg[transferts_circ_menu_reception] . ""; $transferts_reception_liste_valide_reception = str_replace("!!liste_sections!!",do_liste_section(0),$transferts_reception_liste_valide_reception); $tmpString = affiche_liste_valide( $transferts_reception_liste_valide_reception, $transferts_reception_liste_valide_reception_ligne, "SELECT num_notice, num_bulletin, id_transfert as val_id, " . "expl_cb as val_ex,lender_libelle, transferts.date_creation as val_date_creation, " . "date_visualisee as val_date_accepte, motif as val_motif, location_libelle as val_dest, " . "expl_section as val_section, empr_cb as val_empr " . "FROM transferts " . "INNER JOIN transferts_demande ON id_transfert=num_transfert " . "INNER JOIN exemplaires ON num_expl=expl_id " . "INNER JOIN lenders ON idlender=expl_owner " . "INNER JOIN docs_location ON num_location_dest=idlocation " . "LEFT JOIN resa ON resa_trans=id_resa " . "LEFT JOIN empr ON resa_idempr=id_empr " . "WHERE ". "id_transfert IN (!!liste_numeros!!) ". "AND etat_demande=2", "circ.php?categ=trans&sub=". $sub ); //on récupere l'id du statut par défaut du site de l'utilisateur $rqt = "SELECT transfert_statut_defaut FROM docs_location " . "INNER JOIN users ON idlocation=deflt_docs_location " . "WHERE userid=".$PMBuserid; $res = mysql_query($rqt); $statut_defaut = mysql_result($res,0); //on remplit le select avec la liste des statuts $tmpString = str_replace("!!liste_statuts!!", do_liste_statut($statut_defaut), $tmpString); echo $tmpString; break; case "recep": //on valide les receptions $obj_transfert->enregistre_reception($liste_transfert,$statut_reception,$section_reception,$info); $motif=$info[0]["motif"]; //on affiche l'ecran principal $action = ""; break; } if ($action=="") { $tmpString = do_cb_expl($msg[transferts_circ_menu_titre]." > ".$msg[transferts_circ_menu_reception], $msg[661], $msg[transferts_circ_reception_exemplaire], "./circ.php?categ=trans&sub=".$sub."&f_source=".$f_source."&nb_per_page=".$nb_per_page, 0,"recep"); //on récupere l'id du statut par défaut du site de l'utilisateur $rqt = "SELECT transfert_statut_defaut FROM docs_location " . "INNER JOIN users ON idlocation=deflt_docs_location " . "WHERE userid=".$PMBuserid; $res = mysql_query($rqt); $statut_defaut = mysql_result($res,0); //on remplit le select avec la liste des statuts $tmpString = str_replace("!!liste_statuts!!", do_liste_statut($statut_defaut), $tmpString); $liste_sel = "" . do_liste_section(0); //on remplit le select avec la liste des sections $tmpString = str_replace("!!liste_sections!!", $liste_sel, $tmpString); echo $tmpString; if ($form_cb_expl != "") { //enregistrement de la reception $res_rcp = $obj_transfert->enregistre_reception_cb($form_cb_expl, $statut_reception, $section_reception,$info); $motif=$info[0]["motif"]; if ($res_rcp==false) { // reception pas valide echo $transferts_reception_erreur; } else { // reception est faite echo str_replace("!!cb_expl!!", $form_cb_expl,$transferts_reception_OK); $resa=new reservation(0,0,0,$form_cb_expl); if(($empr_resa=$resa->get_empr_info_cb())){ $motif=$obj_transfert->get_motif($res_rcp); echo str_replace("!!empr_link!!", $empr_resa,"