3 * SourceForge Generic Tracker facility
5 * SourceForge: Breaking Down the Barriers to Open Source Development
6 * Copyright 1999-2001 (c) VA Linux Systems
7 * http://sourceforge.net
13 $ath->header(array ('title'=>_('Modify').': '.$ah->getID(). ' - ' . $ah->getSummary(),'atid'=>$ath->getID()));
16 <h3>[#<?php echo $ah->getID(); ?>] <?php echo $ah->getSummary(); ?></h3>
18 <form action="<?php echo getStringFromServer('PHP_SELF'); ?>?group_id=<?php echo $group_id; ?>&atid=<?php echo $ath->getID(); ?>" METHOD="post" enctype="multipart/form-data">
19 <input type="hidden" name="form_key" value="<?php echo form_generate_key(); ?>" />
20 <input type="hidden" name="func" value="postmod" />
21 <input type="hidden" name="artifact_id" value="<?php echo $ah->getID(); ?>" />
25 if (session_loggedin()) {
29 if ($ah->isMonitoring()) {
31 $key="stop_monitoring";
37 <a href="index.php?group_id='.$group_id.'&artifact_id='.$ah->getID().'&atid='.$ath->getID().'&func=monitor"><strong>'.
38 html_image('ic/'.$img.'','20','20',array()).' '.$key.'</strong></a>';
39 ?> <a href="javascript:help_window('<?php echo util_make_url ('/help/tracker.php?helpname=monitor'); ?>')"><strong>(?)</strong></a>
42 if ($group->usesPM()) {
44 <a href="'.getStringFromServer('PHP_SELF').'?func=taskmgr&group_id='.$group_id.'&atid='.$atid.'&aid='.$aid.'">'.
45 html_image('ic/taskman20w.png','20','20',array()).'<strong>'._('Build Task Relation').'</strong></a>';
50 <input type="submit" name="submit" value="<?php echo _('Submit') ?>" />
55 <table border="0" width="80%">
58 <td><strong><?php echo _('Submitted by') ?>:</strong><br />
60 echo $ah->getSubmittedRealName();
61 if($ah->getSubmittedBy() != 100) {
62 $submittedUnixName = $ah->getSubmittedUnixName();
63 $submittedBy = $ah->getSubmittedBy();
65 (<tt><?php echo util_make_link ($submittedUnixName,$submittedBy,$submittedUnixName); ?></tt>)
68 <td><strong><?php echo _('Date Submitted') ?>:</strong><br />
70 echo date(_('Y-m-d H:i'), $ah->getOpenDate() );
72 $close_date = $ah->getCloseDate();
73 if ($ah->getStatusID()==2 && $close_date > 1) {
74 echo '<br /><strong>'._('Date Closed').':</strong><br />'
75 .date(_('Y-m-d H:i'), $close_date);
82 $ath->renderExtraFields($ah->getExtraFieldData(),true);
86 <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 />
87 <?php echo $ah->getAssignedRealName(); ?> (<?php echo $ah->getAssignedUnixName(); ?>)</td>
89 <strong><?php echo _('Priority') ?>: <a href="javascript:help_window('<?php echo util_make_url ('/help/tracker.php?helpname=priority'); ?>')"><strong>(?)</strong></a></strong><br />
92 Priority of this request
94 echo $ah->getPriority();
101 <?php if (!$ath->usesCustomStatuses()) { ?>
102 <strong><?php echo _('State') ?>: <a href="javascript:help_window('<?php echo util_make_url ('/help/tracker.php?helpname=status'); ?>')"><strong>(?)</strong></a></strong><br />
105 echo $ath->statusBox ('status_id', $ah->getStatusID() );
114 <td colspan="2"><strong><?php echo _('Summary')?>: <a href="javascript:help_window('<?php echo util_make_url ('/help/tracker.php?helpname=summary'); ?>')"><strong>(?)</strong></a></strong><br />
115 <?php echo $ah->getSummary(); ?>
121 <?php echo $ah->showDetails(); ?>
124 <script type="text/javascript" src="<?php echo util_make_url('/tabber/tabber.js') ?>"></script>
125 <div id="tabber" class="tabber">
126 <div class="tabbertab" title="<?php echo _('Followups');?>">
127 <table border="0" width="80%">
129 <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 />
130 <textarea name="details" rows="7" cols="60"></textarea></p>
132 <h3><?php echo _('Followup') ?>:</h3>
134 echo $ah->showMessages();
139 <div class="tabbertab" title="<?php echo _('Attachments'); ?>">
140 <table border="0" width="80%">
142 <?php echo _('Attach Files') ?><br />
143 <input type="file" name="input_file[]" size="30" /><br />
144 <input type="file" name="input_file[]" size="30" /><br />
145 <input type="file" name="input_file[]" size="30" /><br />
146 <input type="file" name="input_file[]" size="30" /><br />
147 <input type="file" name="input_file[]" size="30" /><br />
149 <h3><?php echo _('Attached Files') ?>:</h3>
152 // print a list of files attached to this Artifact
154 $file_list =& $ah->getFiles();
156 $count=count($file_list);
159 $title_arr[]=_('Delete');
160 $title_arr[]=_('Name');
161 $title_arr[]=_('Description');
162 $title_arr[]=_('Download');
163 echo $GLOBALS['HTML']->listTableTop ($title_arr);
167 for ($i=0; $i<$count; $i++) {
168 echo '<tr '. $GLOBALS['HTML']->boxGetAltRowStyle($i) .'>
169 <td><input type="CHECKBOX" name="delete_file[]" value="'. $file_list[$i]->getID() .'">'._('Delete').' </td>
170 <td>'. htmlspecialchars($file_list[$i]->getName()) .'</td>
171 <td>'. htmlspecialchars($file_list[$i]->getDescription()) .'</td>
172 <td>'.util_make_link ('/tracker/download.php/'.$group_id.'/'. $ath->getID().'/'. $ah->getID() .'/'.$file_list[$i]->getID().'/'.$file_list[$i]->getName(),_('Download')).'</td>
177 echo '<tr '.$GLOBALS['HTML']->boxGetAltRowStyle(0).'><td colspan=3>'._('No Files Currently Attached').'</td></tr>';
179 echo $GLOBALS['HTML']->listTableBottom();
184 <div class="tabbertab" title="<?php echo _('Commits'); ?>">
185 <table border="0" width="80%">
187 $hookParams['artifact_id']=$aid;
188 plugin_hook("artifact_extra_detail",$hookParams);
192 <div class="tabbertab" title="<?php echo _('Changes'); ?>">
193 <table border="0" width="80%">
195 <h3><?php echo _('Change Log') ?>:</h3>
197 echo $ah->showHistory();
206 $ath->footer(array());
210 // c-file-style: "bsd"