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');
29 $feedback = htmlspecialchars(getStringFromRequest('feedback'));
30 $warning_msg = htmlspecialchars(getStringFromRequest('warning_msg'));
31 $error_msg = htmlspecialchars(getStringFromRequest('error_msg'));
33 pm_header(array('title'=>_('Add a new Task'),'group_project_id'=>$group_project_id));
37 <form id="addtaskform" action="<?php echo getStringFromServer('PHP_SELF')."?group_id=$group_id&group_project_id=$group_project_id"; ?>" method="post">
38 <input type="hidden" name="func" value="postaddtask" />
39 <input type="hidden" name="add_artifact_id[]" value="<?php echo $related_artifact_id; ?>" />
41 <table border="0" width="100%">
45 <strong><?php echo _('Category') ?></strong><br />
47 echo $pg->categoryBox('category_id');
48 echo util_make_link ('/pm/admin/?group_id='.$group_id.'&add_cat=1&group_project_id='.$group_project_id,'('._('admin').')');
52 <input type="submit" value="<?php echo _('Submit') ?>" name="submit" />
58 <strong><?php echo _('Percent Complete') ?>:</strong><br />
59 <?php echo $pg->percentCompleteBox(); ?>
62 <strong><?php echo _('Priority') ?>:</strong><br />
63 <?php echo build_priority_select_box(); ?>
69 <strong><?php echo _('Task Summary') ?>:</strong><?php echo utils_requiredField(); ?><br />
70 <input type="text" name="summary" size="65" maxlength="65" value="<?php echo $related_artifact_summary; ?>" />
76 <strong><?php echo _('Task Details') ?>:</strong><?php echo notepad_button('document.forms.addtaskform.details') ?> <?php echo utils_requiredField(); ?><br />
78 $GLOBALS['editor_was_set_up']=false;
80 $params['name'] = 'details';
81 $params['width'] = "800";
82 $params['height'] = "500";
84 $params['group'] = $group_id;
85 plugin_hook("text_editor",$params);
86 if (!$GLOBALS['editor_was_set_up']) {
87 echo '<textarea name="details" rows="5" cols="80"></textarea>';
89 unset($GLOBALS['editor_was_set_up']);
95 <strong><?php echo _('Estimated Hours') ?>:</strong><?php echo utils_requiredField(); ?><br />
96 <input type="text" name="hours" size="5" value="1" />
102 <strong><?php echo _('Start Date') ?>:</strong><br />
104 echo $pg->showMonthBox ('start_month',date('m', time()));
105 echo $pg->showDayBox ('start_day',date('d', time()));
106 echo $pg->showYearBox ('start_year',date('Y', time()));
107 echo $pg->showHourBox ('start_hour',date('G', time()));
108 echo $pg->showMinuteBox ('start_minute', date('i', 15*(time()%15)));
109 ?><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.') ?>
110 <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>
117 <strong><?php echo _('End Date') ?>:</strong><br />
119 echo $pg->showMonthBox ('end_month',date('m', (time()+604800)));
120 echo $pg->showDayBox ('end_day',date('d', (time()+604800)));
121 echo $pg->showYearBox ('end_year',date('Y', (time()+604800)));
122 echo $pg->showHourBox ('end_hour',date('G', (time()+604800)));
123 echo $pg->showMinuteBox ('end_minute', date('i', 15*((time()+604800)%15)));
131 <strong><?php echo _('Assigned to') ?>:</strong><br />
133 echo $pt->multipleAssignedBox();
137 <strong><?php echo _('Dependent on task') ?>:</strong><br />
139 echo $pt->multipleDependBox();
141 <?php echo _('Dependent note') ?>
147 <input type="submit" value="<?php echo _('Submit') ?>" name="submit" />
150 <input type="hidden" name="duration" value="0" />
151 <input type="hidden" name="parent_id" value="0" />
153 will add duration and parent_id choices at some point
156 <strong><?php echo _('Estimated Hours') ?>:</strong><?php echo utils_requiredField(); ?><br />
157 <input type="text" name="hours" size="5" />
161 <input type="submit" value="<?php echo _('Submit') ?>" name="submit" />
174 // c-file-style: "bsd"