//---------------------------------------- if (isset($_POST['save'])) { try { $Ledger->verify($_POST); } catch (Exception $e) { alert($e->getMessage()); $p_msg = $e->getMessage(); $correct = 1; } if (!isset($correct)) { echo '<div class="content">'; echo h1(_('Confirmation'), ''); echo_warning(_("Attention, cette opération n'est pas encore sauvée : vous devez encore confirmer")); echo '<form name="form_detail" class="print" enctype="multipart/form-data" class="print" METHOD="POST">'; echo HtmlInput::hidden('ac', $_REQUEST['ac']); echo $Ledger->confirm($_POST); echo HtmlInput::submit('confirm', _('Confirmer')); echo HtmlInput::submit('correct', _('Corriger')); echo '</form>'; echo '</div>'; return; } } //---------------------------------------- // Confirm and save the operations // into the database //---------------------------------------- if (isset($_POST['confirm'])) { try { $Ledger->verify($_POST); } catch (Exception $e) {