if (isset($system_id)) { $system_id = qpg($system_id); $sql .= "AND request.system_id={$system_id} "; } if (isset($request_type)) { $request_type = qpg($request_type); $sql .= "AND request.request_type={$request_type} "; } if (isset($requested_by)) { $requested_by = intval($requested_by); $sql .= "AND requester_id = {$requested_by} "; } $sql .= "GROUP BY status_lookup.lookup_desc "; $sql .= "ORDER BY 2 DESC;"; // echo "$sql"; $pie = new BarChart($sql); /* include("page-header.php"); */ $pie->Render(); /* include("page-footer.php"); */ error_reporting(7); if ($debuglevel > 0) { $total_query_time = sprintf("%3.06lf", $total_query_time); error_log("{$sysabbr} total_query_ TQ: {$total_query_time} URI: {$REQUEST_URI}", 0); $total_time = sprintf("%3.06lf", duration($begin_processing, microtime())); error_log("{$sysabbr} process_time TT: {$total_time} Agent: {$HTTP_USER_AGENT} Referrer: {$HTTP_REFERER} ", 0); error_log("=============================================== Endof {$PHP_SELF}"); }