Bad and missing parameter to header2 funciton
[fa-stable.git] / reporting / reports_main.php
index 7f8ecde66fb162cd99cf51c57dc01c4a7051b6b6..6e215c4683dab944caa3bd45d229d5d91e0069b8 100644 (file)
@@ -11,7 +11,7 @@ include_once($path_to_root . "/reporting/includes/reports_classes.inc");
 $js = "";
 if ($use_date_picker)
        $js .= get_js_date_picker();
-page(_("Reports and Analysis"), false, false, "", $js, true);
+page(_("Reports and Analysis"), false, false, "", $js);
 
 $reports = new BoxReports;
 
@@ -203,6 +203,7 @@ if ($dim == 2)
        array(  new ReportParam(_('Start Date'),'DATEBEGINM'),
                        new ReportParam(_('End Date'),'DATEENDM'),
                        new ReportParam(_('Zero values'),'YES_NO'),
+                       new ReportParam(_('Only balances'),'YES_NO'),
                        new ReportParam(_('Dimension')." 1", 'DIMENSIONS1'),
                        new ReportParam(_('Dimension')." 2", 'DIMENSIONS2'),
                        new ReportParam(_('Comments'),'TEXTBOX')));
@@ -237,6 +238,7 @@ else if ($dim == 1)
        array(  new ReportParam(_('Start Date'),'DATEBEGINM'),
                        new ReportParam(_('End Date'),'DATEENDM'),
                        new ReportParam(_('Zero values'),'YES_NO'),
+                       new ReportParam(_('Only balances'),'YES_NO'),
                        new ReportParam(_('Dimension'), 'DIMENSIONS1'),
                        new ReportParam(_('Comments'),'TEXTBOX')));
 }
@@ -266,6 +268,7 @@ else
        array(  new ReportParam(_('Start Date'),'DATEBEGINM'),
                        new ReportParam(_('End Date'),'DATEENDM'),
                        new ReportParam(_('Zero values'),'YES_NO'),
+                       new ReportParam(_('Only balances'),'YES_NO'),
                        new ReportParam(_('Comments'),'TEXTBOX')));
 }
 $reports->addReport(_('General Ledger'),709,_('Ta&x Report'),
@@ -274,19 +277,7 @@ $reports->addReport(_('General Ledger'),709,_('Ta&x Report'),
                        new ReportParam(_('Summary Only'),'YES_NO'),
                        new ReportParam(_('Comments'),'TEXTBOX')));
 
-echo "
-<form method=post>
-       <input type='hidden' name='REP_ID' value=''>
-       <input type='hidden' name='PARAM_COUNT' value=''>
-       <input type='hidden' name='PARAM_0' value=''>
-       <input type='hidden' name='PARAM_1' value=''>
-       <input type='hidden' name='PARAM_2' value=''>
-       <input type='hidden' name='PARAM_3' value=''>
-       <input type='hidden' name='PARAM_4' value=''>
-       <input type='hidden' name='PARAM_5' value=''>
-       <input type='hidden' name='PARAM_6' value=''>
-
-       <script language='javascript'>
+echo "<script language='javascript'>
                function onWindowLoad() {
                        showClass(" . $_GET['Class'] . ")
                }
@@ -294,7 +285,6 @@ echo "
        </script>
 ";
 echo $reports->getDisplay();
-echo "</form>";
 
 end_page();
 ?>
\ No newline at end of file