$show_menu = 1; } catch (Exception $e) { alert($e->getMessage()); } } ////////////////////////////////////////////////////////////////////////// //Display detail of ledger ////////////////////////////////////////////////////////////////////////// switch ($sa) { case 'detail': /* detail of a ledger */ try { $ledger->id = $_REQUEST['p_jrn']; echo '<div class="content">'; echo '<form id="cfg_ledger_frm" method="POST">'; echo $ledger->display_ledger(); echo HtmlInput::hidden('action_frm', ''); echo '<INPUT TYPE="SUBMIT" class="smallbutton" VALUE="' . _("Sauve") . '" name="update" onClick="$(\'action_frm\').value=\'update\';return confirm_box(\'cfg_ledger_frm\',\'Valider ?\')"> <INPUT TYPE="RESET" class="smallbutton" VALUE="Reset"> <INPUT TYPE="submit" class="smallbutton" name="efface" value="' . _("Efface") . '" onClick="$(\'action_frm\').value=\'delete\';return confirm_box(\'cfg_ledger_frm\',\'Vous effacez ce journal ?\')">'; $href = http_build_query(array('ac' => $_REQUEST['ac'], 'gDossier' => $_REQUEST['gDossier'])); echo '<a style="display:inline" class="smallbutton" href="do.php?' . $href . '">' . _('Retour') . '</a>'; echo '</FORM>'; echo "</div>"; $show_menu = 0; } catch (Exception $e) { alert($e->getMessage()); } break; case 'add': /* Add a new ledger */