3 * GForge Project Management Facility
5 * Copyright 2002 GForge, LLC
12 By Tim Perdue, Sourceforge, 11/99
13 Heavy rewrite by Tim Perdue April 2000
15 Total rewrite in OO and GForge coding guidelines 12/2002 by Tim Perdue
18 require_once $gfwww.'include/note.php';
20 $related_artifact_id = getIntFromRequest('related_artifact_id');
21 $related_artifact_summary = getStringFromRequest('related_artifact_summary');
23 pm_header(array('title'=>_('Add a new Task'),'group_project_id'=>$group_project_id));
27 <form action="<?php echo getStringFromServer('PHP_SELF')."?group_id=$group_id&group_project_id=$group_project_id"; ?>" method="post">
28 <input type="hidden" name="func" value="postaddtask" />
29 <input type="hidden" name="add_artifact_id[]" value="<?php echo $related_artifact_id; ?>" />
31 <table border="0" width="100%">
35 <strong><?php echo _('Category') ?></strong><br />
37 echo $pg->categoryBox('category_id');
38 echo util_make_link ('/pm/admin/?group_id='.$group_id.'&add_cat=1&group_project_id='.$group_project_id,'('._('admin').')');
42 <input type="submit" value="<?php echo _('Submit') ?>" name="submit" />
48 <strong><?php echo _('Percent Complete') ?>:</strong><br />
49 <?php echo $pg->percentCompleteBox(); ?>
52 <strong><?php echo _('Priority') ?>:</strong><br />
53 <?php echo build_priority_select_box(); ?>
59 <strong><?php echo _('Task Summary') ?>:</strong><?php echo utils_requiredField(); ?><br />
60 <input type="text" name="summary" size="65" maxlength="65" value="<?php echo $related_artifact_summary; ?>" />
66 <strong><?php echo _('Task Details') ?>:</strong><?php echo notepad_button('document.forms[1].details') ?> <?php echo utils_requiredField(); ?><br />
67 <textarea name="details" rows="5" cols="80"></textarea></td>
72 <strong><?php echo _('Estimated Hours') ?>:</strong><?php echo utils_requiredField(); ?><br />
73 <input type="text" name="hours" size="5" />
79 <strong><?php echo _('Start Date') ?>:</strong><br />
81 echo $pg->showMonthBox ('start_month',date('m', time()));
82 echo $pg->showDayBox ('start_day',date('d', time()));
83 echo $pg->showYearBox ('start_year',date('Y', time()));
84 echo $pg->showHourBox ('start_hour',date('G', time()));
85 echo $pg->showMinuteBox ('start_minute', date('i', 15*(time()%15)));
86 ?><br /><?php echo _('The system will modify your start/end dates if you attempt to create a start date earlier than the end date of any tasks you depend on.') ?>
87 <br /><a href="calendar.php?group_id=<?php echo $group_id; ?>&group_project_id=<?php echo $group_project_id; ?>" target="_blank"><?php echo _('View Calendar') ?></a>
94 <strong><?php echo _('End Date') ?>:</strong><br />
96 echo $pg->showMonthBox ('end_month',date('m', (time()+604800)));
97 echo $pg->showDayBox ('end_day',date('d', (time()+604800)));
98 echo $pg->showYearBox ('end_year',date('Y', (time()+604800)));
99 echo $pg->showHourBox ('end_hour',date('G', (time()+604800)));
100 echo $pg->showMinuteBox ('end_minute', date('i', 15*((time()+604800)%15)));
108 <strong><?php echo _('Assigned to') ?>:</strong><br />
110 echo $pt->multipleAssignedBox();
114 <strong><?php echo _('Dependent on task') ?>:</strong><br />
116 echo $pt->multipleDependBox();
118 <?php echo _('Dependent note') ?>
124 <input type="submit" value="<?php echo _('Submit') ?>" name="submit" />
127 <input type="hidden" name="duration" value="0" />
128 <input type="hidden" name="parent_id" value="0" />
130 will add duration and parent_id choices at some point
133 <strong><?php echo _('Estimated Hours') ?>:</strong><?php echo utils_requiredField(); ?><br />
134 <input type="text" name="hours" size="5" />
138 <input type="submit" value="<?php echo _('Submit') ?>" name="submit" />
150 // c-file-style: "bsd"