Instruction in update.html should include switch to standard theme before upgrade
[fa-stable.git] / reporting / reports_main.php
index 7f8ecde66fb162cd99cf51c57dc01c4a7051b6b6..a27d1d0f7d9c161f8e089482330c085f95379c85 100644 (file)
@@ -1,5 +1,14 @@
 <?php
-
+/**********************************************************************
+    Copyright (C) FrontAccounting, LLC.
+       Released under the terms of the GNU General Public License, GPL, 
+       as published by the Free Software Foundation, either version 3 
+       of the License, or (at your option) any later version.
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
+    See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
+***********************************************************************/
 $path_to_root="..";
 $page_security = 5;
 include_once($path_to_root . "/includes/session.inc");
@@ -11,7 +20,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 +212,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 +247,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 +277,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 +286,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 +294,6 @@ echo "
        </script>
 ";
 echo $reports->getDisplay();
-echo "</form>";
 
 end_page();
 ?>
\ No newline at end of file