1 if ($nb_bib == '1') { show_list_bud($tab_bib[0][0]); exit; } $def_bibli=entites::getSessionBibliId(); if (in_array($def_bibli, $tab_bib[0])) { show_list_bud($def_bibli); exit; } $aff = "
"; print $aff; } //Affiche la liste des budgets function show_list_bud($id_bibli) { global $dbh, $msg, $charset; //Affichage du formulaire de recherche show_search_form($id_bibli); //Affichage de la liste des budgets $form = "".htmlentities($msg[103],ENT_QUOTES,$charset)." | ".htmlentities($msg[acquisition_statut],ENT_QUOTES,$charset)." | ".htmlentities($msg['acquisition_budg_exer'],ENT_QUOTES,$charset)." |
---|---|---|
".htmlentities($row->libelle, ENT_QUOTES, $charset)." | "; $form.=''; switch ($row->statut) { case STA_BUD_VAL : $form.=htmlentities($msg[acquisition_statut_actif],ENT_QUOTES,$charset) ; break; case STA_BUD_CLO : $form.=htmlentities($msg[acquisition_statut_clot],ENT_QUOTES,$charset) ; break; default: $form.=htmlentities($msg[acquisition_budg_pre],ENT_QUOTES,$charset) ; break; } $form.=" | "; $exer = new exercices($row->num_exercice); $form.=''.htmlentities($exer->libelle, ENT_QUOTES, $charset)." |