* Copyright 1999-2001 (c) VA Linux Systems
* http://sourceforge.net
*
- * @version $Id$
*/
-
-$ath->header(array ('title'=>_('Modify').': '.$ah->getID(). ' - ' . $ah->getSummary(),'atid'=>$ath->getID() ));
+$ath->header(array ('title'=>'[#'. $ah->getID(). '] ' . $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" 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%">
</td>
</tr>
</table>
-<br />
+<p/>
<?php } ?>
<table border="0" width="80%">
<tr>
//
$perm =& $group->getPermission(session_get_user());
if ($perm->isArtifactAdmin()) {
- $alevel=' >= 0';
+ $rsv = db_int_array_to_any_clause (array (0, 1, 2)) ;
} else {
- $alevel=' > 1';
+ $rsv = db_int_array_to_any_clause (array (1, 2)) ;
}
- $sql="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='". user_getid() ."'
- AND rs.value $alevel
- AND agl.group_id='$group_id'
- AND ug.role_id = rs.role_id
- AND rs.section_name='tracker'";
- $res=db_query($sql);
+ $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 = ANY ($2)
+ AND agl.group_id=$3
+ AND ug.role_id = rs.role_id
+ AND rs.section_name=$4',
+ array(user_getid(),
+ $rsv,
+ $group_id,
+ 'tracker'));
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>
</tr>
<tr>
- <td><strong><?php echo _('Summary')?>: <a href="javascript:help_window('<?php echo util_make_url ('/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[2].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="<?php echo util_make_url('/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 _('Followups'); ?>">
<table border="0" width="80%">
echo ' '.util_make_link ('/tracker/admin/?group_id='.$group_id.'&atid='. $ath->getID() .'&add_canned=1','('._('Admin').')');
?>
<p>
- <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 />
+ <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>
<h3><?php echo _('Followup') ?>:</h3>
<?php
</table>
</div>
<?php
-$tabcnt=0;
if ($group->usesPM()) {
?>
<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) {
$titles[] = _('Task Summary');
$titles[] = _('Start Date');
$titles[] = _('End Date');
- echo $GLOBALS['HTML']->listTableTop($titles,'',$tabcnt);
+ echo $GLOBALS['HTML']->listTableTop($titles);
for ($i = 0; $i < $taskcount; $i++) {
$taskinfo = db_fetch_array($ah->relatedtasks, $i);
$taskid = $taskinfo['project_task_id'];
<table border="0" width="80%">
<tr><td colspan="2">
<strong><?php echo _('Attach Files') ?>:</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 />
+ <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[]=_('Delete');
$title_arr[]=_('Name');
$title_arr[]=_('Download');
- echo $GLOBALS['HTML']->listTableTop ($title_arr,'',$tabcnt);
+ 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><input type="checkbox" name="delete_file[]" value="'. $file_list[$i]->getID() .'" />'._('Delete').' </td>'.
'<td>'. htmlspecialchars($file_list[$i]->getName()) .'</td>
- <td>i'.util_make_link ('/tracker/download.php/'.$group_id.'/'. $ath->getID().'/'. $ah->getID() .'/'.$file_list[$i]->getID().'/'.$file_list[$i]->getName(),_('Download')).'</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>';
}
</td></tr>
</table>
</div>
+<?php $ah->showRelations(); ?>
</div>
</form>