id_entite; $tab_bib[1][]=$row->raison_sociale; } //si on arrive par print_acquisition.php, pas d'entêtes if(!isset($acquisition_no_html)) $acquisition_no_html = 0; if (!$acquisition_no_html) { echo window_title($database_window_title.$msg['acquisition_menu'].$msg[1003].$msg[1001]); } switch($categ) { case 'ach': if(!$nb_bib) { //Pas de bibliothèques définies pour l'utilisateur $error_msg.= htmlentities($msg["acquisition_err_coord"],ENT_QUOTES, $charset)."
"; error_message($msg[321], $error_msg.htmlentities($msg["acquisition_err_par"],ENT_QUOTES, $charset), '1', './admin.php?categ=acquisition'); die; } //Gestion de la tva if ($acquisition_gestion_tva) { $nbr = tva_achats::countTva(); //Gestion de TVA et pas de taux de tva définis if (!$nbr) { $error_msg.= htmlentities($msg["acquisition_err_tva"],ENT_QUOTES, $charset)."
"; error_message($msg[321], $error_msg.htmlentities($msg["acquisition_err_par"],ENT_QUOTES, $charset), '1', './admin.php?categ=acquisition'); die; } } include_once('./acquisition/achats/achats.inc.php'); break; case 'sug': switch($sub) { case 'multi': include_once('./acquisition/suggestions/suggestions_multi.inc.php'); break; case 'import': include_once('./acquisition/suggestions/suggestions_import.inc.php'); break; case 'export': include_once('./acquisition/suggestions/suggestions_export.inc.php'); break; case 'export_tableau': include_once('./acquisition/suggestions/suggestions_export_tableau.inc.php'); break; case 'empr_sug': include_once('./acquisition/suggestions/suggestions_empr.inc.php'); break; default: include_once('./acquisition/suggestions/suggestions.inc.php'); break; } break; case 'rent': switch($sub) { case 'requests': include_once('./acquisition/rent/requests.inc.php'); break; case 'accounts': include_once('./acquisition/rent/accounts.inc.php'); break; case 'invoices': include_once('./acquisition/rent/invoices.inc.php'); break; default: include_once('./acquisition/rent/accounts.inc.php'); break; } break; case 'plugin' : $plugins = plugins::get_instance(); $file = $plugins->proceed("acquisition",$plugin,$sub); if($file){ include $file; } break; default: if (!$nb_bib && !$acquisition_sugg_to_cde) { include_once('./acquisition/suggestions/suggestions.inc.php'); } else { if(!$nb_bib) { //Pas de bibliothèques définies pour l'utilisateur $error_msg.= htmlentities($msg["acquisition_err_coord"],ENT_QUOTES, $charset)."
"; error_message($msg[321], $error_msg.htmlentities($msg["acquisition_err_par"],ENT_QUOTES, $charset), '1', './admin.php?categ=acquisition'); die; } //Gestion de la tva if ($acquisition_gestion_tva) { $nbr = tva_achats::countTva(); //Gestion de TVA et pas de taux de tva définis if (!$nbr) { $error_msg.= htmlentities($msg["acquisition_err_tva"],ENT_QUOTES, $charset)."
"; error_message($msg[321], $error_msg.htmlentities($msg["acquisition_err_par"],ENT_QUOTES, $charset), '1', './admin.php?categ=acquisition'); die; } } include_once('./acquisition/achats/achats.inc.php'); } break; }