echo _('End'); ?> :</strong><br /><?php echo report_months_box($report, 'end', $end); ?> </td> <td><input type="submit" name="submit" value="<?php echo _('Refresh'); ?> "></td> </tr></table> </form> <p> <?php if ($g_id && $typ == 'r') { $report = new ReportProjectTime($g_id, $type, $start, $end); $labels = $report->labels; $data = $report->getData(); echo $HTML->listTableTop(array(_('Type'), _('Time'))); for ($i = 0; $i < count($labels); $i++) { echo '<tr ' . $HTML->boxGetAltRowStyle($i) . '>' . '<td>' . $labels[$i] . '</td><td>' . $data[$i] . '</td></tr>'; } echo $HTML->listTableBottom(); } elseif ($g_id) { ?> <img src="projecttime_graph.php?<?php echo "start={$start}&end={$end}&g_id={$g_id}&type={$type}"; ?> " width="640" height="480"> <p> <?php
require_once '../env.inc.php'; require_once $gfwww . 'include/pre.php'; require_once $sys_path_to_jpgraph . '/jpgraph.php'; require_once $sys_path_to_jpgraph . '/jpgraph_pie.php'; require_once $sys_path_to_jpgraph . '/jpgraph_pie3d.php'; require_once $gfcommon . 'reporting/ReportProjectTime.class.php'; require_once $gfcommon . 'reporting/report_utils.php'; session_require(array('group' => $sys_stats_group)); $g_id = getStringFromRequest('g_id'); $type = getStringFromRequest('type'); $start = getStringFromRequest('start'); $end = getStringFromRequest('end'); // // Create Report // $report = new ReportProjectTime($g_id, $type, $start, $end); // // Check for error, such as license key problem // if ($report->isError()) { echo $report->getErrorMessage(); exit; } // XXX ogi: Isn't it $type? if (!isset($datatype)) { $datatype = 1; } if (!$start) { $start = mktime(0, 0, 0, date('m'), 1, date('Y')); } if (!$end) {