'; echo $f->get_gestion_title(); $exercice=new Exercice($cn); $old=''; $fiche=new Fiche($cn,$_GET['f_id']); $year=$g_user->get_exercice(); if ( $year == 0 ) { $html="erreur aucune période par défaut, allez dans préférence pour en choisir une"; } else { $per=new Periode($cn); $limit_periode=$per->get_limit($year); $array['from_periode']=$limit_periode[0]->first_day(); $array['to_periode']=$limit_periode[1]->last_day(); if (isset($_GET['ex'])) { $limit_periode=$per->get_limit($_GET['ex']); $array['from_periode']=$limit_periode[0]->first_day(); } /* * Add button to select another year */ if ($exercice->count() > 1 ) { $default=(isset($_GET['ex']))?$_GET['ex']:$year; $dossier=dossier::id(); $old='
'; } if ( $fiche->HtmlTable($array,0,0)==-1){ echo h2("Aucune opération pour l'exercice courant",'class="error"'); } echo $old; } echo '';