".$msg['resa_menu']." > ".$msg['resa_menu_planning'].""; switch($resa_action) { case 'search_resa' : //Recherche pour prévision if (!aff_entete($id_empr,$layout_begin)) { error_message($msg[350], $msg[54], 1 , './circ.php'); break; } print $layout_begin; switch($mode) { case 1: // recherche catégorie/sujet print $menu_search[1]; include('./circ/resa_planning/subjects/main.inc.php'); break; case 5: // recherche par termes print $menu_search[6]; include('./circ/resa_planning/terms/main.inc.php'); break; case 2: // recherche éditeur/collection print $menu_search[2]; include('./circ/resa_planning/publishers/main.inc.php'); break; case 3: // accès aux paniers print $menu_search[3]; include('./circ/resa_planning/cart.inc.php'); break; case 'view_serial': // affichage de la liste des éléments bulletinés pour un périodique include('./circ/resa_planning/view_serial.inc.php'); break; case 6: // recherches avancees print $menu_search[6]; include('./circ/resa_planning/extended/main.inc.php'); break; default : // recherche auteur/titre print $menu_search[0]; $action_form = "./circ.php?categ=resa_planning&mode=0&id_empr=$id_empr&groupID=$groupID" ; include('./circ/resa_planning/authors/main.inc.php'); break; } break; case 'add_resa' : //Ajout d'une prévision depuis une recherche catalogue if (!aff_entete($id_empr,$layout_begin)) { error_message($msg[350], $msg[54], 1 , './circ.php'); break; } print $layout_begin; if(!check_record($id_notice,$id_bulletin)) { error_message($msg[350], $msg['resa_unknown_record'], 1 , './circ.php?'); break; } if($id_notice) { $display = new mono_display($id_notice, 6, '', 0, '', '', '', 0, 1, 1, 1); print ($display->result); } else if ($id_bulletin) { $bull = new bulletinage($id_bulletin); $bull->make_display(); print $bull->display; } print "\n"; // calcul de la date de fin de la prévision à partir du calcul d'une résa $resa_nb_days = reservation::get_time($id_empr, $id_notice, $id_bulletin); if($resa_nb_days) { $resa_date_fin = date('Y-m-d', strtotime(today(). ' + '.$resa_nb_days.' days')); } else { $resa_date_fin = today(); } $form_resa_dates = str_replace('!!resa_date_debut!!', formatdate(today()), $form_resa_dates); $form_resa_dates = str_replace('!!resa_date_fin!!', formatdate($resa_date_fin), $form_resa_dates); $form_resa_dates = str_replace('!!resa_deb!!', today(), $form_resa_dates); $form_resa_dates = str_replace('!!resa_fin!!', $resa_date_fin, $form_resa_dates); $tab_loc_retrait = resa_planning::get_available_locations($id_empr,$id_notice,$id_bulletin); if(count($tab_loc_retrait)>=1) { $form_loc_retrait = '
'.$msg['resa_planning_loc_retrait'].' | '.$msg['resa_planning_qty_requested'].' |
---|---|
'.htmlentities($v['location_libelle'],ENT_QUOTES,$charset).' | '; $form_loc_retrait.= ''; $form_loc_retrait.=' |