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'=>$Language->getText('pm_addtask','title'),'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><?php echo $Language->getText('pm','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=<?php echo $Language->getText('general','submit') ?> name="submit"></font>
42 <strong><?php echo $Language->getText('pm','percent_complete') ?>:</strong><br />
43 <?php echo $pg->percentCompleteBox(); ?>
46 <strong><?php echo $Language->getText('pm','priority') ?>:</strong><br />
47 <?php echo build_priority_select_box(); ?>
53 <strong><?php echo $Language->getText('pm','summary') ?>:</strong><?php echo utils_requiredField(); ?><br />
54 <input type="text" name="summary" size="40" maxlength="65" value="<?php echo $related_artifact_summary; ?>">
60 <strong><?php echo $Language->getText('pm','details') ?>:</strong><?php echo utils_requiredField(); ?><br />
61 <textarea name="details" rows="5" cols="40" wrap="soft"></textarea></td>
66 <strong><?php echo $Language->getText('pm','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)));
73 ?><br /><?php echo $Language->getText('pm','date_note') ?>
74 <br /><a href="calendar.php?group_id=<?php echo $group_id; ?>&group_project_id=<?php echo $group_project_id; ?>" target="_blank"><?php echo $Language->getText('pm','view_calendar') ?></a>
81 <strong><?php echo $Language->getText('pm','end_date') ?>:</strong><br />
83 echo $pg->showMonthBox ('end_month',date('m', (time()+604800)));
84 echo $pg->showDayBox ('end_day',date('d', (time()+604800)));
85 echo $pg->showYearBox ('end_year',date('Y', (time()+604800)));
86 echo $pg->showHourBox ('end_hour',date('G', (time()+604800)));
87 echo $pg->showMinuteBox ('end_minute', date('i', 15*((time()+604800)%15)));
95 <strong><?php echo $Language->getText('pm','assigned_to') ?>:</strong><br />
97 echo $pt->multipleAssignedBox();
101 <strong><?php echo $Language->getText('pm','dependent') ?>:</strong><br />
103 echo $pt->multipleDependBox();
105 <?php echo $Language->getText('pm_addtask','dependent_note') ?>
111 <strong><?php echo $Language->getText('pm','hours') ?>:</strong><?php echo utils_requiredField(); ?><br />
112 <input type="text" name="hours" size="5">
116 <input type="submit" value="<?php echo $Language->getText('general','submit') ?>" name="submit">