get_string('posted', 'tracker'), OPEN => get_string('open', 'tracker'), RESOLVING => get_string('resolving', 'tracker'), WAITING => get_string('waiting', 'tracker'), TESTING => get_string('testing', 'tracker'), RESOLVED => get_string('resolved', 'tracker'), ABANDONNED => get_string('abandonned', 'tracker'), TRANSFERED => get_string('transfered', 'tracker')); $ticketsbymonth = tracker_get_stats_by_month($tracker); $ticketsprogressbymonth = tracker_backtrack_stats_by_month($tracker); if (!empty($ticketsbymonth)){ $availdates = array_keys($ticketsbymonth); if (!empty($availdates)){ $lowest = $availdates[0]; $highest = $availdates[count($availdates) - 1]; list($low->year, $low->month) = split('-', $lowest); } } $dateiter = new date_iterator($low->year, $low->month); $colwidth = 60 / $dateiter->getiterations($highest); $alltickets = count_records('tracker_issue', 'trackerid', $tracker->id); if (!$alltickets){ notify(get_string('nodata', 'tracker')); return; } // tracker_print_evolution_form($tracker); ?>
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(); } ?> 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(); $last = 0; while (strcmp($current, $highest) <= 0){ ?> next(); $current = $dateiter->current(); } ?> reset(); $current = $dateiter->current(); while (strcmp($current, $highest) <= 0){ ?> next(); $current = $dateiter->current(); } ?>
$new"; echo ' '; echo ($diff > 0) ? "(+$diff)" : '' ; $last = $new; ?>
$new"; ?>
$new"; ?> $new"; ?>
$new"; echo ' '; echo ($diff > 0) ? "(+$diff)" : '' ; $last = $new; ?>
$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"; echo ' '; echo ($diff > 0) ? "(+$diff)" : '' ; $last = $new; ?>
$new"; ?>
$new"; ?>
reset(); $current = $dateiter->current(); while (strcmp($current, $highest) <= 0){ ?> next(); $current = $dateiter->current(); } ?>
$new"; ?>
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(); } ?> 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(); $last = 0; while (strcmp($current, $highest) <= 0){ ?> next(); $current = $dateiter->current(); } ?> reset(); $current = $dateiter->current(); while (strcmp($current, $highest) <= 0){ ?> next(); $current = $dateiter->current(); } ?>
$new"; echo ' '; echo ($diff > 0) ? "(+$diff)" : '' ; $last = $new; ?>
$new"; ?>
$new"; ?> $new"; ?>
$new"; echo ' '; echo ($diff > 0) ? "(+$diff)" : '' ; $last = $new; ?>
$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"; echo ' '; echo ($diff > 0) ? "(+$diff)" : '' ; $last = $new; ?>
$new"; ?>
$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)."%"; ?>