<?php
/**
- *
- * SourceForge Generic Tracker facility
- *
- * SourceForge: Breaking Down the Barriers to Open Source Development
- * Copyright 1999-2001 (c) VA Linux Systems
- * http://sourceforge.net
- *
- * @version $Id$
- *
- */
+ * SourceForge Generic Tracker facility
+ *
+ * SourceForge: Breaking Down the Barriers to Open Source Development
+ * Copyright 1999-2001 (c) VA Linux Systems
+ * http://sourceforge.net
+ *
+ */
-$ath->header(array ('title'=>$Language->getText('tracker_mod','title').': '.$ah->getID(). ' - ' . $ah->getSummary(),'pagename'=>'tracker','atid'=>$ath->getID(),'sectionvals'=>array($group->getPublicName()) ));
+$ath->header(array ('title'=>_('Modify').': '.$ah->getID(). ' - ' . $ah->getSummary(),'atid'=>$ath->getID()));
?>
- <h2>[#<?php echo $ah->getID(); ?>] <?php echo $ah->getSummary(); ?></h2>
+ <h3>[#<?php echo $ah->getID(); ?>] <?php echo $ah->getSummary(); ?></h3>
- <table width="100%">
+ <form action="<?php echo getStringFromServer('PHP_SELF'); ?>?group_id=<?php echo $group_id; ?>&atid=<?php echo $ath->getID(); ?>" enctype="multipart/form-data" method="post">
+ <input type="hidden" name="form_key" value="<?php echo form_generate_key(); ?>" />
+ <input type="hidden" name="func" value="postmod" />
+ <input type="hidden" name="MAX_FILE_SIZE" value="10000000" />
+ <input type="hidden" name="artifact_id" value="<?php echo $ah->getID(); ?>" />
+
+ <table width="80%">
<?php
if (session_loggedin()) {
?>
<td><?php
if ($ah->isMonitoring()) {
$img="xmail16w.png";
- $key="stop_monitoring";
+ $key="monitorstop";
} else {
$img="mail16w.png";
$key="monitor";
}
echo '
- <a href="index.php?group_id='.$group_id.'&artifact_id='.$ah->getID().'&atid='.$ath->getID().'&func=monitor"><strong>'.
- html_image('ic/'.$img.'','20','20',array()).' '.$Language->getText('tracker_utils',$key).'</strong></a>';
+ <a href="index.php?group_id='.$group_id.'&artifact_id='.$ah->getID().'&atid='.$ath->getID().'&func=monitor"><strong>'.
+ html_image('ic/'.$img.'','20','20',array()).' '.$key.'</strong></a>';
?> <a href="javascript:help_window('/help/tracker.php?helpname=monitor')"><strong>(?)</strong></a>
</td>
+ <td><?php
+ if ($group->usesPM()) {
+ echo '
+ <a href="'.getStringFromServer('PHP_SELF').'?func=taskmgr&group_id='.$group_id.'&atid='.$atid.'&aid='.$aid.'">'.
+ html_image('ic/taskman20w.png','20','20',array()).'<strong>'._('Build Task Relation').'</strong></a>';
+ }
+ ?>
+ </td>
<td>
- <a href="<?php echo "$PHP_SELF?func=taskmgr&group_id=$group_id&atid=$atid&aid=$aid"; ?>"><?php echo
- html_image('ic/taskman20w.png','20','20',array()); ?><strong><?php echo $Language->getText('tracker_mod','build_task_relation')?></strong></a>
+ <input type="submit" name="submit" value="<?php echo _('Submit') ?>" />
</td>
</tr>
+</table>
+<p/>
<?php } ?>
- <form action="<?php echo $PHP_SELF; ?>?group_id=<?php echo $group_id; ?>&atid=<?php echo $ath->getID(); ?>" METHOD="POST" enctype="multipart/form-data">
- <input type="hidden" name="func" value="postmod">
- <input type="hidden" name="artifact_id" value="<?php echo $ah->getID(); ?>">
+<table border="0" width="80%">
<tr>
- <td><strong><?php echo $Language->getText('tracker','submitted_by') ?>:</strong><br />
+ <td><strong><?php echo _('Submitted by') ?>:</strong><br />
<?php
echo $ah->getSubmittedRealName();
if($ah->getSubmittedBy() != 100) {
$submittedUnixName = $ah->getSubmittedUnixName();
+ $submittedBy = $ah->getSubmittedBy();
?>
- (<tt><a href="/users/<?php echo $submittedUnixName; ?>"><?php echo $submittedUnixName; ?></a></tt>)
+ (<tt><?php echo util_make_link ($submittedUnixName,$submittedBy,$submittedUnixName); ?></tt>)
<?php } ?>
</td>
- <td><strong><?php echo $Language->getText('tracker_mod','date_submitted') ?>:</strong><br />
+ <td><strong><?php echo _('Date Submitted') ?>:</strong><br />
<?php
- echo date($sys_datefmt, $ah->getOpenDate() );
+ echo date(_('Y-m-d H:i'), $ah->getOpenDate() );
$close_date = $ah->getCloseDate();
if ($ah->getStatusID()==2 && $close_date > 1) {
- echo '<br /><strong>'.$Language->getText('tracker_mod','date_closed').':</strong><br />'
- .date($sys_datefmt, $close_date);
+ echo '<br /><strong>'._('Date Closed').':</strong><br />'
+ .date(_('Y-m-d H:i'), $close_date);
}
?>
</td>
</tr>
- <tr>
- <td><strong><?php echo $Language->getText('tracker','category') ?>: <a href="javascript:help_window('/help/tracker.php?helpname=category')"><strong>(?)</strong></a></strong><br />
- <?php
-
- echo $ah->getCategoryName();
-
- ?>
- </td>
- <td><strong><?php echo $Language->getText('tracker','group') ?>: <a href="javascript:help_window('/help/tracker.php?helpname=group')"><strong>(?)</strong></a></strong><br />
- <?php
-
- echo $ah->getArtifactGroupName();
-
- ?>
- </td>
- </tr>
-
<?php
- $ath->renderExtraFields($ah->getExtraFieldData(),true);
- ?>
+ $ath->renderExtraFields($ah->getExtraFieldData(),true,'none',false,'Any','',false,'UPDATE');
+ ?>
<tr>
- <td><strong><?php echo $Language->getText('tracker','assigned_to')?>: <a href="javascript:help_window('/help/tracker.php?helpname=assignee')"><strong>(?)</strong></a></strong><br />
- <?php
-
- echo $ath->technicianBox('assigned_to', $ah->getAssignedTo() );
- echo ' <a href="/tracker/admin/?group_id='.$group_id.'&atid='. $ath->getID() .'&update_users=1">('.$Language->getText('tracker','admin').')</a>';
- ?>
- </td><td>
- <strong><?php echo $Language->getText('tracker','priority') ?>: <a href="javascript:help_window('/help/tracker.php?helpname=priority')"><strong>(?)</strong></a></strong><br />
+ <td><strong><?php echo _('Assigned to')?>: <a href="javascript:help_window('<?php echo util_make_url ('/help/tracker.php?helpname=assignee'); ?>')"><strong>(?)</strong></a></strong><br />
+ <?php echo $ah->getAssignedRealName(); ?> (<?php echo $ah->getAssignedUnixName(); ?>)</td>
+ <td>
+ <strong><?php echo _('Priority') ?>: <a href="javascript:help_window('<?php echo util_make_url ('/help/tracker.php?helpname=priority'); ?>')"><strong>(?)</strong></a></strong><br />
<?php
/*
Priority of this request
<tr>
<td>
- <strong><?php echo $Language->getText('tracker','status') ?>: <a href="javascript:help_window('/help/tracker.php?helpname=status')"><strong>(?)</strong></a></strong><br />
+ <?php if (!$ath->usesCustomStatuses()) { ?>
+ <strong><?php echo _('State') ?>: <a href="javascript:help_window('<?php echo util_make_url ('/help/tracker.php?helpname=status'); ?>')"><strong>(?)</strong></a></strong><br />
<?php
echo $ath->statusBox ('status_id', $ah->getStatusID() );
-
+ }
?>
</td>
<td>
- <?php
- if ($ath->useResolution()) {
- echo '
- <strong>'.$Language->getText('tracker','resolution').': <a href="javascript:help_window(\'/help/tracker.php?helpname=resolution\')"><strong>(?)</strong></a></strong><br />';
- echo $ath->resolutionBox('resolution_id',$ah->getResolutionID());
- } else {
- echo '
- <input type="hidden" name="resolution_id" value="100">';
- }
- ?>
</td>
</tr>
<tr>
- <td colspan="2"><strong><?php echo $Language->getText('tracker','summary')?>: <a href="javascript:help_window('/help/tracker.php?helpname=summary')"><strong>(?)</strong></a></strong><br />
+ <td colspan="2"><strong><?php echo _('Summary')?><?php echo utils_requiredField(); ?>: <a href="javascript:help_window('/help/tracker.php?helpname=summary')"><strong>(?)</strong></a></strong><br />
<?php echo $ah->getSummary(); ?>
</td>
</tr>
<br />
<?php echo $ah->showDetails(); ?>
</td></tr>
-
+</table>
+<script type="text/javascript" src="<?php echo util_make_uri('/tabber/tabber.js') ?>"></script>
+<div id="tabber" class="tabber">
+<div class="tabbertab" title="<?php echo _('Followups');?>">
+<table border="0" width="80%">
<tr><td colspan="2">
- <br /><strong><?php echo $Language->getText('tracker_mod','attach_comment') ?>: <?php echo notepad_button('document.forms[1].details') ?> <a href="javascript:help_window('/help/tracker.php?helpname=comment')"><strong>(?)</strong></a></strong><br />
- <textarea name="details" rows="7" cols="60" wrap="hard"></textarea></p>
+ <br /><strong><?php echo _('OR Attach A Comment') ?>: <?php echo notepad_button('document.forms[2].details') ?> <a href="javascript:help_window('<?php echo util_make_url ('/help/tracker.php?helpname=comment'); ?>')"><strong>(?)</strong></a></strong><br />
+ <textarea name="details" rows="7" cols="60"></textarea>
<p>
- <input type="submit" name="submit" value="<?php echo $Language->getText('general','submit') ?>"></p>
- <h3><?php echo $Language->getText('tracker','followups') ?>:</h3>
+ <h3><?php echo _('Followup') ?>:</h3>
<?php
echo $ah->showMessages();
?>
</td></tr>
-
+</table>
+</div>
+<div class="tabbertab" title="<?php echo _('Attachments'); ?>">
+<table border="0" width="80%">
<tr><td colspan="2">
- <h4><?php echo $Language->getText('tracker_detail','attached_files') ?>:</h4>
+ <?php echo _('Attach Files') ?><br />
+ <input type="file" name="input_file0" size="30" /><br />
+ <input type="file" name="input_file1" size="30" /><br />
+ <input type="file" name="input_file2" size="30" /><br />
+ <input type="file" name="input_file3" size="30" /><br />
+ <input type="file" name="input_file4" size="30" /><br />
+ <p>
+ <h3><?php echo _('Attached Files') ?>:</h3>
<?php
//
// print a list of files attached to this Artifact
$count=count($file_list);
$title_arr=array();
- $title_arr[]=$Language->getText('tracker_detail','name');
- $title_arr[]=$Language->getText('tracker_detail','description');
- $title_arr[]=$Language->getText('tracker_detail','download');
+ $title_arr[]=_('Delete');
+ $title_arr[]=_('Name');
+ $title_arr[]=_('Description');
+ $title_arr[]=_('Download');
echo $GLOBALS['HTML']->listTableTop ($title_arr);
if ($count > 0) {
for ($i=0; $i<$count; $i++) {
echo '<tr '. $GLOBALS['HTML']->boxGetAltRowStyle($i) .'>
+ <td><input type="checkbox" name="delete_file[]" value="'. $file_list[$i]->getID() .'">'._('Delete').' </td>
<td>'. htmlspecialchars($file_list[$i]->getName()) .'</td>
<td>'. htmlspecialchars($file_list[$i]->getDescription()) .'</td>
- <td><a href="/tracker/download.php/'.$group_id.'/'. $ath->getID().'/'. $ah->getID() .'/'.$file_list[$i]->getID().'/'.$file_list[$i]->getName() .'">'.$Language->getText('tracker_mod','download').'</a></td>
+ <td>'.util_make_link ('/tracker/download.php/'.$group_id.'/'. $ath->getID().'/'. $ah->getID() .'/'.$file_list[$i]->getID().'/'.$file_list[$i]->getName(),_('Download')).'</td>
</tr>';
}
} else {
- echo '<tr '.$GLOBALS['HTML']->boxGetAltRowStyle(0).'><td colspan=3>'.$Language->getText('tracker_detail','no_files_attached').'</td></tr>';
+ echo '<tr '.$GLOBALS['HTML']->boxGetAltRowStyle(0).'><td colspan="4">'._('No Files Currently Attached').'</td></tr>';
}
-
-/*
- <strong><?php echo $Language->getText('tracker','check_upload') ?>:</strong> <input type="checkbox" name="add_file" value="1" />
- <a href="javascript:help_window('/help/tracker.php?helpname=attach_file')"><strong>(?)</strong></a><br />
- <p>
- <input type="file" name="input_file" size="30" /></p>
- <p>
- <strong><?php echo $Language->getText('tracker','file_description') ?>:</strong><br />
- <input type="text" name="file_description" size="40" maxlength="255" /></p>
- <h4><?php echo $Language->getText('tracker_mod','existing_files') ?>:</h4>
- <?php
- //
- // print a list of files attached to this Artifact
- //
- $file_list =& $ah->getFiles();
-
- $count=count($file_list);
-
- $title_arr=array();
- $title_arr[]=$Language->getText('tracker_mod','delete');
- $title_arr[]=$Language->getText('tracker_mod','name');
- $title_arr[]=$Language->getText('tracker_mod','description');
- $title_arr[]=$Language->getText('tracker_mod','download');
- echo $GLOBALS['HTML']->listTableTop ($title_arr);
-
- if ($count > 0) {
-
- for ($i=0; $i<$count; $i++) {
- echo '
- <tr '. $GLOBALS['HTML']->boxGetAltRowStyle($i) .'><td><input type="CHECKBOX" name="delete_file[]" value="'. $file_list[$i]->getID() .'">'.$Language->getText('tracker_mod','delete').' </td>'.
- '<td>'. htmlspecialchars($file_list[$i]->getName()) .'</td>
- <td>'. htmlspecialchars($file_list[$i]->getDescription()) .'</td>
- <td><a href="/tracker/download.php/'.$group_id.'/'. $ath->getID().'/'. $ah->getID() .'/'.$file_list[$i]->getID().'/'.$file_list[$i]->getName() .'">'.$Language->getText('tracker_mod','download').'</a></td>
- </tr>';
- }
-
- } else {
- echo '<tr><td colspan=3>'.$Language->getText('tracker_mod','no_files').'</td></tr>';
- }
-
-*/
echo $GLOBALS['HTML']->listTableBottom();
?>
- </td><tr>
+ </td></tr>
+</table>
+</div>
+<div class="tabbertab" title="<?php echo _('Commits'); ?>">
+<table border="0" width="80%">
<?php
$hookParams['artifact_id']=$aid;
plugin_hook("artifact_extra_detail",$hookParams);
?>
+</table>
+</div>
+<div class="tabbertab" title="<?php echo _('Changes'); ?>">
+<table border="0" width="80%">
<tr><td colspan="2">
- <h4><?php echo $Language->getText('tracker_mod','changelog') ?>:</h4>
+ <h3><?php echo _('Change Log') ?>:</h3>
<?php
echo $ah->showHistory();
?>
</td></tr>
-
- </form>
-
- </table>
-
+</table>
+</div>
+<?php $ah->showRelations(); ?>
+</div>
+ </form>
<?php
$ath->footer(array());
+// Local Variables:
+// mode: php
+// c-file-style: "bsd"
+// End:
+
?>