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 require_once('note.php');
21 pm_header(array('title'=>$Language->getText('pm_addtask','title'),'pagename'=>'pm_addtask','group_project_id'=>$group_project_id));
25 <form action="<?php echo "$PHP_SELF?group_id=$group_id&group_project_id=$group_project_id"; ?>" method="post">
26 <input type="hidden" name="func" value="postaddtask" />
27 <input type="hidden" name="add_artifact_id[]" value="<?php echo $related_artifact_id; ?>" />
29 <table border="0" width="100%">
33 <strong><?php echo $Language->getText('pm','category') ?>:</strong><br />
34 <?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"; ?>">(<?php echo $Language->getText('pm','admin') ?>)</a>
38 <input type="submit" value="<?php echo $Language->getText('general','submit') ?>" name="submit" /></font>
44 <strong><?php echo $Language->getText('pm','percent_complete') ?>:</strong><br />
45 <?php echo $pg->percentCompleteBox(); ?>
48 <strong><?php echo $Language->getText('pm','priority') ?>:</strong><br />
49 <?php echo build_priority_select_box(); ?>
55 <strong><?php echo $Language->getText('pm','summary') ?>:</strong><?php echo utils_requiredField(); ?><br />
56 <input type="text" name="summary" size="40" maxlength="65" value="<?php echo $related_artifact_summary; ?>" />
62 <strong><?php echo $Language->getText('pm','details') ?>:</strong><?php echo notepad_button('document.forms[1].details') ?> <?php echo utils_requiredField(); ?><br />
63 <textarea name="details" rows="5" cols="40" wrap="soft"></textarea></td>
68 <strong><?php echo $Language->getText('pm','hours') ?>:</strong><?php echo utils_requiredField(); ?><br />
69 <input type="text" name="hours" size="5" />
75 <strong><?php echo $Language->getText('pm','start_date') ?>:</strong><br />
77 echo $pg->showMonthBox ('start_month',date('m', time()));
78 echo $pg->showDayBox ('start_day',date('d', time()));
79 echo $pg->showYearBox ('start_year',date('Y', time()));
80 echo $pg->showHourBox ('start_hour',date('G', time()));
81 echo $pg->showMinuteBox ('start_minute', date('i', 15*(time()%15)));
82 ?><br /><?php echo $Language->getText('pm','date_note') ?>
83 <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>
90 <strong><?php echo $Language->getText('pm','end_date') ?>:</strong><br />
92 echo $pg->showMonthBox ('end_month',date('m', (time()+604800)));
93 echo $pg->showDayBox ('end_day',date('d', (time()+604800)));
94 echo $pg->showYearBox ('end_year',date('Y', (time()+604800)));
95 echo $pg->showHourBox ('end_hour',date('G', (time()+604800)));
96 echo $pg->showMinuteBox ('end_minute', date('i', 15*((time()+604800)%15)));
104 <strong><?php echo $Language->getText('pm','assigned_to') ?>:</strong><br />
106 echo $pt->multipleAssignedBox();
110 <strong><?php echo $Language->getText('pm','dependent') ?>:</strong><br />
112 echo $pt->multipleDependBox();
114 <?php echo $Language->getText('pm_addtask','dependent_note') ?>
120 <input type="submit" value="<?php echo $Language->getText('general','submit') ?>" name="submit" />
123 <input type="hidden" name="duration" value="0">
124 <input type="hidden" name="parent_id" value="0">
126 will add duration and parent_id choices at some point
129 <strong><?php echo $Language->getText('pm','hours') ?>:</strong><?php echo utils_requiredField(); ?><br />
130 <input type="text" name="hours" size="5" />
134 <input type="submit" value="<?php echo $Language->getText('general','submit') ?>" name="submit" />
146 // c-file-style: "bsd"