} } /* * ******************************************************************** * Ask for a new anticipation (forecast) * * * ******************************************************************** */ if ($sa == 'new') { /* Second step : we save the name and category * and propose the items we add the item */ if ($correct == 2 || isset($_POST['step2'])) { /* Propose a form for the items */ $anticip = new Anticipation($cn, $a->get_parameter("id")); echo '<div class="content">'; echo ICard::ipopup('ipopcard'); echo IPoste::ipopup('ipop_account'); $search_card = new IPopup('ipop_card'); $search_card->title = _('Recherche de fiche'); $search_card->value = ''; echo $search_card->input(); echo '<form method="post" action="?">'; echo dossier::hidden(); echo HtmlInput::hidden('sa', 'new'); echo HtmlInput::hidden('ac', $_REQUEST['ac']); echo HtmlInput::hidden('f_id', $id); echo $anticip->form_item(); echo HtmlInput::submit('step3', _('Sauver')); echo '</form>'; echo '</div>'; }