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 ('title' => _('Modify').' [#'.$ah->getID(). '] '
14 . util_unconvert_htmlspecialchars($ah->getSummary()),
15 'atid'=>$ath->getID()));
20 <h1>[#<?php echo $ah->getID(); ?>] <?php echo $ah->getSummary(); ?></h1>
22 <form action="<?php echo getStringFromServer('PHP_SELF'); ?>?group_id=<?php echo $group_id; ?>&atid=<?php echo $ath->getID(); ?>" enctype="multipart/form-data" method="post">
23 <input type="hidden" name="form_key" value="<?php echo form_generate_key(); ?>" />
24 <input type="hidden" name="func" value="postmod" />
25 <input type="hidden" name="MAX_FILE_SIZE" value="10000000" />
26 <input type="hidden" name="artifact_id" value="<?php echo $ah->getID(); ?>" />
30 if (session_loggedin()) {
34 if ($ah->isMonitoring()) {
42 <a href="index.php?group_id='.$group_id.'&artifact_id='.$ah->getID().'&atid='.$ath->getID().'&func=monitor"><strong>'.
43 html_image('ic/'.$img.'','20','20',array()).' '.$key.'</strong></a>';
44 ?> <a href="javascript:help_window('/help/tracker.php?helpname=monitor')"><strong>(?)</strong></a>
47 if ($group->usesPM()) {
49 <a href="'.getStringFromServer('PHP_SELF').'?func=taskmgr&group_id='.$group_id.'&atid='.$atid.'&aid='.$aid.'">'.
50 html_image('ic/taskman20w.png','20','20',array()).'<strong>'._('Build Task Relation').'</strong></a>';
55 <input type="submit" name="submit" value="<?php echo _('Submit') ?>" />
61 <table border="0" width="80%">
64 <td><strong><?php echo _('Submitted by') ?>:</strong><br />
66 echo $ah->getSubmittedRealName();
67 if($ah->getSubmittedBy() != 100) {
68 $submittedUnixName = $ah->getSubmittedUnixName();
69 $submittedBy = $ah->getSubmittedBy();
71 (<tt><?php echo util_make_link ($submittedUnixName,$submittedBy,$submittedUnixName); ?></tt>)
74 <td><strong><?php echo _('Date Submitted') ?>:</strong><br />
76 echo date(_('Y-m-d H:i'), $ah->getOpenDate() );
78 $close_date = $ah->getCloseDate();
79 if ($ah->getStatusID()==2 && $close_date > 1) {
80 echo '<br /><strong>'._('Date Closed').':</strong><br />'
81 .date(_('Y-m-d H:i'), $close_date);
88 $ath->renderExtraFields($ah->getExtraFieldData(),true,'none',false,'Any','',false,'UPDATE');
92 <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 />
93 <?php echo $ah->getAssignedRealName(); ?> (<?php echo $ah->getAssignedUnixName(); ?>)</td>
95 <strong><?php echo _('Priority') ?>: <a href="javascript:help_window('<?php echo util_make_url ('/help/tracker.php?helpname=priority'); ?>')"><strong>(?)</strong></a></strong><br />
98 Priority of this request
100 echo $ah->getPriority();
107 <?php if (!$ath->usesCustomStatuses()) { ?>
108 <strong><?php echo _('State') ?>: <a href="javascript:help_window('<?php echo util_make_url ('/help/tracker.php?helpname=status'); ?>')"><strong>(?)</strong></a></strong><br />
111 echo $ath->statusBox ('status_id', $ah->getStatusID() );
119 $ath->renderRelatedTasks($group, $ah);
120 $ath->renderFiles($group_id, $ah);
123 <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 />
124 <?php echo $ah->getSummary(); ?>
130 <?php echo $ah->showDetails(); ?>
133 <script type="text/javascript" src="<?php echo util_make_uri('/tabber/tabber.js') ?>"></script>
134 <div id="tabber" class="tabber">
135 <div class="tabbertab" title="<?php echo _('Followups');?>">
136 <table border="0" width="80%">
138 <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 />
139 <textarea name="details" rows="7" cols="60"></textarea>
141 <h2><?php echo _('Followup') ?>:</h2>
143 echo $ah->showMessages();
148 <div class="tabbertab" title="<?php echo _('Attachments'); ?>">
149 <table border="0" width="80%">
151 <?php echo _('Attach Files') ?><br />
152 <input type="file" name="input_file0" size="30" /><br />
153 <input type="file" name="input_file1" size="30" /><br />
154 <input type="file" name="input_file2" size="30" /><br />
155 <input type="file" name="input_file3" size="30" /><br />
156 <input type="file" name="input_file4" size="30" /><br />
158 <h2><?php echo _('Attached Files') ?>:</h2>
161 // print a list of files attached to this Artifact
163 $file_list =& $ah->getFiles();
165 $count=count($file_list);
168 $title_arr[]=_('Delete');
169 $title_arr[]=_('Name');
170 $title_arr[]=_('Description');
171 $title_arr[]=_('Download');
172 echo $GLOBALS['HTML']->listTableTop ($title_arr);
176 for ($i=0; $i<$count; $i++) {
177 echo '<tr '. $GLOBALS['HTML']->boxGetAltRowStyle($i) .'>
178 <td><input type="checkbox" name="delete_file[]" value="'. $file_list[$i]->getID() .'" />'._('Delete').' </td>
179 <td>'. htmlspecialchars($file_list[$i]->getName()) .'</td>
180 <td>'. htmlspecialchars($file_list[$i]->getDescription()) .'</td>
181 <td>'.util_make_link ('/tracker/download.php/'.$group_id.'/'. $ath->getID().'/'. $ah->getID() .'/'.$file_list[$i]->getID().'/'.$file_list[$i]->getName(),_('Download')).'</td>
186 echo '<tr '.$GLOBALS['HTML']->boxGetAltRowStyle(0).'><td colspan="4">'._('No Files Currently Attached').'</td></tr>';
188 echo $GLOBALS['HTML']->listTableBottom();
193 <div class="tabbertab" title="<?php echo _('Commits'); ?>">
194 <table border="0" width="80%">
196 $hookParams['artifact_id']=$aid;
197 plugin_hook("artifact_extra_detail",$hookParams);
201 <div class="tabbertab" title="<?php echo _('Changes'); ?>">
202 <table border="0" width="80%">
204 <h2><?php echo _('Change Log') ?>:</h2>
206 echo $ah->showHistory();
211 <?php $ah->showRelations(); ?>
216 $ath->footer(array());
220 // c-file-style: "bsd"