X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Fincludes%2Freports_classes.inc;h=0dabe11ca676661ab3d027d91873501709b355d9;hb=5015db8f3d5ab97f6efd569c42192e248ab7baf4;hp=995a39d73c7a535481c3678fd155ecb1e765958a;hpb=c09be0dad6b05131e240349a375af7a4b7bf3444;p=fa-stable.git diff --git a/reporting/includes/reports_classes.inc b/reporting/includes/reports_classes.inc index 995a39d7..0dabe11c 100644 --- a/reporting/includes/reports_classes.inc +++ b/reporting/includes/reports_classes.inc @@ -1,24 +1,24 @@ ar_classes = array(); } - function addReportClass($class_name) + function addReportClass($class_name) { $this->ar_classes[$class_name] = array(); } - function addReport($class_name, $id, $rep_name, $params=null) + function addReport($class_name, $id, $rep_name, $params=null) { $this->ar_classes[$class_name][] = new Report($id,$rep_name,$params); } - function getDisplay($class=null) + function getDisplay($class=null) { global $table_style2; $temp = array_values($this->ar_classes); @@ -28,12 +28,12 @@ class BoxReports $st_reports = ""; $st_params = ""; $st_classes = "" . _("Report Classes:") . "
"; - foreach($this->ar_classes as $key=>$value) + foreach($this->ar_classes as $key=>$value) { $style = $class_counter==0 ? '' : $style = "style='display:none'"; $st_classes .= "$key
"; $st_reports .= ""; - foreach($value as $report) + foreach($value as $report) { $st_reports .= ""; $st_params .= "
" . _("Reports For Class: ") . " $key
" . $report->name . "
"; @@ -71,27 +71,27 @@ class BoxReports } } -class Report +class Report { var $id; var $name; var $ar_params; - function Report($id, $name, $ar_params) + function Report($id, $name, $ar_params) { $this->id = $id; $this->name = $name; $this->ar_params = $ar_params; } - function getDisplay() + function getDisplay() { global $comp_path, $path_to_root, $use_date_picker; $rep_file = $comp_path.'/'.user_company(). - "/reporting/rep".$this->id.".php"; + "/reporting/rep".$this->id.".php"; if (!file_exists($rep_file)) $rep_file = $path_to_root ."/reporting/rep".$this->id.".php"; - + $st = "