pm_header(array("title" => $title)); pm_reporting_header($group_id); echo "\n<H2>{$title}</H2>"; reports_quick_graph($subtitle1, $sql1, $sql2, $bar_colors); if ($comment) { echo $comment; } pm_footer(array()); } if ($group_id && user_ismember($group_id)) { include $DOCUMENT_ROOT . '/include/HTML_Graphs.php'; if ($what) { /* Update the database */ $period_clause = period2sql($period, $span, "start_date"); if ($what == "aging") { pm_header(array("title" => "Aging Report")); pm_reporting_header($group_id); echo "\n<H2>Aging Report</H2>"; $time_now = time(); // echo $time_now."<P>"; if (!$period || $period == "lifespan") { $period = "month"; $span = 12; } if (!$span) { $span = 1; } $sub_duration = period2seconds($period, 1); // echo $sub_duration,"<br>";
function patch_quick_report($group_id, $title, $subtitle1, $sql1, $subtitle2, $sql2) { global $bar_colors; patch_header(array("title" => $title)); patch_reporting_header($group_id); echo "\n<H2>{$title}</H2>"; reports_quick_graph($subtitle1, $sql1, $sql2, $bar_colors); patch_footer(array()); } if ($group_id && user_ismember($group_id)) { include $DOCUMENT_ROOT . '/include/HTML_Graphs.php'; if ($what) { /* Update the database */ $period_clause = period2sql($period, $span, "open_date"); if ($what == "aging") { patch_header(array("title" => "Aging Report")); patch_reporting_header($group_id); echo "\n<H2>Aging Report</H2>"; $time_now = time(); // echo $time_now."<P>"; if (!$period || $period == "lifespan") { $period = "month"; $span = 12; } if (!$span) { $span = 1; } $sub_duration = period2seconds($period, 1); // echo $sub_duration,"<br>";
{ reports_header($group_id, array('aging', 'tech', 'category', 'bug_group', 'resolution'), array('Aging Report', 'Bugs by Technician', 'Bugs by Category', 'Bugs by Bug Group', 'Bugs by Resolution')); } function bugs_quick_report($group_id, $title, $subtitle1, $sql1, $subtitle2, $sql2) { global $bar_colors; bug_header(array("title" => $title)); bug_reporting_header($group_id); echo "\n<H2>{$title}</H2>"; reports_quick_graph($subtitle1, $sql1, $sql2, $bar_colors); bug_footer(array()); } if ($group_id && user_ismember($group_id)) { include $DOCUMENT_ROOT . '/include/HTML_Graphs.php'; if ($what) { $period_clause = period2sql($period, $span, "date"); if ($what == "aging") { bug_header(array("title" => "Aging Report")); bug_reporting_header($group_id); echo "\n<H2>Aging Report</H2>"; $time_now = time(); // echo $time_now."<P>"; if (!$period || $period == "lifespan") { $period = "month"; $span = 12; } if (!$span) { $span = 1; } $sub_duration = period2seconds($period, 1); // echo $sub_duration,"<br>";