4 * SourceForge Generic Tracker facility
6 * SourceForge: Breaking Down the Barriers to Open Source Development
7 * Copyright 1999-2001 (c) VA Linux Systems
8 * http://sourceforge.net
14 echo $ath->header(array ('title'=>$Language->getText('tracker_detail','title').': '.$ah->getID(). ' '.util_unconvert_htmlspecialchars($ah->getSummary()),'pagename'=>'tracker_detail','atid'=>$ath->getID(),'sectionvals'=>array($ath->getName())));
19 <h2>[ #<?php echo $ah->getID(); ?> ] <?php echo util_unconvert_htmlspecialchars($ah->getSummary()); ?></h2>
21 <table cellpadding="0" width="100%">
23 if (session_loggedin()) {
27 if ($ah->isMonitoring()) {
29 $key="stop_monitoring";
35 <a href="index.php?group_id='.$group_id.'&artifact_id='.$ah->getID().'&atid='.$ath->getID().'&func=monitor"><strong>'.
36 html_image('ic/'.$img.'','20','20',array()).' '.$Language->getText('tracker_utils',$key).'</strong></a>';
37 ?> <a href="javascript:help_window('/help/tracker.php?helpname=monitor')"><strong>(?)</strong></a>
40 <a href="<?php echo "$PHP_SELF?func=taskmgr&group_id=$group_id&atid=$atid&aid=$aid"; ?>"><?php echo
41 html_image('ic/taskman20w.png','20','20',array()); ?><strong><?php echo $Language->getText('tracker_detail','build_task_relation') ?></strong></a>
46 <td><strong><?php echo $Language->getText('tracker','date') ?>:</strong><br /><?php echo date( $sys_datefmt, $ah->getOpenDate() ); ?></td>
47 <td><strong><?php echo $Language->getText('tracker','priority') ?>:</strong><br /><?php echo $ah->getPriority(); ?></td>
51 <td><strong><?php echo $Language->getText('tracker','submitted_by') ?>:</strong><br /><?php echo $ah->getSubmittedRealName(); ?> (<?php echo $ah->getSubmittedUnixName(); ?>)</td>
52 <td><strong><?php echo $Language->getText('tracker','assigned_to') ?>:</strong><br /><?php echo $ah->getAssignedRealName(); ?> (<?php echo $ah->getAssignedUnixName(); ?>)</td>
56 <td><strong><?php echo $Language->getText('tracker','category') ?>:</strong><br /><?php echo $ah->getCategoryName(); ?></td>
57 <td><strong><?php echo $Language->getText('tracker','status') ?>:</strong><br /><?php echo $ah->getStatusName(); ?></td>
62 // build input pop-up boxes for boxes and choices configured by ADMIN
64 $result=$ath->getSelectionBoxes();
65 $resultc=$ath->getArtifactChoices($ah->getID());
67 $rows=db_numrows($result);
68 $origrows=db_numrows($resultc);
69 if ($result &&$rows > 0) {
71 for ($i=0; $i < $rows; $i++) {
72 $newrow= is_integer($i/2);
74 echo '<td><strong>'.db_result($result,$i,'selection_box_name').'</strong><br \>';
75 $resulto=$ath->getBoxOptionsName(db_result($resultc,$i,'choice_id'));
77 if (($i < $origrows) && (db_result($resultc,$i,'choice_id') !== '100')) {
78 echo db_result($resulto,'0','box_options_name');
88 <tr><td colspan="2"><strong><?php echo $Language->getText('tracker','summary') ?>:</strong><br /><?php echo $ah->getSummary(); ?></td></tr>
90 <form action="<?php echo $PHP_SELF; ?>?group_id=<?php echo $group_id; ?>&atid=<?php echo $ath->getID(); ?>" METHOD="POST">
94 <?php echo $ah->showDetails(); ?>
96 <input type="hidden" name="func" value="postaddcomment">
97 <input type="hidden" name="artifact_id" value="<?php echo $ah->getID(); ?>">
99 <strong><?php echo $Language->getText('tracker_detail','add_comment') ?>:</strong>
100 <?php echo notepad_button('document.forms[1].details') ?><br />
101 <textarea name="details" ROWS="10" COLS="60" WRAP="SOFT"></textarea>
107 if (!session_loggedin()) {
109 <h3><FONT COLOR="RED">
110 <?php echo $Language->getText('tracker','please_login',array('<a href="/account/login.php?return_to='.urlencode($REQUEST_URI).'">','</a>')) ?></FONT></h3><br />
111 <?php echo $Language->getText('tracker','insert_email') ?>
113 <input type="TEXT" name="user_email" SIZE="20" MAXLENGTH="40">
118 <h3><?php echo $Language->getText('tracker_detail','security_note') ?></h3>
120 <input type="SUBMIT" name="SUBMIT" value="<?php echo $Language->getText('general','submit') ?>">
125 <h3><?php echo $Language->getText('tracker','followups') ?></h3>
129 echo $ah->showMessages();
135 <h4><?php echo $Language->getText('tracker_detail','attached_files') ?>:</h4>
138 // print a list of files attached to this Artifact
140 $file_list =& $ah->getFiles();
142 $count=count($file_list);
145 $title_arr[]=$Language->getText('tracker_detail','name');
146 $title_arr[]=$Language->getText('tracker_detail','description');
147 $title_arr[]=$Language->getText('tracker_detail','download');
148 echo $GLOBALS['HTML']->listTableTop ($title_arr);
152 for ($i=0; $i<$count; $i++) {
153 echo '<tr '. $GLOBALS['HTML']->boxGetAltRowStyle($i) .'>
154 <td>'. htmlspecialchars($file_list[$i]->getName()) .'</td>
155 <td>'. htmlspecialchars($file_list[$i]->getDescription()) .'</td>
156 <td><a href="/tracker/download.php/'.$group_id.'/'. $ath->getID().'/'. $ah->getID() .'/'.$file_list[$i]->getID().'/'. $file_list[$i]->getName() .'">'.$Language->getText('tracker_detail','download').'</a></td>
161 echo '<tr '.$GLOBALS['HTML']->boxGetAltRowStyle(0).'><td colspan="3">'.$Language->getText('tracker_detail','no_files_attached').'</td></tr>';
164 echo $GLOBALS['HTML']->listTableBottom();
169 $hookParams['artifact_id']=$aid;
170 plugin_hook("artifact_extra_detail",$hookParams);
174 <h3><?php echo $Language->getText('tracker_detail','changes') ?>:</h3>
178 echo $ah->showHistory();
186 $ath->footer(array());
190 // c-file-style: "bsd"