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
11 $ath->header(array ('title'=>'[#'. $ah->getID(). '] ' . $ah->getSummary(), 'atid'=>$ath->getID()));
16 <h1>[#<?php echo $ah->getID(); ?>] <?php echo $ah->getSummary(); ?></h1>
18 <form id="trackermodform" action="<?php echo getStringFromServer('PHP_SELF'); ?>?group_id=<?php echo $group_id; ?>&atid=<?php echo $ath->getID(); ?>" enctype="multipart/form-data" method="post">
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="MAX_FILE_SIZE" value="10000000" />
22 <input type="hidden" name="artifact_id" value="<?php echo $ah->getID(); ?>"/>
26 if (session_loggedin()) {
30 if ($ah->isMonitoring()) {
33 $text=_('Stop monitor');
40 <a href="index.php?group_id='.$group_id.'&artifact_id='.$ah->getID().'&atid='.$ath->getID().'&func=monitor"><strong>'.
41 html_image('ic/'.$img.'','20','20',array()).' '.$text.'</strong></a>';
45 if ($group->usesPM()) {
47 <a href="'.getStringFromServer('PHP_SELF').'?func=taskmgr&group_id='.$group_id.'&atid='.$atid.'&aid='.$aid.'">'.
48 html_image('ic/taskman20w.png','20','20',array()).'<strong>'._('Build Task Relation').'</strong></a>';
53 <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>
56 <input type="submit" name="submit" value="<?php echo _('Save Changes') ?>" />
62 <table border="0" width="80%">
65 <strong><?php echo _('Submitted by') ?>:</strong><br />
66 <?php echo $ah->getSubmittedRealName();
67 if($ah->getSubmittedBy() != 100) {
68 $submittedUnixName = $ah->getSubmittedUnixName();
69 $submittedBy = $ah->getSubmittedBy();
71 (<tt><?php echo util_make_link_u ($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 <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 />
92 // kinda messy - but works for now
93 // need to get list of data types this person can admin
95 $perm =& $group->getPermission(session_get_user());
96 if ($perm->isArtifactAdmin()) {
97 $rsv = db_int_array_to_any_clause (array (0, 1, 2)) ;
99 $rsv = db_int_array_to_any_clause (array (1, 2)) ;
101 $res = db_query_params ('SELECT agl.group_artifact_id, agl.name
102 FROM artifact_group_list agl, role_setting rs, user_group ug
103 WHERE agl.group_artifact_id=rs.ref_id
105 AND rs.value = ANY ($2)
107 AND ug.role_id = rs.role_id
108 AND rs.section_name=$4',
114 echo html_build_select_box ($res,'new_artifact_type_id',$ath->getID(),false);
123 $ath->renderExtraFields($ah->getExtraFieldData(),true,'none',false,'Any','',false,'UPDATE');
127 <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 />
129 echo $ath->technicianBox('assigned_to', $ah->getAssignedTo() );
130 echo ' '.util_make_link ('/tracker/admin/?group_id='.$group_id.'&atid='. $ath->getID() .'&update_users=1','('._('Admin').')');
133 <strong><?php echo _('Priority') ?>: <a href="javascript:help_window('<?php echo util_make_url ('/help/tracker.php?helpname=priority'); ?>')"><strong>(?)</strong></a></strong><br />
136 Priority of this request
138 build_priority_select_box('priority',$ah->getPriority());
145 <?php if (!$ath->usesCustomStatuses()) { ?>
146 <strong><?php echo _('State') ?>: <a href="javascript:help_window('<?php echo util_make_url ('/help/tracker.php?helpname=status'); ?>')"><strong>(?)</strong></a></strong><br />
149 echo $ath->statusBox ('status_id', $ah->getStatusID() );
158 <td><strong><?php echo _('Summary')?><?php echo utils_requiredField(); ?>: <a href="javascript:help_window('/help/tracker.php?helpname=summary')"><strong>(?)</strong></a></strong><br />
159 <input type="text" name="summary" size="70" value="<?php
160 echo $ah->getSummary();
161 ?>" maxlength="255" />
167 <div id="edit" style="display:none;">
168 <strong><?php echo _('Detailed description') ?><?php echo utils_requiredField(); ?>: <?php echo notepad_button('document.forms.trackermodform.description') ?> <a href="javascript:help_window('/help/tracker.php?helpname=description')">(?)</a></strong>
170 <textarea name="description" rows="30" cols="79"><?php echo $ah->getDetails(); ?></textarea>
172 <div id="show" style="display:block;">
173 <?php echo $ah->showDetails(true); ?>
179 <script type="text/javascript" src="<?php echo util_make_uri('/tabber/tabber.js') ?>"></script>
180 <div id="tabber" class="tabber">
181 <div class="tabbertab" title="<?php echo _('Followups'); ?>">
182 <table border="0" width="80%">
184 <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 />
186 echo $ath->cannedResponseBox('canned_response');
187 echo ' '.util_make_link ('/tracker/admin/?group_id='.$group_id.'&atid='. $ath->getID() .'&add_canned=1','('._('Admin').')');
190 <strong><?php echo _('OR Attach A Comment') ?>:<?php echo notepad_button('document.forms.trackermodform.details') ?><a href="javascript:help_window('<?php echo util_make_url ('/help/tracker.php?helpname=comment'); ?>')"><strong>(?)</strong></a></strong><br />
191 <textarea name="details" rows="7" cols="60"></textarea></p>
192 <h3><?php echo _('Followup') ?>:</h3>
194 echo $ah->showMessages();
200 if ($group->usesPM()) {
202 <div class="tabbertab" title="<?php echo _('Related Tasks'); ?>">
203 <h3><?php echo _('Related Tasks'); ?>:</h3>
204 <table border="0" width="80%">
206 $result = $ah->getRelatedTasks();
207 $taskcount = db_numrows($ah->relatedtasks);
208 if ($taskcount > 0) {
209 echo '<tr><td colspan="2">';
210 $titles[] = _('Task Id');
211 $titles[] = _('Task Summary');
212 $titles[] = _('Start Date');
213 $titles[] = _('End Date');
214 echo $GLOBALS['HTML']->listTableTop($titles);
215 for ($i = 0; $i < $taskcount; $i++) {
216 $taskinfo = db_fetch_array($ah->relatedtasks, $i);
217 $taskid = $taskinfo['project_task_id'];
218 $projectid = $taskinfo['group_project_id'];
219 $groupid = $taskinfo['group_id'];
220 $summary = util_unconvert_htmlspecialchars($taskinfo['summary']);
221 $startdate = date(_('Y-m-d H:i'), $taskinfo['start_date']);
222 $enddate = date(_('Y-m-d H:i'), $taskinfo['end_date']);
223 echo '<tr '. $GLOBALS['HTML']->boxGetAltRowStyle($i) .'>
225 <td>'.util_make_link ('/pm/task.php?func=detailtask&project_task_id='.$taskid.'&group_id='.$groupid.'&group_project_id='.$projectid,$summary).'</td>
226 <td>'.$startdate.'</td>
227 <td>'.$enddate.'</td>
230 echo $GLOBALS['HTML']->listTableBottom();
232 echo '<tr><td colspan="3">'._('No Related Tasks').'</td></tr>';
238 <div class="tabbertab" title="<?php echo _('Attachments'); ?>">
239 <h3><?php echo _('Existing Files') ?>:</h3>
240 <table border="0" width="80%">
242 <strong><?php echo _('Attach Files') ?>:</strong><br />
243 <input type="file" name="input_file0" size="30" /><br />
244 <input type="file" name="input_file1" size="30" /><br />
245 <input type="file" name="input_file2" size="30" /><br />
246 <input type="file" name="input_file3" size="30" /><br />
247 <input type="file" name="input_file4" size="30" /><br />
250 // print a list of files attached to this Artifact
252 $file_list =& $ah->getFiles();
254 $count=count($file_list);
256 $title_arr[]=_('Delete');
257 $title_arr[]=_('Name');
258 $title_arr[]=_('Download');
259 echo $GLOBALS['HTML']->listTableTop ($title_arr);
263 for ($i=0; $i<$count; $i++) {
265 <tr '. $GLOBALS['HTML']->boxGetAltRowStyle($i) .'>
266 <td><input type="checkbox" name="delete_file[]" value="'. $file_list[$i]->getID() .'" />'._('Delete').' </td>'.
267 '<td>'. htmlspecialchars($file_list[$i]->getName()) .'</td>
268 <td>'.util_make_link ('/tracker/download.php/'.$group_id.'/'. $ath->getID().'/'. $ah->getID() .'/'.$file_list[$i]->getID().'/'.$file_list[$i]->getName(),_('Download')).'</td>
273 echo '<tr '.$GLOBALS['HTML']->boxGetAltRowStyle(0).'><td colspan="4">'._('No Files Currently Attached').'</td></tr>';
276 echo $GLOBALS['HTML']->listTableBottom();
281 <div class="tabbertab" title="<?php echo _('Commits'); ?>">
282 <table border="0" width="80%">
284 $hookParams['artifact_id']=$aid;
285 plugin_hook("artifact_extra_detail",$hookParams);
289 <div class="tabbertab" title="<?php echo _('Changes'); ?>">
290 <table border="0" width="80%">
292 <h3><?php echo _('Change Log') ?>:</h3>
294 echo $ah->showHistory();
299 <?php $ah->showRelations(); ?>
305 $ath->footer(array());
309 // c-file-style: "bsd"