X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Fincludes%2Freports_classes.inc;h=363e2284ad8015593a45621d38ef865af714abf7;hb=f50187b9c3095886d7fd847f635cd8763109a75e;hp=8f501fe023f50e359172533a1ade9c4a2c2124af;hpb=37da0ea920fdff712ccef4e1324aa822e981c8fc;p=fa-stable.git diff --git a/reporting/includes/reports_classes.inc b/reporting/includes/reports_classes.inc index 8f501fe0..363e2284 100644 --- a/reporting/includes/reports_classes.inc +++ b/reporting/includes/reports_classes.inc @@ -1,4 +1,14 @@ . +***********************************************************************/ class BoxReports { var $ar_classes; @@ -20,7 +30,7 @@ class BoxReports function getDisplay($class=null) { - global $table_style2, $comp_path, $path_to_root; + global $table_style2, $comp_path, $path_to_root, $pdf_debug, $Ajax; $temp = array_values($this->ar_classes); $display_class = $class==null ? $temp[0] : $this->ar_classes[$class]; @@ -31,44 +41,50 @@ class BoxReports $st_classes = "" . _("Report Classes:") . "
"; foreach($this->ar_classes as $key=>$value) { - $style = $class_counter==0 ? '' : $style = "style='display:none'"; + $style = $class_counter==$_REQUEST['Class'] ? '' : "style='display:none'"; $acc = access_string($key); - $st_classes .= "$acc[0]
"; - $st_reports .= ""; + $st_classes .= "$acc[0]
"; + $st_reports .= "
" . _("Reports For Class: ") . " $key
\n"; foreach($value as $report) - { $acc = access_string($report->name); - $st_reports .= ""; - - $action = $path_to_root.'/reporting/prn_redirect.php'; - - $st_params .= "
" . _("Reports For Class: ") . " $key
$acc[0]
\n" - . "
\n" - . $report->getDisplay() - . "\n
\n" - . "
"; + { + $acc = access_string($report->name); + $st_reports .= "id" + ."'$acc[1]>$acc[0]\n"; + if (isset($_REQUEST['rep_id']) && $_REQUEST['rep_id']==$report->id) { + $action = $path_to_root.'/reporting/prn_redirect.php'; + + $st_params = "
\n" + . "
\n"; + $st_params .= hidden('REP_ID', $report->id, false); + $st_params .= submit('Rep'.$report->id, + _("Display: ") . access_string($report->name,true), + false, '', $pdf_debug==0) . '

'; + $st_params .= $report->getDisplay() + . "\n
\n"; + $Ajax->addUpdate(true, 'rep_form', $st_params); + } } $st_reports .= ""; + $class_counter++; } + $st_params = "
". + "$st_params
"; + + $st = "