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() ));
18 <h3>[#<?php echo $ah->getID(); ?>] <?php echo $ah->getSummary(); ?></h3>
20 <form action="<?php echo getStringFromServer('PHP_SELF'); ?>?group_id=<?php echo $group_id; ?>&atid=<?php echo $ath->getID(); ?>" enctype="multipart/form-data" method="post">
21 <input type="hidden" name="form_key" value="<?php echo form_generate_key(); ?>"/>
22 <input type="hidden" name="func" value="postmod"/>
23 <input type="hidden" name="artifact_id" value="<?php echo $ah->getID(); ?>"/>
27 if (session_loggedin()) {
31 if ($ah->isMonitoring()) {
34 $text=_('Stop monitor');
41 <a href="index.php?group_id='.$group_id.'&artifact_id='.$ah->getID().'&atid='.$ath->getID().'&func=monitor"><strong>'.
42 html_image('ic/'.$img.'','20','20',array()).' '.$text.'</strong></a>';
46 if ($group->usesPM()) {
48 <a href="'.getStringFromServer('PHP_SELF').'?func=taskmgr&group_id='.$group_id.'&atid='.$atid.'&aid='.$aid.'">'.
49 html_image('ic/taskman20w.png','20','20',array()).'<strong>'._('Build Task Relation').'</strong></a>';
54 <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>
57 <input type="submit" name="submit" value="<?php echo _('Save Changes') ?>" />
63 <table border="0" width="80%">
66 <strong><?php echo _('Submitted by') ?>:</strong><br />
67 <?php echo $ah->getSubmittedRealName();
68 if($ah->getSubmittedBy() != 100) {
69 $submittedUnixName = $ah->getSubmittedUnixName();
70 $submittedBy = $ah->getSubmittedBy();
72 (<tt><?php echo util_make_link_u ($submittedUnixName,$submittedBy,$submittedUnixName); ?></tt>)
75 <td><strong><?php echo _('Date Submitted') ?>:</strong><br />
77 echo date(_('Y-m-d H:i'), $ah->getOpenDate() );
79 $close_date = $ah->getCloseDate();
80 if ($ah->getStatusID()==2 && $close_date > 1) {
81 echo '<br /><strong>'._('Date Closed').':</strong><br />'
82 .date(_('Y-m-d H:i'), $close_date);
89 <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 />
93 // kinda messy - but works for now
94 // need to get list of data types this person can admin
96 $perm =& $group->getPermission(session_get_user());
97 if ($perm->isArtifactAdmin()) {
102 $sql="SELECT agl.group_artifact_id, agl.name
103 FROM artifact_group_list agl, role_setting rs, user_group ug
104 WHERE agl.group_artifact_id=rs.ref_id
105 AND ug.user_id='". user_getid() ."'
107 AND agl.group_id='$group_id'
108 AND ug.role_id = rs.role_id
109 AND rs.section_name='tracker'";
112 echo html_build_select_box ($res,'new_artifact_type_id',$ath->getID(),false);
121 $ath->renderExtraFields($ah->getExtraFieldData(),true);
125 <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 />
127 echo $ath->technicianBox('assigned_to', $ah->getAssignedTo() );
128 echo ' '.util_make_link ('/tracker/admin/?group_id='.$group_id.'&atid='. $ath->getID() .'&update_users=1','('._('Admin').')');
131 <strong><?php echo _('Priority') ?>: <a href="javascript:help_window('<?php echo util_make_url ('/help/tracker.php?helpname=priority'); ?>')"><strong>(?)</strong></a></strong><br />
134 Priority of this request
136 build_priority_select_box('priority',$ah->getPriority());
143 <?php if (!$ath->usesCustomStatuses()) { ?>
144 <strong><?php echo _('State') ?>: <a href="javascript:help_window('<?php echo util_make_url ('/help/tracker.php?helpname=status'); ?>')"><strong>(?)</strong></a></strong><br />
147 echo $ath->statusBox ('status_id', $ah->getStatusID() );
156 <td><strong><?php echo _('Summary')?>: <a href="javascript:help_window('<?php echo util_make_url ('/help/tracker.php?helpname=summary'); ?>')"><strong>(?)</strong></a></strong><br />
157 <input type="text" name="summary" size="70" value="<?php
158 echo $ah->getSummary();
159 ?>" maxlength="255" />
165 <?php echo $ah->showDetails(); ?>
170 <script type="text/javascript" src="/tabber/tabber.js"></script>
171 <div id="tabber" class="tabber">
172 <div class="tabbertab" title="<?php echo _('Followups'); ?>">
173 <table border="0" width="80%">
175 <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 />
177 echo $ath->cannedResponseBox('canned_response');
178 echo ' '.util_make_link ('/tracker/admin/?group_id='.$group_id.'&atid='. $ath->getID() .'&add_canned=1','('._('Admin').')');
181 <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 />
182 <textarea name="details" rows="7" cols="60"></textarea></p>
183 <h3><?php echo _('Followup') ?>:</h3>
185 echo $ah->showMessages();
192 if ($group->usesPM()) {
194 <div class="tabbertab" title="<?php echo _('Related Tasks'); ?>">
195 <h3><?php echo _('Related Tasks'); ?>:</h3>
196 <table border="0" width="80%">
199 $result = $ah->getRelatedTasks();
200 $taskcount = db_numrows($ah->relatedtasks);
201 if ($taskcount > 0) {
202 echo '<tr><td colspan="2">';
203 $titles[] = _('Task Id');
204 $titles[] = _('Task Summary');
205 $titles[] = _('Start Date');
206 $titles[] = _('End Date');
207 echo $GLOBALS['HTML']->listTableTop($titles,'',$tabcnt);
208 for ($i = 0; $i < $taskcount; $i++) {
209 $taskinfo = db_fetch_array($ah->relatedtasks, $i);
210 $taskid = $taskinfo['project_task_id'];
211 $projectid = $taskinfo['group_project_id'];
212 $groupid = $taskinfo['group_id'];
213 $summary = util_unconvert_htmlspecialchars($taskinfo['summary']);
214 $startdate = date(_('Y-m-d H:i'), $taskinfo['start_date']);
215 $enddate = date(_('Y-m-d H:i'), $taskinfo['end_date']);
216 echo '<tr '. $GLOBALS['HTML']->boxGetAltRowStyle($i) .'>
218 <td>'.util_make_link ('/pm/task.php?func=detailtask&project_task_id='.$taskid.'&group_id='.$groupid.'&group_project_id='.$projectid,$summary).'</td>
219 <td>'.$startdate.'</td>
220 <td>'.$enddate.'</td>
223 echo $GLOBALS['HTML']->listTableBottom();
225 echo '<tr><td colspan="3">'._('No Related Tasks').'</td></tr>';
231 <div class="tabbertab" title="<?php echo _('Attachments'); ?>">
232 <h3><?php echo _('Existing Files') ?>:</h3>
233 <table border="0" width="80%">
235 <strong><?php echo _('Attach Files') ?>:</strong><br />
236 <input type="file" name="input_file[]" size="30" /><br />
237 <input type="file" name="input_file[]" size="30" /><br />
238 <input type="file" name="input_file[]" size="30" /><br />
239 <input type="file" name="input_file[]" size="30" /><br />
240 <input type="file" name="input_file[]" size="30" /><br />
243 // print a list of files attached to this Artifact
245 $file_list =& $ah->getFiles();
247 $count=count($file_list);
250 $title_arr[]=_('Delete');
251 $title_arr[]=_('Name');
252 $title_arr[]=_('Download');
253 echo $GLOBALS['HTML']->listTableTop ($title_arr,'',$tabcnt);
257 for ($i=0; $i<$count; $i++) {
259 <tr '. $GLOBALS['HTML']->boxGetAltRowStyle($i) .'>
260 <td><input type="CHECKBOX" name="delete_file[]" value="'. $file_list[$i]->getID() .'">'._('Delete').' </td>'.
261 '<td>'. htmlspecialchars($file_list[$i]->getName()) .'</td>
262 <td>i'.util_make_link ('/tracker/download.php/'.$group_id.'/'. $ath->getID().'/'. $ah->getID() .'/'.$file_list[$i]->getID().'/'.$file_list[$i]->getName(),_('Download')).'</td>
267 echo '<tr '.$GLOBALS['HTML']->boxGetAltRowStyle(0).'><td colspan="4">'._('No Files Currently Attached').'</td></tr>';
270 echo $GLOBALS['HTML']->listTableBottom();
275 <div class="tabbertab" title="<?php echo _('Commits'); ?>">
276 <table border="0" width="80%">
278 $hookParams['artifact_id']=$aid;
279 plugin_hook("artifact_extra_detail",$hookParams);
283 <div class="tabbertab" title="<?php echo _('Changes'); ?>">
284 <table border="0" width="80%">
286 <h3><?php echo _('Change Log') ?>:</h3>
288 echo $ah->showHistory();
298 $ath->footer(array());
302 // c-file-style: "bsd"