require_once NOALYSS_INCLUDE . '/function_javascript.php'; global $g_user; /** *@file */ $aledger = $g_user->get_ledger('ALL', 3); echo '<div class="noprint">'; echo '<div class="content">'; $rjrn = ''; $radio = new IRadio('choice'); $choice = isset($_GET['choice']) ? $_GET['choice'] : 0; $r_jrn = isset($_GET['r_jrn']) ? $_GET['r_jrn'] : ''; echo '<form method="GET">'; echo dossier::hidden() . HtmlInput::hidden('ac', $_GET['ac']) . HtmlInput::hidden('type', 'rec'); echo _('Filtre par journal'); HtmlInput::button_choice_ledger(array('div' => '', 'type' => 'ALL', 'all_type' => 1)); echo '<br/>'; /* * Limit by date, default current exercice */ list($start, $end) = $g_user->get_limit_current_exercice(); $dstart = new IDate('p_start'); $dstart->value = isset($_REQUEST['p_start']) ? $_REQUEST['p_start'] : $start; $dend = new IDate('p_end'); $dend->value = isset($_REQUEST['p_end']) ? $_REQUEST['p_end'] : $end; echo "Opérations entre " . $dstart->input() . " jusque " . $dend->input(); echo '<ol style="list-style-type:none;">'; $radio->selected = $choice == 0 ? true : false; $radio->value = 0; echo '<li>' . $radio->input() . _('Opérations rapprochées') . '</li>'; $radio->selected = $choice == 1 ? true : false;