3 * FusionForge Project Management Facility
5 * Copyright 1999-2000, Tim Perdue/Sourceforge
6 * Copyright 2002, Tim Perdue/GForge, LLC
7 * http://fusionforge.org
9 * This file is part of FusionForge. FusionForge is free software;
10 * you can redistribute it and/or modify it under the terms of the
11 * GNU General Public License as published by the Free Software
12 * Foundation; either version 2 of the Licence, or (at your option)
15 * FusionForge is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License along
21 * with FusionForge; if not, write to the Free Software Foundation, Inc.,
22 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
25 require_once $gfwww.'include/note.php';
27 $related_artifact_id = getIntFromRequest('related_artifact_id');
28 $related_artifact_summary = getStringFromRequest('related_artifact_summary');
30 pm_header(array('title'=>_('Add a new Task'),'group_project_id'=>$group_project_id));
34 <form id="addtaskform" action="<?php echo getStringFromServer('PHP_SELF')."?group_id=$group_id&group_project_id=$group_project_id"; ?>" method="post">
35 <input type="hidden" name="func" value="postaddtask" />
36 <input type="hidden" name="add_artifact_id[]" value="<?php echo $related_artifact_id; ?>" />
38 <table class="fullwidth">
42 <strong><?php echo _('Category') ?></strong><br />
44 echo $pg->categoryBox('category_id');
45 echo util_make_link ('/pm/admin/?group_id='.$group_id.'&add_cat=1&group_project_id='.$group_project_id,'('._('admin').')');
49 <input type="submit" value="<?php echo _('Submit') ?>" name="submit" />
55 <strong><?php echo _('Percent Complete') ?>:</strong><br />
56 <?php echo $pg->percentCompleteBox(); ?>
59 <strong><?php echo _('Priority') ?>:</strong><br />
60 <?php echo build_priority_select_box(); ?>
66 <strong><?php echo _('Task Summary') ?>:</strong><?php echo utils_requiredField(); ?><br />
67 <input type="text" name="summary" size="65" maxlength="65" value="<?php echo $related_artifact_summary; ?>" />
73 <strong><?php echo _('Task Details') ?>:</strong><?php echo notepad_button('document.forms.addtaskform.details') ?> <?php echo utils_requiredField(); ?><br />
75 $GLOBALS['editor_was_set_up']=false;
77 $params['name'] = 'details';
78 $params['width'] = "800";
79 $params['height'] = "500";
81 $params['group'] = $group_id;
82 plugin_hook("text_editor",$params);
83 if (!$GLOBALS['editor_was_set_up']) {
84 echo '<textarea name="details" rows="5" cols="80"></textarea>';
86 unset($GLOBALS['editor_was_set_up']);
92 <strong><?php echo _('Estimated Hours') ?>:</strong><?php echo utils_requiredField(); ?><br />
93 <input type="text" name="hours" size="5" value="1" />
99 <strong><?php echo _('Start Date') ?>:</strong><br />
101 echo $pg->showMonthBox ('start_month',date('m', time()));
102 echo $pg->showDayBox ('start_day',date('d', time()));
103 echo $pg->showYearBox ('start_year',date('Y', time()));
104 echo $pg->showHourBox ('start_hour',date('G', time()));
105 echo $pg->showMinuteBox ('start_minute', date('i', 15*(time()%15)));
106 ?><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.') ?>
107 <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>
114 <strong><?php echo _('End Date') ?>:</strong><br />
116 echo $pg->showMonthBox ('end_month',date('m', (time()+604800)));
117 echo $pg->showDayBox ('end_day',date('d', (time()+604800)));
118 echo $pg->showYearBox ('end_year',date('Y', (time()+604800)));
119 echo $pg->showHourBox ('end_hour',date('G', (time()+604800)));
120 echo $pg->showMinuteBox ('end_minute', date('i', 15*((time()+604800)%15)));
128 <strong><?php echo _('Assigned to') ?>:</strong><br />
130 echo $pt->multipleAssignedBox();
134 <strong><?php echo _('Dependent on task') ?>:</strong><br />
136 echo $pt->multipleDependBox();
138 <?php echo _('Dependent note') ?>
144 <input type="submit" value="<?php echo _('Submit') ?>" name="submit" />
145 <input type="hidden" name="duration" value="0" />
146 <input type="hidden" name="parent_id" value="0" />
150 will add duration and parent_id choices at some point
153 <strong><?php echo _('Estimated Hours') ?>:</strong><?php echo utils_requiredField(); ?><br />
154 <input type="text" name="hours" size="5" />
158 <input type="submit" value="<?php echo _('Submit') ?>" name="submit" />
171 // c-file-style: "bsd"