Code : not direct access to $_GET
Bug : javascript didn't work
This commit is contained in:
parent
09659f756d
commit
376aab00b2
1 changed files with 11 additions and 4 deletions
|
|
@ -74,7 +74,7 @@ window.onload=function ()
|
|||
{
|
||||
create_anchor_up();
|
||||
init_scroll();
|
||||
sorttable.init
|
||||
sorttable.init();
|
||||
}
|
||||
</script>
|
||||
<?php
|
||||
|
|
@ -123,10 +123,17 @@ if ( isset ($_GET['viewsearch']))
|
|||
/*
|
||||
* 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'));
|
||||
$r=HtmlInput::get_to_hidden(array('l','date_start','date_end','desc','amount_min','amount_max',
|
||||
'qcode','accounting','unpaid','gDossier','ledger_type'));
|
||||
if (isset($_GET['r_jrn'])) {
|
||||
foreach ($_GET['r_jrn'] as $k=>$v)
|
||||
$r.=HtmlInput::hidden('r_jrn['.$k.']',$v);
|
||||
$http=new HttpInput();
|
||||
$a_rjrn=$http->get("r_jrn","array");
|
||||
foreach ($a_rjrn as $k=>$v) {
|
||||
// Protect : check that $k and $v are numeric
|
||||
if (isNumber($k)&&isNumber($v)) {
|
||||
$r.=HtmlInput::hidden('r_jrn['.$k.']',$v);
|
||||
}
|
||||
}
|
||||
}
|
||||
echo '<form action="export.php" method="get">';
|
||||
echo $r;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue