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 ""; // 1st row write header WBS, Actvity, Start, Finish %Complete only echo ''; for ($col=0; $col<$no_cols; $col++) { echo ""; } echo ""; echo ''; // now process each data row (activity) for ($row=1; $row<$_SESSION['no_of_rows']; $row++) { echo ''; for ($col=0; $col<$no_cols; $col++) { echo ""; } // 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 ""; echo ''; } echo '

{$data[0][$col]}

{$data[$row][$col]}


'; ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// // Write forms ////////////////////////////////////////////////////////////////////////////// echo ""; echo ''; echo ''; echo ''; echo '

Display years from '; echo ''; echo ' to '; echo ''; echo '

'; echo 'Display only the first '; echo ' columns'; echo '

'; echo ''; echo '
'; echo '

'; ////////////////////////////////////////////////////////////////////////////// ob_end_flush(); ?>