* Copyright 2002 GForge, LLC
* http://gforge.org/
*
- * @version $Id$
*/
/*
Total rewrite in OO and GForge coding guidelines 12/2002 by Tim Perdue
*/
-require_once('note.php');
+require_once $gfwww.'include/note.php';
-pm_header(array('title'=>$Language->getText('pm_addtask','title'),'pagename'=>'pm_addtask','group_project_id'=>$group_project_id));
+$related_artifact_id = getIntFromRequest('related_artifact_id');
+$related_artifact_summary = getStringFromRequest('related_artifact_summary');
+
+pm_header(array('title'=>_('Add a new Task'),'group_project_id'=>$group_project_id));
echo notepad_func();
?>
-<form action="<?php echo "$PHP_SELF?group_id=$group_id&group_project_id=$group_project_id"; ?>" method="post">
+<form action="<?php echo getStringFromServer('PHP_SELF')."?group_id=$group_id&group_project_id=$group_project_id"; ?>" method="post">
<input type="hidden" name="func" value="postaddtask" />
<input type="hidden" name="add_artifact_id[]" value="<?php echo $related_artifact_id; ?>" />
<tr>
<td>
- <strong><?php echo $Language->getText('pm','category') ?>:</strong><br />
- <?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>
+ <strong><?php echo _('Category') ?></strong><br />
+ <?php
+ echo $pg->categoryBox('category_id');
+ echo util_make_link ('/pm/admin/?group_id='.$group_id.'&add_cat=1&group_project_id='.$group_project_id,'('._('admin').')');
+ ?>
</td>
-
- <td><font size="-1">
- <input type="submit" value="<?php echo $Language->getText('general','submit') ?>" name="submit" /></font>
+ <td>
+ <input type="submit" value="<?php echo _('Submit') ?>" name="submit" />
</td>
</tr>
<tr>
<td>
- <strong><?php echo $Language->getText('pm','percent_complete') ?>:</strong><br />
+ <strong><?php echo _('Percent Complete') ?>:</strong><br />
<?php echo $pg->percentCompleteBox(); ?>
</td>
<td>
- <strong><?php echo $Language->getText('pm','priority') ?>:</strong><br />
+ <strong><?php echo _('Priority') ?>:</strong><br />
<?php echo build_priority_select_box(); ?>
</td>
</tr>
<tr>
<td colspan="2">
- <strong><?php echo $Language->getText('pm','summary') ?>:</strong><?php echo utils_requiredField(); ?><br />
- <input type="text" name="summary" size="40" maxlength="65" value="<?php echo $related_artifact_summary; ?>" />
+ <strong><?php echo _('Task Summary') ?>:</strong><?php echo utils_requiredField(); ?><br />
+ <input type="text" name="summary" size="65" maxlength="65" value="<?php echo $related_artifact_summary; ?>" />
</td>
</tr>
<tr>
<td colspan="2">
- <strong><?php echo $Language->getText('pm','details') ?>:</strong><?php echo notepad_button('document.forms[1].details') ?> <?php echo utils_requiredField(); ?><br />
- <textarea name="details" rows="5" cols="40" wrap="soft"></textarea></td>
+ <strong><?php echo _('Task Details') ?>:</strong><?php echo notepad_button('document.forms[2].details') ?> <?php echo utils_requiredField(); ?><br />
+ <textarea name="details" rows="5" cols="80"></textarea></td>
</tr>
<tr>
<td colspan="2">
- <strong><?php echo $Language->getText('pm','hours') ?>:</strong><?php echo utils_requiredField(); ?><br />
- <input type="text" name="hours" size="5" />
+ <strong><?php echo _('Estimated Hours') ?>:</strong><?php echo utils_requiredField(); ?><br />
+ <input type="text" name="hours" size="5" value="1" />
</td>
</tr>
<tr>
<td colspan="2">
- <strong><?php echo $Language->getText('pm','start_date') ?>:</strong><br />
+ <strong><?php echo _('Start Date') ?>:</strong><br />
<?php
echo $pg->showMonthBox ('start_month',date('m', time()));
echo $pg->showDayBox ('start_day',date('d', time()));
echo $pg->showYearBox ('start_year',date('Y', time()));
echo $pg->showHourBox ('start_hour',date('G', time()));
echo $pg->showMinuteBox ('start_minute', date('i', 15*(time()%15)));
- ?><br /><?php echo $Language->getText('pm','date_note') ?>
- <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>
+ ?><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.') ?>
+ <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>
</td>
</tr>
<tr>
<td colspan="2">
- <strong><?php echo $Language->getText('pm','end_date') ?>:</strong><br />
+ <strong><?php echo _('End Date') ?>:</strong><br />
<?php
echo $pg->showMonthBox ('end_month',date('m', (time()+604800)));
echo $pg->showDayBox ('end_day',date('d', (time()+604800)));
<tr>
<td valign="top">
- <strong><?php echo $Language->getText('pm','assigned_to') ?>:</strong><br />
+ <strong><?php echo _('Assigned to') ?>:</strong><br />
<?php
echo $pt->multipleAssignedBox();
?>
</td>
<td valign="top">
- <strong><?php echo $Language->getText('pm','dependent') ?>:</strong><br />
+ <strong><?php echo _('Dependent on task') ?>:</strong><br />
<?php
echo $pt->multipleDependBox();
?><br />
- <?php echo $Language->getText('pm_addtask','dependent_note') ?>
+ <?php echo _('Dependent note') ?>
</td>
</tr>
<tr>
<td colspan="2">
- <input type="submit" value="<?php echo $Language->getText('general','submit') ?>" name="submit" />
+ <input type="submit" value="<?php echo _('Submit') ?>" name="submit" />
</td>
</tr>
- <input type="hidden" name="duration" value="0">
- <input type="hidden" name="parent_id" value="0">
+ <input type="hidden" name="duration" value="0" />
+ <input type="hidden" name="parent_id" value="0" />
<!--
will add duration and parent_id choices at some point
<tr>
<td>
- <strong><?php echo $Language->getText('pm','hours') ?>:</strong><?php echo utils_requiredField(); ?><br />
+ <strong><?php echo _('Estimated Hours') ?>:</strong><?php echo utils_requiredField(); ?><br />
<input type="text" name="hours" size="5" />
</td>
<td>
- <input type="submit" value="<?php echo $Language->getText('general','submit') ?>" name="submit" />
+ <input type="submit" value="<?php echo _('Submit') ?>" name="submit" />
</td>
</tr>
-->