get_exercice(); bcscale(2); echo '
'; /* * Let you change the exercice */ echo '
'._('Exercice').'';; echo '
'; echo _('Choisissez un autre exercice')." : "; $ex=new Exercice($cn); $wex=$ex->select('exercice',$exercice,' onchange="submit(this)"'); echo $wex->input(); echo dossier::hidden(); echo HtmlInput::get_to_hidden(array('ac','type')); echo '
'; echo '
'; // Show the form for period echo '
'; echo HtmlInput::get_to_hidden(array('ac')); echo HtmlInput::hidden('type','bal'); echo HtmlInput::get_to_hidden(array('exercice')); echo dossier::hidden(); // filter on the current year $from=HtmlInput::default_value_get("from_periode", ""); $input_from=new IPeriod("from_periode",$from,$exercice); $input_from->show_end_date=false; $input_from->type=ALL; $input_from->cn=$cn; $input_from->filter_year=true; $input_from->user=$g_user; echo _('Depuis').' :'.$input_from->input(); // filter on the current year $to=HtmlInput::default_value_get("to_periode", ""); if( $to == "") { $t_periode=new Periode($cn); list($per_max,$per_min)=$t_periode->get_limit($exercice); $to=$per_min->p_id; } $input_to=new IPeriod("to_periode",$to,$exercice); $input_to->show_start_date=false; $input_to->filter_year=true; $input_to->type=ALL; $input_to->cn=$cn; $input_to->user=$g_user; echo " "._('jusque').' :'.$input_to->input(); echo '
'; echo HtmlInput::button_action(_('Avancé'), " if (\$('balance_advanced_div').style.display=='none') { \$('balance_advanced_div').show();} else { \$('balance_advanced_div').hide();}"); //------------------------------------------------- echo '
"; ?>