3 * GForge Project Management Facility
5 * Copyright 2002 GForge, LLC
13 By Tim Perdue, Sourceforge, 11/99
14 Heavy rewrite by Tim Perdue April 2000
16 Total rewrite in OO and GForge coding guidelines 12/2002 by Tim Perdue
19 pm_header(array('title'=>'Add a New Task','pagename'=>'pm_addtask','group_project_id'=>$group_project_id));
23 <form action="<?php echo "$PHP_SELF?group_id=$group_id&group_project_id=$group_project_id"; ?>" method="post">
24 <input type="hidden" name="func" value="postaddtask">
25 <input type="hidden" name="add_artifact_id[]" value="<?php echo $related_artifact_id; ?>">
27 <table border="0" width="100%">
31 <strong>Category:</strong><br />
32 <?php echo $pg->categoryBox('category_id'); ?> <a href="/pm/admin/?<?php echo "group_id=$group_id&add_cat=1&group_project_id=$group_project_id"; ?>">(admin)</a>
36 <input type="submit" value="Submit Changes" name="submit"></font>
42 <strong>Percent Complete:</strong><br />
43 <?php echo $pg->percentCompleteBox(); ?>
46 <strong>Priority:</strong><br />
47 <?php echo build_priority_select_box(); ?>
53 <strong>Task Summary:</strong><br />
54 <input type="text" name="summary" size="40" maxlength="65" value="<?php echo $related_artifact_summary; ?>">
60 <strong>Task Details:</strong><br />
61 <textarea name="details" rows="5" cols="40" wrap="soft"></textarea></td>
66 <strong>Start Date:</strong><br />
68 echo $pg->showMonthBox ('start_month',date('m', time()));
69 echo $pg->showDayBox ('start_day',date('d', time()));
70 echo $pg->showYearBox ('start_year',date('Y', time()));
71 echo $pg->showHourBox ('start_hour',date('G', time()));
72 echo $pg->showMinuteBox ('start_minute', date('i', 15*(time()%15)));
74 The system will modify your start/end dates if you attempt to create a start date
75 earlier than the end date of any tasks you depend on.
76 <br /><a href="calendar.php?group_id=<?php echo $group_id; ?>&group_project_id=<?php echo $group_project_id; ?>" target="_blank">View Calendar</a>
83 <strong>End Date:</strong><br />
85 echo $pg->showMonthBox ('end_month',date('m', (time()+604800)));
86 echo $pg->showDayBox ('end_day',date('d', (time()+604800)));
87 echo $pg->showYearBox ('end_year',date('Y', (time()+604800)));
88 echo $pg->showHourBox ('end_hour',date('G', (time()+604800)));
89 echo $pg->showMinuteBox ('end_minute', date('i', 15*((time()+604800)%15)));
97 <strong>Assigned To:</strong><br />
99 echo $pt->multipleAssignedBox();
103 <strong>Dependent On Task:</strong><br />
105 echo $pt->multipleDependBox();
107 You should choose only tasks which must be completed before this task can start.
113 <strong>Estimated Hours:</strong><br />
114 <input type="text" name="hours" size="5">
118 <input type="submit" value="Submit" name="submit">