* Copyright 1999-2001 (c) VA Linux Systems
* http://sourceforge.net
*
- * @version $Id$
*/
-
-$ath->header(array ('title'=>$Language->getText('tracker_mod','title').': '.$ah->getID(). ' - ' . $ah->getSummary(),'atid'=>$ath->getID() ));
+$ath->header(array
+ ('title' => _('Modify').' [#'.$ah->getID(). '] '
+ . util_unconvert_htmlspecialchars($ah->getSummary()),
+ 'atid'=>$ath->getID()));
echo notepad_func();
?>
- <h3>[#<?php echo $ah->getID(); ?>] <?php echo $ah->getSummary(); ?></h3>
+ <h1>[#<?php echo $ah->getID(); ?>] <?php echo $ah->getSummary(); ?></h1>
- <form action="<?php echo getStringFromServer('PHP_SELF'); ?>?group_id=<?php echo $group_id; ?>&atid=<?php echo $ath->getID(); ?>" enctype="multipart/form-data">
+ <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%">
if ($ah->isMonitoring()) {
$img="xmail16w.png";
$key="monitorstop";
+ $text=_('Stop monitor');
} else {
$img="mail16w.png";
$key="monitor";
+ $text=_('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_monitor',$key).'</strong></a>';
+ html_image('ic/'.$img.'','20','20',array()).' '.$text.'</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>'.$Language->getText('tracker_mod','build_task_relation').'</strong></a>';
+ html_image('ic/taskman20w.png','20','20',array()).'<strong>'._('Build Task Relation').'</strong></a>';
}
?>
</td>
<td>
- <a href="<?php echo getStringFromServer('PHP_SELF')."?func=deleteartifact&aid=$aid&group_id=$group_id&atid=$atid"; ?>"><strong><?php echo html_image('ic/trash.png','16','16',array()) . $Language->getText('tracker_artifact','delete_text'); ?></strong></a>
+ <a href="<?php echo getStringFromServer('PHP_SELF')."?func=deleteartifact&aid=$aid&group_id=$group_id&atid=$atid"; ?>"><strong><?php echo html_image('ic/trash.png','16','16',array()) . _('Delete'); ?></strong></a>
</td>
<td>
- <input type="submit" name="submit" value="<?php echo $Language->getText('tracker_artifact','save') ?>" />
+ <input type="submit" name="submit" value="<?php echo _('Save Changes') ?>" />
</td>
</tr>
</table>
-<br />
+<p/>
<?php } ?>
<table border="0" width="80%">
<tr>
<td>
- <strong><?php echo $Language->getText('tracker','submitted_by') ?>:</strong><br />
+ <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_u ($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_mod','data_type') ?>: <a href="javascript:help_window('/help/tracker.php?helpname=data_type')"><strong>(?)</strong></a></strong><br />
+ <td><strong><?php echo _('Data Type') ?>: <a href="javascript:help_window('<?php echo util_make_url ('/help/tracker.php?helpname=data_type'); ?>')"><strong>(?)</strong></a></strong><br />
<?php
//
//
$perm =& $group->getPermission(session_get_user());
if ($perm->isArtifactAdmin()) {
- $alevel=' >= 0';
+ $res = db_query_params ('SELECT agl.group_artifact_id, agl.name
+ FROM artifact_group_list agl, role_setting rs, user_group ug
+ WHERE agl.group_artifact_id=rs.ref_id
+ AND ug.user_id=$1
+ AND rs.value IN (0, 1, 2)
+ AND agl.group_id=$2
+ AND ug.role_id = rs.role_id
+ AND rs.section_name=$3',
+ array(user_getid() ,
+ $group_id,
+ 'tracker'));
} else {
- $alevel=' > 1';
+ $res = db_query_params ('SELECT agl.group_artifact_id, agl.name
+ FROM artifact_group_list agl, role_setting rs, user_group ug
+ WHERE agl.group_artifact_id=rs.ref_id
+ AND ug.user_id=$1
+ AND rs.value IN (1, 2)
+ AND agl.group_id=$2
+ AND ug.role_id = rs.role_id
+ AND rs.section_name=$3',
+ array(user_getid() ,
+ $group_id,
+ 'tracker'));
}
- $sql="SELECT agl.group_artifact_id,agl.name
- FROM artifact_group_list agl,artifact_perm ap
- WHERE agl.group_artifact_id=ap.group_artifact_id
- AND ap.user_id='". user_getid() ."'
- AND ap.perm_level $alevel
- AND agl.group_id='$group_id'";
- $res=db_query($sql);
echo html_build_select_box ($res,'new_artifact_type_id',$ath->getID(),false);
</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 />
+ <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 $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>';
+ echo ' '.util_make_link ('/tracker/admin/?group_id='.$group_id.'&atid='. $ath->getID() .'&update_users=1','('._('Admin').')');
?>
</td><td>
- <strong><?php echo $Language->getText('tracker','priority') ?>: <a href="javascript:help_window('/help/tracker.php?helpname=priority')"><strong>(?)</strong></a></strong><br />
+ <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>
<?php if (!$ath->usesCustomStatuses()) { ?>
- <strong><?php echo $Language->getText('tracker','status') ?>: <a href="javascript:help_window('/help/tracker.php?helpname=status')"><strong>(?)</strong></a></strong><br />
+ <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>
</tr>
-
+ <?php
+ $ath->renderRelatedTasks($group, $ah);
+ $ath->renderFiles($group_id, $ah);
+ ?>
<tr>
- <td><strong><?php echo $Language->getText('tracker','summary')?>: <a href="javascript:help_window('/help/tracker.php?helpname=summary')"><strong>(?)</strong></a></strong><br />
+ <td><strong><?php echo _('Summary')?><?php echo utils_requiredField(); ?>: <a href="javascript:help_window('/help/tracker.php?helpname=summary')"><strong>(?)</strong></a></strong><br />
<input type="text" name="summary" size="70" value="<?php
echo $ah->getSummary();
?>" maxlength="255" />
</td>
</tr>
<tr><td colspan="2">
- <?php echo $ah->showDetails(); ?>
+ <div id="edit" style="display:none;">
+ <strong><?php echo _('Detailed description') ?><?php echo utils_requiredField(); ?>: <?php echo notepad_button('document.forms[1].details') ?> <a href="javascript:help_window('/help/tracker.php?helpname=description')">(?)</a></strong>
+ <br />
+ <textarea name="description" rows="30" cols="79"><?php echo $ah->getDetails(); ?></textarea>
+ </div>
+ <div id="show" style="display:block;">
+ <?php echo $ah->showDetails(true); ?>
+ </div>
</td></tr>
</table>
<br />
<br />
-<script type="text/javascript" src="/tabber/tabber.js"></script>
+<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 $Language->getText('trackertab','followups'); ?>">
+<div class="tabbertab" title="<?php echo _('Followups'); ?>">
<table border="0" width="80%">
<tr><td colspan="2">
- <br /><strong><?php echo $Language->getText('tracker_mod','canned_response') ?>: <a href="javascript:help_window('/help/tracker.php?helpname=canned_response')"><strong>(?)</strong></a></strong><br />
+ <br /><strong><?php echo _('Use Canned Response') ?>: <a href="javascript:help_window('<?php echo util_make_url ('/help/tracker.php?helpname=canned_response'); ?>')"><strong>(?)</strong></a></strong><br />
<?php
echo $ath->cannedResponseBox('canned_response');
- echo ' <a href="/tracker/admin/?group_id='.$group_id.'&atid='. $ath->getID() .'&add_canned=1">('.$Language->getText('tracker','admin').')</a>';
+ echo ' '.util_make_link ('/tracker/admin/?group_id='.$group_id.'&atid='. $ath->getID() .'&add_canned=1','('._('Admin').')');
?>
<p>
- <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 />
+ <strong><?php echo _('OR Attach A Comment') ?>:<?php echo notepad_button('document.forms[1].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>
- <h3><?php echo $Language->getText('tracker','followups') ?>:</h3>
+ <h2><?php echo _('Followup') ?>:</h2>
<?php
echo $ah->showMessages();
?>
</table>
</div>
<?php
-$tabcnt=0;
if ($group->usesPM()) {
?>
-<div class="tabbertab" title="<?php echo $Language->getText('trackertab','relatedtasks'); ?>">
- <h3><?php echo $Language->getText('tracker','related_tasks'); ?>:</h3>
+<div class="tabbertab" title="<?php echo _('Related Tasks'); ?>">
+ <h3><?php echo _('Related Tasks'); ?>:</h3>
<table border="0" width="80%">
<?php
- $tabcnt++;
$result = $ah->getRelatedTasks();
$taskcount = db_numrows($ah->relatedtasks);
if ($taskcount > 0) {
echo '<tr><td colspan="2">';
- $titles[] = $Language->getText('pm','task_id');
- $titles[] = $Language->getText('pm','summary');
- $titles[] = $Language->getText('pm','start_date');
- $titles[] = $Language->getText('pm','end_date');
- echo $GLOBALS['HTML']->listTableTop($titles,'',$tabcnt);
+ $titles[] = _('Task Id');
+ $titles[] = _('Task Summary');
+ $titles[] = _('Start Date');
+ $titles[] = _('End Date');
+ echo $GLOBALS['HTML']->listTableTop($titles);
for ($i = 0; $i < $taskcount; $i++) {
$taskinfo = db_fetch_array($ah->relatedtasks, $i);
$taskid = $taskinfo['project_task_id'];
$projectid = $taskinfo['group_project_id'];
$groupid = $taskinfo['group_id'];
$summary = util_unconvert_htmlspecialchars($taskinfo['summary']);
- $startdate = date($sys_datefmt, $taskinfo['start_date']);
- $enddate = date($sys_datefmt, $taskinfo['end_date']);
+ $startdate = date(_('Y-m-d H:i'), $taskinfo['start_date']);
+ $enddate = date(_('Y-m-d H:i'), $taskinfo['end_date']);
echo '<tr '. $GLOBALS['HTML']->boxGetAltRowStyle($i) .'>
<td>'.$taskid.'</td>
- <td><a href="/pm/task.php?func=detailtask&project_task_id='.$taskid.
- '&group_id='.$groupid.'&group_project_id='.$projectid.'">'.$summary.'</a></td>
+ <td>'.util_make_link ('/pm/task.php?func=detailtask&project_task_id='.$taskid.'&group_id='.$groupid.'&group_project_id='.$projectid,$summary).'</td>
<td>'.$startdate.'</td>
<td>'.$enddate.'</td>
</tr>';
}
echo $GLOBALS['HTML']->listTableBottom();
} else {
- echo '<tr><td colspan="3">'.$Language->getText('tracker','no_related_tasks').'</td></tr>';
+ echo '<tr><td colspan="3">'._('No Related Tasks').'</td></tr>';
}
?>
</table>
</div>
<?php } ?>
-<div class="tabbertab" title="<?php echo $Language->getText('trackertab','attachments'); ?>">
- <h3><?php echo $Language->getText('tracker_mod','existing_files') ?>:</h3>
+<div class="tabbertab" title="<?php echo _('Attachments'); ?>">
+ <h2><?php echo _('Existing Files') ?>:</h2>
<table border="0" width="80%">
<tr><td colspan="2">
- <strong><?php echo $Language->getText('tracker','file_upload') ?>:</strong><br />
- <input type="file" name="input_file[]" size="30" /><br />
- <input type="file" name="input_file[]" size="30" /><br />
- <input type="file" name="input_file[]" size="30" /><br />
- <input type="file" name="input_file[]" size="30" /><br />
- <input type="file" name="input_file[]" size="30" /><br />
+ <strong><?php echo _('Attach Files') ?>:</strong><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 />
<?php
//
// print a list of files attached to this Artifact
$file_list =& $ah->getFiles();
$count=count($file_list);
- $tabcnt++;
$title_arr=array();
- $title_arr[]=$Language->getText('tracker_mod','delete');
- $title_arr[]=$Language->getText('tracker_mod','name');
- $title_arr[]=$Language->getText('tracker_mod','download');
- echo $GLOBALS['HTML']->listTableTop ($title_arr,'',$tabcnt);
+ $title_arr[]=_('Delete');
+ $title_arr[]=_('Name');
+ $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() .'">'.$Language->getText('tracker_mod','delete').' </td>'.
+ <td><input type="checkbox" name="delete_file[]" value="'. $file_list[$i]->getID() .'" />'._('Delete').' </td>'.
'<td>'. htmlspecialchars($file_list[$i]->getName()) .'</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="4">'.$Language->getText('tracker_mod','no_files').'</td></tr>';
+ echo '<tr '.$GLOBALS['HTML']->boxGetAltRowStyle(0).'><td colspan="4">'._('No Files Currently Attached').'</td></tr>';
}
echo $GLOBALS['HTML']->listTableBottom();
</td></tr>
</table>
</div>
-<div class="tabbertab" title="<?php echo $Language->getText('trackertab','commits'); ?>">
+<div class="tabbertab" title="<?php echo _('Commits'); ?>">
<table border="0" width="80%">
<?php
$hookParams['artifact_id']=$aid;
?>
</table>
</div>
-<div class="tabbertab" title="<?php echo $Language->getText('trackertab','changes'); ?>">
+<div class="tabbertab" title="<?php echo _('Changes'); ?>">
<table border="0" width="80%">
<tr><td colspan="2">
- <h3><?php echo $Language->getText('tracker_mod','changelog') ?>:</h3>
+ <h2><?php echo _('Change Log') ?>:</h2>
<?php
echo $ah->showHistory();
?>
</td></tr>
</table>
</div>
+<?php $ah->showRelations(); ?>
</div>
</form>