Project Status
draw_time_header($hdr_file, $project_start, $project_end, 2, 5, 4, 4); ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// // Write output ////////////////////////////////////////////////////////////////////////////// // no. of columns to print $no_cols = $_SESSION['columns']; // retrieve input data (put into "data" for convenience) $data = $_SESSION['schedule_data']; echo "{$data[0][$col]} | ";
}
echo "|
{$data[$row][$col]} | ";
}
// get file name for temp image
$tfi = sprintf("%d", $_SESSION['tmp_file_index']++);
$bar_file = "tmp-".session_id().$tfi."-img.png";
// get the bar start & end dates (into UNIX format from string input)
$bar_start = strtotime($data[$row][2]);
$bar_end = strtotime($data[$row][3]);
$completion = $data[$row][4];
//draw the bar into temp image file
$chart -> draw_bar($bar_file, $bar_start, $bar_end, 3, $completion, $data[$row][1]);
// draw the bar into the table
echo "