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 $rsv = db_int_array_to_any_clause (array (0, 1, 2)) ;
102 $rsv = db_int_array_to_any_clause (array (1, 2)) ;
104 $res = db_query_params ('SELECT agl.group_artifact_id, agl.name
105 FROM artifact_group_list agl, role_setting rs, user_group ug
106 WHERE agl.group_artifact_id=rs.ref_id
108 AND rs.value = ANY ($2)
110 AND ug.role_id = rs.role_id
111 AND rs.section_name=$4',
117 echo html_build_select_box ($res,'new_artifact_type_id',$ath->getID(),false);
126 $ath->renderExtraFields($ah->getExtraFieldData(),true,'none',false,'Any','',false,'UPDATE');
130 <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 />
132 echo $ath->technicianBox('assigned_to', $ah->getAssignedTo() );
133 echo ' '.util_make_link ('/tracker/admin/?group_id='.$group_id.'&atid='. $ath->getID() .'&update_users=1','('._('Admin').')');
136 <strong><?php echo _('Priority') ?>: <a href="javascript:help_window('<?php echo util_make_url ('/help/tracker.php?helpname=priority'); ?>')"><strong>(?)</strong></a></strong><br />
139 Priority of this request
141 build_priority_select_box('priority',$ah->getPriority());
148 <?php if (!$ath->usesCustomStatuses()) { ?>
149 <strong><?php echo _('State') ?>: <a href="javascript:help_window('<?php echo util_make_url ('/help/tracker.php?helpname=status'); ?>')"><strong>(?)</strong></a></strong><br />
152 echo $ath->statusBox ('status_id', $ah->getStatusID() );
160 $ath->renderRelatedTasks($group, $ah);
161 $ath->renderFiles($group_id, $ah);
164 <td><strong><?php echo _('Summary')?><?php echo utils_requiredField(); ?>: <a href="javascript:help_window('/help/tracker.php?helpname=summary')"><strong>(?)</strong></a></strong><br />
165 <input type="text" name="summary" size="70" value="<?php
166 echo $ah->getSummary();
167 ?>" maxlength="255" />
173 <div id="edit" style="display:none;">
174 <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>
176 <textarea name="description" rows="30" cols="79"><?php echo $ah->getDetails(); ?></textarea>
178 <div id="show" style="display:block;">
179 <?php echo $ah->showDetails(true); ?>
185 <script type="text/javascript" src="<?php echo util_make_uri('/tabber/tabber.js') ?>"></script>
186 <div id="tabber" class="tabber">
187 <div class="tabbertab" title="<?php echo _('Followups'); ?>">
188 <table border="0" width="80%">
190 <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 />
192 echo $ath->cannedResponseBox('canned_response');
193 echo ' '.util_make_link ('/tracker/admin/?group_id='.$group_id.'&atid='. $ath->getID() .'&add_canned=1','('._('Admin').')');
196 <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 />
197 <textarea name="details" rows="7" cols="60"></textarea></p>
198 <h2><?php echo _('Followup') ?>:</h2>
200 echo $ah->showMessages();
206 if ($group->usesPM()) {
208 <div class="tabbertab" title="<?php echo _('Related Tasks'); ?>">
209 <h3><?php echo _('Related Tasks'); ?>:</h3>
210 <table border="0" width="80%">
212 $result = $ah->getRelatedTasks();
213 $taskcount = db_numrows($ah->relatedtasks);
214 if ($taskcount > 0) {
215 echo '<tr><td colspan="2">';
216 $titles[] = _('Task Id');
217 $titles[] = _('Task Summary');
218 $titles[] = _('Start Date');
219 $titles[] = _('End Date');
220 echo $GLOBALS['HTML']->listTableTop($titles);
221 for ($i = 0; $i < $taskcount; $i++) {
222 $taskinfo = db_fetch_array($ah->relatedtasks, $i);
223 $taskid = $taskinfo['project_task_id'];
224 $projectid = $taskinfo['group_project_id'];
225 $groupid = $taskinfo['group_id'];
226 $summary = util_unconvert_htmlspecialchars($taskinfo['summary']);
227 $startdate = date(_('Y-m-d H:i'), $taskinfo['start_date']);
228 $enddate = date(_('Y-m-d H:i'), $taskinfo['end_date']);
229 echo '<tr '. $GLOBALS['HTML']->boxGetAltRowStyle($i) .'>
231 <td>'.util_make_link ('/pm/task.php?func=detailtask&project_task_id='.$taskid.'&group_id='.$groupid.'&group_project_id='.$projectid,$summary).'</td>
232 <td>'.$startdate.'</td>
233 <td>'.$enddate.'</td>
236 echo $GLOBALS['HTML']->listTableBottom();
238 echo '<tr><td colspan="3">'._('No Related Tasks').'</td></tr>';
244 <div class="tabbertab" title="<?php echo _('Attachments'); ?>">
245 <h2><?php echo _('Existing Files') ?>:</h2>
246 <table border="0" width="80%">
248 <strong><?php echo _('Attach Files') ?>:</strong><br />
249 <input type="file" name="input_file0" size="30" /><br />
250 <input type="file" name="input_file1" size="30" /><br />
251 <input type="file" name="input_file2" size="30" /><br />
252 <input type="file" name="input_file3" size="30" /><br />
253 <input type="file" name="input_file4" size="30" /><br />
256 // print a list of files attached to this Artifact
258 $file_list =& $ah->getFiles();
260 $count=count($file_list);
262 $title_arr[]=_('Delete');
263 $title_arr[]=_('Name');
264 $title_arr[]=_('Download');
265 echo $GLOBALS['HTML']->listTableTop ($title_arr);
269 for ($i=0; $i<$count; $i++) {
271 <tr '. $GLOBALS['HTML']->boxGetAltRowStyle($i) .'>
272 <td><input type="checkbox" name="delete_file[]" value="'. $file_list[$i]->getID() .'" />'._('Delete').' </td>'.
273 '<td>'. htmlspecialchars($file_list[$i]->getName()) .'</td>
274 <td>'.util_make_link ('/tracker/download.php/'.$group_id.'/'. $ath->getID().'/'. $ah->getID() .'/'.$file_list[$i]->getID().'/'.$file_list[$i]->getName(),_('Download')).'</td>
279 echo '<tr '.$GLOBALS['HTML']->boxGetAltRowStyle(0).'><td colspan="4">'._('No Files Currently Attached').'</td></tr>';
282 echo $GLOBALS['HTML']->listTableBottom();
287 <div class="tabbertab" title="<?php echo _('Commits'); ?>">
288 <table border="0" width="80%">
290 $hookParams['artifact_id']=$aid;
291 plugin_hook("artifact_extra_detail",$hookParams);
295 <div class="tabbertab" title="<?php echo _('Changes'); ?>">
296 <table border="0" width="80%">
298 <h2><?php echo _('Change Log') ?>:</h2>
300 echo $ah->showHistory();
305 <?php $ah->showRelations(); ?>
311 $ath->footer(array());
315 // c-file-style: "bsd"