#185 Export CSV from all the history

This commit is contained in:
Dany De Bontridder 2011-01-19 20:54:32 +00:00
parent 47ff3d5605
commit 8f5d9bc5f9
9 changed files with 190 additions and 10 deletions

View file

@ -213,6 +213,19 @@ if ( $def == 2)
list($count,$html)= $Ledger->list_operation($sql,$offset);
echo $html;
echo $bar;
/*
* Export to csv
*/
$r=HtmlInput::get_to_hidden(array('l','date_start','date_end','desc','amount_min','amount_max','qcode','accounting','unpaid','gDossier','ledger_type','p_action'));
if (isset($_GET['r_jrn'])) {
foreach ($_GET['r_jrn'] as $k=>$v)
$r.=HtmlInput::hidden('r_jrn['.$k.']',$v);
}
echo '<form action="histo_csv.php" method="get">';
echo $r;
echo HtmlInput::submit('viewsearch','Export vers CSV');
echo '</form>';
echo '</div>';
exit();