heading(get_string('reports', 'tracker'), 1); echo $OUTPUT->heading(get_string('evolution', 'tracker'), 2); $STATUSKEYS = tracker_get_statuskeys($tracker); $ticketsbymonth = tracker_get_stats_by_month($tracker); $ticketsprogressbymonth = tracker_backtrack_stats_by_month($tracker); if (!empty($ticketsbymonth)) { $ticketdates = $ticketsbymonth; unset($ticketdates['sum']); $availdates = array_keys($ticketdates); if (!empty($availdates)) { $lowest = $availdates[0]; $highest = $availdates[count($availdates) - 1]; $low = new StdClass(); list($low->year, $low->month) = explode('-', $lowest); } $dateiter = new date_iterator($low->year, $low->month); $colwidth = 60 / $dateiter->getiterations($highest); } $alltickets = $DB->count_records('tracker_issue', array('trackerid' => $tracker->id)); if (!$alltickets){ echo $OUTPUT->notification(get_string('nodata', 'tracker')); return; } // tracker_print_evolution_form($tracker); ?>
heading(get_string('countbymonth', 'tracker', $alltickets), 3) ?> current(); while (strcmp($current, $highest) <= 0){ ?> next(); $current = $dateiter->current(); } ?> reset(); $current = $dateiter->current(); $last = 0; while (strcmp($current, $highest) <= 0){ ?> next(); $current = $dateiter->current(); } ?>
$new"; echo ' '; echo ($diff > 0) ? "(+$diff)" : '' ; $last = $new; ?>
reset(); $current = $dateiter->current(); while (strcmp($current, $highest) <= 0){ ?> next(); $current = $dateiter->current(); } ?>
$new"; echo ' '; echo ($diff > 0) ? "(+$diff)" : '' ; $last = $new; ?>
reset(); $current = $dateiter->current(); while (strcmp($current, $highest) <= 0){ ?> next(); $current = $dateiter->current(); } ?>
$new"; ?>
heading(get_string('evolutionbymonth', 'tracker', $alltickets), 3) ?> reset(); $current = $dateiter->current(); while (strcmp($current, $highest) <= 0){ ?> next(); $current = $dateiter->current(); } ?> reset(); $current = $dateiter->current(); $last = 0; while (strcmp($current, $highest) <= 0){ ?> next(); $current = $dateiter->current(); } ?>
$new"; echo ' '; echo ($diff > 0) ? "(+$diff)" : '' ; $last = $new; ?>
reset(); $current = $dateiter->current(); while (strcmp($current, $highest) <= 0){ ?> next(); $current = $dateiter->current(); } ?>
$new"; echo ' '; echo ($diff > 0) ? "(+$diff)" : ''; $last = $new; ?>
reset(); $current = $dateiter->current(); while (strcmp($current, $highest) <= 0) { ?> next(); $current = $dateiter->current(); } ?> reset(); $current = $dateiter->current(); while (strcmp($current, $highest) <= 0){ ?> next(); $current = $dateiter->current(); } ?> reset(); $current = $dateiter->current(); while (strcmp($current, $highest) <= 0) { ?> next(); $current = $dateiter->current(); } ?>
$new"; ?>
$new"; ?>
".sprintf('%.1f', $new)."%"; ?>
$v){ // $data[0][] = array($k, $v); $data[0][] = array($k, $trendsum[$k]); $data[1][] = array($k, $testsum[$k]); $data[2][] = array($k, $ressum[$k]); } $jqplot = array( 'title' => array( 'text' => get_string('generaltrend', 'tracker'), 'fontSize' => '1.3em', 'color' => '#000080', ), 'legend' => array( 'show' => true, 'location' => 'e', 'placement' => 'outsideGrid', 'showSwatch' => true, 'marginLeft' => '10px', 'border' => '1px solid #808080', 'labels' => array(get_string('activeplural', 'tracker'), get_string('intest', 'tracker'), get_string('resolvedplural2', 'tracker')), ), 'axesDefaults' => array('labelRenderer' => '$.jqplot.CanvasAxisLabelRenderer'), 'axes' => array( 'xaxis' => array( 'label' => get_string('month', 'tracker'), 'renderer' => '$.jqplot.CategoryAxisRenderer', 'pad' => 0 ), 'yaxis' => array( 'autoscale' => true, 'tickOptions' => array('formatString' => '%2d'), 'rendererOptions' => array('forceTickAt0' => true), 'label' => get_string('tickets', 'tracker'), 'labelRenderer' => '$.jqplot.CanvasAxisLabelRenderer', 'labelOptions' => array('angle' => 90) ) ), 'series' => array( array('color' => '#C00000'), array('color' => '#80FF80'), array('color' => '#00C000'), ), ); tracker_jqplot_print_graph('plot1', $jqplot, $data, 550, 250, 'margin-top:20px;'); ?>