echo HtmlInput::hidden('sa', 'mod'); echo HtmlInput::hidden('ac', $_REQUEST['ac']); echo $anc->form_cat(); echo HtmlInput::submit('mod_cat_save', _('Sauver')); echo '</form>'; echo '</div>'; } } /* * ******************************************************************** * Display menu * * * ******************************************************************** */ // display button add and list of forecast to display if ($sa == 'list') { $aForecast = Forecast::load_all($cn); $menu = array(); $get_dossier = dossier::get(); echo '<div class="content">'; echo _('Filtre') . " " . HtmlInput::filter_table("forecast_table_id", '0', 1); echo '<TABLE id="forecast_table_id" class="vert_mtitle">'; $href = "?ac=" . $_REQUEST['ac'] . "&sa=new&" . $get_dossier; echo '<TR><TD class="first"><A HREF="' . $href . '">' . _("Ajout d'une prévision") . '</A></TD></TR>'; $def = isset($_REQUEST['f_id']) ? $_REQUEST['f_id'] : -1; for ($i = 0; $i < count($aForecast); $i++) { $href = "?ac=" . $_REQUEST['ac'] . "&sa=vw&" . $get_dossier . '&f_id=' . $aForecast[$i]['f_id']; $name = h($aForecast[$i]['f_name']); $menu[] = array($href, $name, $name, $aForecast[$i]['f_id']); echo '<TR><TD><A HREF="' . $href . '">' . h($name) . '</A></TD></TR>'; } echo "</TABLE>";