Example #1
0
			<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 */
        echo '<div class="content">';
        echo '<FORM METHOD="POST">';
        $ledger->input_new();
        echo HtmlInput::submit('add', _('Sauver'));
        echo '<INPUT TYPE="RESET" class="smallbutton" VALUE="Reset">';
        echo '</FORM>';
        echo "</DIV>";
        $show_menu = 0;
}
//////////////////////////////////////////////////////////////////////////
// Display list of ledgers
//////////////////////////////////////////////////////////////////////////
if ($show_menu == 1) {
    echo '<div class="content">';
    echo $ledger->listing();
    echo '</div>';
}
html_page_stop();