?> " method="get"> <table> <tr> <td><strong><?php echo _('Start'); ?> :</strong><br /><?php echo report_weeks_box($report, 'start', $start); ?> </td> <td><strong><?php echo _('End'); ?> :</strong><br /><?php echo report_weeks_box($report, 'end', $end); ?> </td> <td><strong><?php echo _('Task Status'); ?> :</strong><br /><?php echo html_build_select_box_from_arrays($l, $n, 'tstat', $tstat, false); ?> </td> <td><input type="submit" name="submit" value="<?php echo _('Refresh'); ?> "></td> </tr> </table>
$title_arr[] = _('Week'); $title_arr[] = _('Day'); $title_arr[] = _('Estimated Hours'); $title_arr[] = _('Category'); $title_arr[] = _('User'); $title_arr[] = ' '; $report = new Report(); if ($report->isError()) { exit_error('Error', $report->getErrorMessage()); } echo $HTML->listTableTop($title_arr); echo '<form action="/reporting/timeadd.php" method="post" /> <input type="hidden" name="project_task_id" value="' . $project_task_id . '"> <input type="hidden" name="submit" value="1" /> <tr ' . $HTML->boxGetAltRowStyle(@$xi++) . '> <td style="text-align:center">' . report_weeks_box($report, 'week') . '</td> <td style="text-align:center">' . report_day_adjust_box($report, 'days_adjust') . '</td> <td style="text-align:center"><input type="text" name="hours" value="" size="3" maxlength="3" /></td> <td style="text-align:center">' . report_time_category_box('time_code', false) . '</td> <td> </td> <td style="text-align:center"><input type="submit" name="add" value="' . _('Add') . '" /><input type="submit" name="cancel" value="' . _('Cancel') . '" /></td> </tr></form>'; //setenv("TZ=" . $user_timezone); //restore the user�s timezone // // Display Time Recorded for this task // $sql = "SELECT users.realname, rep_time_tracking.report_date, rep_time_tracking.hours, rep_time_category.category_name\n\tFROM users,rep_time_tracking,rep_time_category\n\tWHERE \n\tusers.user_id=rep_time_tracking.user_id\n\tAND rep_time_tracking.time_code=rep_time_category.time_code\n\tAND rep_time_tracking.project_task_id='{$project_task_id}'"; $res = db_query($sql); $total_hours = 0; for ($i = 0; $i < db_numrows($res); $i++) { echo '
echo _('Choose A Week to Record Or Edit Your Time.'); ?> </h3> <p><?php echo _('After you choose a week, you will be prompted to choose a Project/Subproject in the Task Manager.'); ?> <p> <form action="<?php echo getStringFromServer('PHP_SELF'); ?> " method="get" /><strong><?php echo _('Week Starting'); ?> :</strong><br /> <?php echo report_weeks_box($report, 'week'); ?> <p><input type="submit" name="submit" value="<?php echo _('Next'); ?> " /> </form> <?php } report_footer(); // Local Variables: // mode: php // c-file-style: "bsd" // End: