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
12 ('title' => _('Modify').' [#'.$ah->getID(). '] '
13 . util_unconvert_htmlspecialchars($ah->getSummary()),
14 'atid'=>$ath->getID()));
19 <h1>[#<?php echo $ah->getID(); ?>] <?php echo $ah->getSummary(); ?></h1>
21 <form action="<?php echo getStringFromServer('PHP_SELF'); ?>?group_id=<?php echo $group_id; ?>&atid=<?php echo $ath->getID(); ?>" enctype="multipart/form-data" method="post">
22 <input type="hidden" name="form_key" value="<?php echo form_generate_key(); ?>"/>
23 <input type="hidden" name="func" value="postmod"/>
24 <input type="hidden" name="MAX_FILE_SIZE" value="10000000" />
25 <input type="hidden" name="artifact_id" value="<?php echo $ah->getID(); ?>"/>
29 if (session_loggedin()) {
33 if ($ah->isMonitoring()) {
36 $text=_('Stop monitor');
43 <a href="index.php?group_id='.$group_id.'&artifact_id='.$ah->getID().'&atid='.$ath->getID().'&func=monitor"><strong>'.
44 html_image('ic/'.$img.'','20','20',array()).' '.$text.'</strong></a>';
48 if ($group->usesPM()) {
50 <a href="'.getStringFromServer('PHP_SELF').'?func=taskmgr&group_id='.$group_id.'&atid='.$atid.'&aid='.$aid.'">'.
51 html_image('ic/taskman20w.png','20','20',array()).'<strong>'._('Build Task Relation').'</strong></a>';
56 <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>
59 <input type="submit" name="submit" value="<?php echo _('Save Changes') ?>" />
65 <table border="0" width="80%">
68 <strong><?php echo _('Submitted by') ?>:</strong><br />
69 <?php echo $ah->getSubmittedRealName();
70 if($ah->getSubmittedBy() != 100) {
71 $submittedUnixName = $ah->getSubmittedUnixName();
72 $submittedBy = $ah->getSubmittedBy();
74 (<tt><?php echo util_make_link_u ($submittedUnixName,$submittedBy,$submittedUnixName); ?></tt>)
77 <td><strong><?php echo _('Date Submitted') ?>:</strong><br />
79 echo date(_('Y-m-d H:i'), $ah->getOpenDate() );
81 $close_date = $ah->getCloseDate();
82 if ($ah->getStatusID()==2 && $close_date > 1) {
83 echo '<br /><strong>'._('Date Closed').':</strong><br />'
84 .date(_('Y-m-d H:i'), $close_date);
91 <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 />
95 // kinda messy - but works for now
96 // need to get list of data types this person can admin
98 $perm =& $group->getPermission(session_get_user());
99 if ($perm->isArtifactAdmin()) {
100 $res = db_query_params ('SELECT agl.group_artifact_id, agl.name
101 FROM artifact_group_list agl, role_setting rs, user_group ug
102 WHERE agl.group_artifact_id=rs.ref_id
104 AND rs.value IN (0, 1, 2)
106 AND ug.role_id = rs.role_id
107 AND rs.section_name=$3',
112 $res = db_query_params ('SELECT agl.group_artifact_id, agl.name
113 FROM artifact_group_list agl, role_setting rs, user_group ug
114 WHERE agl.group_artifact_id=rs.ref_id
116 AND rs.value IN (1, 2)
118 AND ug.role_id = rs.role_id
119 AND rs.section_name=$3',
125 echo html_build_select_box ($res,'new_artifact_type_id',$ath->getID(),false);
134 $ath->renderExtraFields($ah->getExtraFieldData(),true,'none',false,'Any','',false,'UPDATE');
138 <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 />
140 echo $ath->technicianBox('assigned_to', $ah->getAssignedTo() );
141 echo ' '.util_make_link ('/tracker/admin/?group_id='.$group_id.'&atid='. $ath->getID() .'&update_users=1','('._('Admin').')');
144 <strong><?php echo _('Priority') ?>: <a href="javascript:help_window('<?php echo util_make_url ('/help/tracker.php?helpname=priority'); ?>')"><strong>(?)</strong></a></strong><br />
147 Priority of this request
149 build_priority_select_box('priority',$ah->getPriority());
156 <?php if (!$ath->usesCustomStatuses()) { ?>
157 <strong><?php echo _('State') ?>: <a href="javascript:help_window('<?php echo util_make_url ('/help/tracker.php?helpname=status'); ?>')"><strong>(?)</strong></a></strong><br />
160 echo $ath->statusBox ('status_id', $ah->getStatusID() );
168 $ath->renderRelatedTasks($group, $ah);
169 $ath->renderFiles($group_id, $ah);
172 <td><strong><?php echo _('Summary')?><?php echo utils_requiredField(); ?>: <a href="javascript:help_window('/help/tracker.php?helpname=summary')"><strong>(?)</strong></a></strong><br />
173 <input type="text" name="summary" size="70" value="<?php
174 echo $ah->getSummary();
175 ?>" maxlength="255" />
181 <div id="edit" style="display:none;">
182 <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>
184 <textarea name="description" rows="30" cols="79"><?php echo $ah->getDetails(); ?></textarea>
186 <div id="show" style="display:block;">
187 <?php echo $ah->showDetails(true); ?>
193 <script type="text/javascript" src="<?php echo util_make_uri('/tabber/tabber.js') ?>"></script>
194 <div id="tabber" class="tabber">
195 <div class="tabbertab" title="<?php echo _('Followups'); ?>">
196 <table border="0" width="80%">
198 <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 />
200 echo $ath->cannedResponseBox('canned_response');
201 echo ' '.util_make_link ('/tracker/admin/?group_id='.$group_id.'&atid='. $ath->getID() .'&add_canned=1','('._('Admin').')');
204 <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 />
205 <textarea name="details" rows="7" cols="60"></textarea></p>
206 <h2><?php echo _('Followup') ?>:</h2>
208 echo $ah->showMessages();
214 if ($group->usesPM()) {
216 <div class="tabbertab" title="<?php echo _('Related Tasks'); ?>">
217 <h3><?php echo _('Related Tasks'); ?>:</h3>
218 <table border="0" width="80%">
220 $result = $ah->getRelatedTasks();
221 $taskcount = db_numrows($ah->relatedtasks);
222 if ($taskcount > 0) {
223 echo '<tr><td colspan="2">';
224 $titles[] = _('Task Id');
225 $titles[] = _('Task Summary');
226 $titles[] = _('Start Date');
227 $titles[] = _('End Date');
228 echo $GLOBALS['HTML']->listTableTop($titles);
229 for ($i = 0; $i < $taskcount; $i++) {
230 $taskinfo = db_fetch_array($ah->relatedtasks, $i);
231 $taskid = $taskinfo['project_task_id'];
232 $projectid = $taskinfo['group_project_id'];
233 $groupid = $taskinfo['group_id'];
234 $summary = util_unconvert_htmlspecialchars($taskinfo['summary']);
235 $startdate = date(_('Y-m-d H:i'), $taskinfo['start_date']);
236 $enddate = date(_('Y-m-d H:i'), $taskinfo['end_date']);
237 echo '<tr '. $GLOBALS['HTML']->boxGetAltRowStyle($i) .'>
239 <td>'.util_make_link ('/pm/task.php?func=detailtask&project_task_id='.$taskid.'&group_id='.$groupid.'&group_project_id='.$projectid,$summary).'</td>
240 <td>'.$startdate.'</td>
241 <td>'.$enddate.'</td>
244 echo $GLOBALS['HTML']->listTableBottom();
246 echo '<tr><td colspan="3">'._('No Related Tasks').'</td></tr>';
252 <div class="tabbertab" title="<?php echo _('Attachments'); ?>">
253 <h2><?php echo _('Existing Files') ?>:</h2>
254 <table border="0" width="80%">
256 <strong><?php echo _('Attach Files') ?>:</strong><br />
257 <input type="file" name="input_file0" size="30" /><br />
258 <input type="file" name="input_file1" size="30" /><br />
259 <input type="file" name="input_file2" size="30" /><br />
260 <input type="file" name="input_file3" size="30" /><br />
261 <input type="file" name="input_file4" size="30" /><br />
264 // print a list of files attached to this Artifact
266 $file_list =& $ah->getFiles();
268 $count=count($file_list);
270 $title_arr[]=_('Delete');
271 $title_arr[]=_('Name');
272 $title_arr[]=_('Download');
273 echo $GLOBALS['HTML']->listTableTop ($title_arr);
277 for ($i=0; $i<$count; $i++) {
279 <tr '. $GLOBALS['HTML']->boxGetAltRowStyle($i) .'>
280 <td><input type="checkbox" name="delete_file[]" value="'. $file_list[$i]->getID() .'" />'._('Delete').' </td>'.
281 '<td>'. htmlspecialchars($file_list[$i]->getName()) .'</td>
282 <td>'.util_make_link ('/tracker/download.php/'.$group_id.'/'. $ath->getID().'/'. $ah->getID() .'/'.$file_list[$i]->getID().'/'.$file_list[$i]->getName(),_('Download')).'</td>
287 echo '<tr '.$GLOBALS['HTML']->boxGetAltRowStyle(0).'><td colspan="4">'._('No Files Currently Attached').'</td></tr>';
290 echo $GLOBALS['HTML']->listTableBottom();
295 <div class="tabbertab" title="<?php echo _('Commits'); ?>">
296 <table border="0" width="80%">
298 $hookParams['artifact_id']=$aid;
299 plugin_hook("artifact_extra_detail",$hookParams);
303 <div class="tabbertab" title="<?php echo _('Changes'); ?>">
304 <table border="0" width="80%">
306 <h2><?php echo _('Change Log') ?>:</h2>
308 echo $ah->showHistory();
313 <?php $ah->showRelations(); ?>
319 $ath->footer(array());
323 // c-file-style: "bsd"