$w->selected = $current; echo _('Filtrer par période') . ":" . $w->input() . HtmlInput::submit('gl_submit', 'Valider') . '</form>'; echo '<hr>'; echo '<div class="content" >'; echo $a->html_table($current); echo '</div>'; return; } if (isset($_POST['save'])) { // record the operation and exit // and exit //----------------------------- echo '<div class="redcontent" >' . _('Opération sauvée'); $a = new Anc_Group_Operation($cn); $a->get_from_array($_POST); $a->save(); echo $a->show(); echo '</div>'; return; } if (isset($_GET['new'])) { //show the form for entering a new Anc_Operation //------------------------------------------ $a = new Anc_Group_Operation($cn); $wSubmit = new IHidden("p_action", "ca_od"); $wSubmit->table = 0; echo '<div class="redcontent" >'; echo '<form method="post">'; echo dossier::hidden(); echo $wSubmit->input(); echo $a->form();