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 echo $ath->header(array ('title'=>_('Detail').': '.$ah->getID(). ' '.util_unconvert_htmlspecialchars($ah->getSummary()),'atid'=>$ath->getID()));
16 <h3>[#<?php echo $ah->getID(); ?>] <?php echo util_unconvert_htmlspecialchars($ah->getSummary()); ?></h3>
18 <form id="trackerdetailform" action="<?php echo getStringFromServer('PHP_SELF'); ?>?group_id=<?php echo $group_id; ?>&atid=<?php echo $ath->getID(); ?>" method="post" enctype="multipart/form-data">
20 <?php if (session_loggedin()) { ?>
21 <table cellpadding="0" width="100%">
25 if ($ah->isMonitoring()) {
33 <a href="index.php?group_id='.$group_id.'&artifact_id='.$ah->getID().'&atid='.$ath->getID().'&func=monitor"><strong>'.
34 html_image('ic/'.$img.'','20','20',array()).' '.$key.'</strong></a>';
35 ?> <a href="javascript:help_window('<?php echo util_make_url ('/help/tracker.php?helpname=monitor'); ?>')"><strong>(?)</strong></a>
38 <input type="submit" name="submit" value="<?php echo _('Save Changes') ?>" />
43 <table border="0" width="80%">
45 <td><strong><?php echo _('Date') ?>:</strong><br /><?php echo date( _('Y-m-d H:i'), $ah->getOpenDate() ); ?></td>
46 <td><strong><?php echo _('Priority') ?>:</strong><br /><?php echo $ah->getPriority(); ?></td>
50 <td><strong><?php echo _('State') ?>:</strong><br /><?php echo $ah->getStatusName(); ?></td>
55 <strong><?php echo _('Submitted by') ?>:</strong><br />
56 <?php echo $ah->getSubmittedRealName();
57 if($ah->getSubmittedBy() != 100) {
58 $submittedUnixName = $ah->getSubmittedUnixName();
59 $submittedBy = $ah->getSubmittedBy();
61 (<tt><?php echo util_make_link_u ($submittedUnixName,$submittedBy,$submittedUnixName); ?></tt>)
64 <td><strong><?php echo _('Assigned to') ?>:</strong><br />
65 <?php echo $ah->getAssignedRealName(); ?> (<?php echo $ah->getAssignedUnixName(); ?>)</td>
69 $ath->renderExtraFields($ah->getExtraFieldData(),true,'none',false,'Any','',false,'DISPLAY');
72 <tr><td colspan="2"><strong><?php echo _('Summary') ?>:</strong><br /><?php echo $ah->getSummary(); ?></td></tr>
76 <?php echo $ah->showDetails(); ?>
79 <script type="text/javascript" src="<?php echo util_make_uri('/tabber/tabber.js') ?>"></script>
81 <div id="tabber" class="tabber">
82 <div class="tabbertab" title="<?php echo _('Followups'); ?>">
83 <table border="0" width="80%">
85 <?php if ($ath->allowsAnon() || session_loggedin()) { ?>
86 <input type="hidden" name="form_key" value="<?php echo form_generate_key(); ?>" />
87 <input type="hidden" name="func" value="postmod" />
88 <input type="hidden" name="MAX_FILE_SIZE" value="10000000" />
89 <input type="hidden" name="artifact_id" value="<?php echo $ah->getID(); ?>" />
91 <strong><?php echo _('Add A Comment') ?>:</strong>
92 <?php echo notepad_button('document.forms.trackerdetailform.details') ?><br />
93 <textarea name="details" rows="10" cols="60"></textarea>
98 <h3><?php echo _('Followup') ?></h3>
100 echo $ah->showMessages();
106 if ($group->usesPM()) {
108 <div class="tabbertab" title="<?php echo _('Related Tasks'); ?>">
109 <table border="0" width="80%">
111 <h3><?php echo _('Related Tasks'); ?>:</h3>
113 $result = $ah->getRelatedTasks();
114 $taskcount = db_numrows($ah->relatedtasks);
115 if ($taskcount > 0) {
116 $titles[] = _('Task Id');
117 $titles[] = _('Task Summary');
118 $titles[] = _('Start Date');
119 $titles[] = _('End Date');
120 echo $GLOBALS['HTML']->listTableTop($titles);
121 for ($i = 0; $i < $taskcount; $i++) {
122 $taskinfo = db_fetch_array($ah->relatedtasks, $i);
123 $taskid = $taskinfo['project_task_id'];
124 $projectid = $taskinfo['group_project_id'];
125 $groupid = $taskinfo['group_id'];
126 $summary = util_unconvert_htmlspecialchars($taskinfo['summary']);
127 $startdate = date(_('Y-m-d H:i'), $taskinfo['start_date']);
128 $enddate = date(_('Y-m-d H:i'), $taskinfo['end_date']);
129 echo '<tr '. $GLOBALS['HTML']->boxGetAltRowStyle($i) .'>
131 <td>'.util_make_link ('/pm/task.php?func=detailtask&project_task_id='.$taskid.'&group_id='.$groupid.'&group_project_id='.$projectid,$summary).'</td>
132 <td>'.$startdate.'</td>
133 <td>'.$enddate.'</td>
136 echo $GLOBALS['HTML']->listTableBottom();
138 echo _('No Related Tasks');
145 <div class="tabbertab" title="<?php echo _('Attachments'); ?>">
146 <table border="0" width="80%">
148 <?php if (session_loggedin() && ($ah->getSubmittedBy() == user_getid())) { ?>
149 <strong><?php echo _('Attach Files'); ?></strong><br />
150 <input type="file" name="input_file[]" size="30" /><br />
151 <input type="file" name="input_file[]" size="30" /><br />
152 <input type="file" name="input_file[]" size="30" /><br />
153 <input type="file" name="input_file[]" size="30" /><br />
154 <input type="file" name="input_file[]" size="30" /><br />
157 <h3><?php echo _('Attached Files') ?>:</h3>
160 // print a list of files attached to this Artifact
162 $file_list =& $ah->getFiles();
164 $count=count($file_list);
169 $title_arr[]=_('Name');
170 $title_arr[]=_('Download');
171 echo $GLOBALS['HTML']->listTableTop ($title_arr);
172 for ($i=0; $i<$count; $i++) {
173 echo '<tr '. $GLOBALS['HTML']->boxGetAltRowStyle($i) .'>
174 <td>'. htmlspecialchars($file_list[$i]->getName()) .'</td>
175 <td>'.util_make_link ('/tracker/download.php/'.$group_id.'/'.$ath->getID().'/'.$ah->getID().'/'.$file_list[$i]->getID().'/'.$file_list[$i]->getName(),_('Download')).'</td>
178 echo $GLOBALS['HTML']->listTableBottom();
181 echo _('No Files Currently Attached');
187 <div class="tabbertab" title="<?php echo _('Commits'); ?>" >
188 <table border="0" width="80%">
190 $hookParams['artifact_id']=$aid;
191 plugin_hook("artifact_extra_detail",$hookParams);
195 <div class="tabbertab" title="<?php echo _('Changes'); ?>">
196 <table border="0" width="80%">
199 <h3><?php echo _('Changes') ?>:</h3>
202 echo $ah->showHistory();
209 <?php $ah->showRelations(); ?>
214 $ath->footer(array());
218 // c-file-style: "bsd"