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'=>$Language->getText('tracker_mod','title').': '.$ah->getID(). ' - ' . $ah->getSummary(),'pagename'=>'tracker','atid'=>$ath->getID(),'sectionvals'=>array($group->getPublicName()) ));
16 <h2>[#<?php echo $ah->getID(); ?>] <?php echo $ah->getSummary(); ?></h2>
20 if (session_loggedin()) {
24 if ($ah->isMonitoring()) {
26 $key="stop_monitoring";
32 <a href="index.php?group_id='.$group_id.'&artifact_id='.$ah->getID().'&atid='.$ath->getID().'&func=monitor"><strong>'.
33 html_image('ic/'.$img.'','20','20',array()).' '.$Language->getText('tracker_utils',$key).'</strong></a>';
34 ?> <a href="javascript:help_window('/help/tracker.php?helpname=monitor')"><strong>(?)</strong></a>
37 <a href="<?php echo "$PHP_SELF?func=taskmgr&group_id=$group_id&atid=$atid&aid=$aid"; ?>"><?php echo
38 html_image('ic/taskman20w.png','20','20',array()); ?><strong><?php echo $Language->getText('tracker_mod','build_task_relation')?></strong></a>
42 <form action="<?php echo $PHP_SELF; ?>?group_id=<?php echo $group_id; ?>&atid=<?php echo $ath->getID(); ?>" METHOD="POST" enctype="multipart/form-data">
43 <input type="hidden" name="func" value="postmod">
44 <input type="hidden" name="artifact_id" value="<?php echo $ah->getID(); ?>">
47 <td><strong><?php echo $Language->getText('tracker','submitted_by') ?>:</strong><br />
49 echo $ah->getSubmittedRealName();
50 if($ah->getSubmittedBy() != 100) {
51 $submittedUnixName = $ah->getSubmittedUnixName();
53 (<tt><a href="/users/<?php echo $submittedUnixName; ?>"><?php echo $submittedUnixName; ?></a></tt>)
56 <td><strong><?php echo $Language->getText('tracker_mod','date_submitted') ?>:</strong><br />
58 echo date($sys_datefmt, $ah->getOpenDate() );
60 $close_date = $ah->getCloseDate();
61 if ($ah->getStatusID()==2 && $close_date > 1) {
62 echo '<br /><strong>'.$Language->getText('tracker_mod','date_closed').':</strong><br />'
63 .date($sys_datefmt, $close_date);
70 $ath->renderExtraFields($ah->getExtraFieldData(),true);
74 <td><strong><?php echo $Language->getText('tracker','assigned_to')?>: <a href="javascript:help_window('/help/tracker.php?helpname=assignee')"><strong>(?)</strong></a></strong><br />
75 <?php echo $ah->getAssignedRealName(); ?> (<?php echo $ah->getAssignedUnixName(); ?>)</td>
77 <strong><?php echo $Language->getText('tracker','priority') ?>: <a href="javascript:help_window('/help/tracker.php?helpname=priority')"><strong>(?)</strong></a></strong><br />
80 Priority of this request
82 echo $ah->getPriority();
89 <?php if (!$ath->usesCustomStatuses()) { ?>
90 <strong><?php echo $Language->getText('tracker','status') ?>: <a href="javascript:help_window('/help/tracker.php?helpname=status')"><strong>(?)</strong></a></strong><br />
93 echo $ath->statusBox ('status_id', $ah->getStatusID() );
102 <td colspan="2"><strong><?php echo $Language->getText('tracker','summary')?>: <a href="javascript:help_window('/help/tracker.php?helpname=summary')"><strong>(?)</strong></a></strong><br />
103 <?php echo $ah->getSummary(); ?>
109 <?php echo $ah->showDetails(); ?>
113 <br /><strong><?php echo $Language->getText('tracker_mod','attach_comment') ?>: <?php echo notepad_button('document.forms[1].details') ?> <a href="javascript:help_window('/help/tracker.php?helpname=comment')"><strong>(?)</strong></a></strong><br />
114 <textarea name="details" rows="7" cols="60" wrap="hard"></textarea></p>
116 <h3><?php echo $Language->getText('tracker','followups') ?>:</h3>
118 echo $ah->showMessages();
123 <strong><?php echo $Language->getText('tracker','check_upload') ?>:</strong> <input type="checkbox" name="add_file" value="1" />
124 <a href="javascript:help_window('/help/tracker.php?helpname=attach_file')"><strong>(?)</strong></a><br />
126 <input type="file" name="input_file" size="30" /></p>
128 <strong><?php echo $Language->getText('tracker','file_description') ?>:</strong><br />
129 <input type="text" name="file_description" size="40" maxlength="255" /></p>
130 <h4><?php echo $Language->getText('tracker_detail','attached_files') ?>:</h4>
133 // print a list of files attached to this Artifact
135 $file_list =& $ah->getFiles();
137 $count=count($file_list);
140 $title_arr[]=$Language->getText('tracker_mod','delete');
141 $title_arr[]=$Language->getText('tracker_detail','name');
142 $title_arr[]=$Language->getText('tracker_detail','description');
143 $title_arr[]=$Language->getText('tracker_detail','download');
144 echo $GLOBALS['HTML']->listTableTop ($title_arr);
148 for ($i=0; $i<$count; $i++) {
149 echo '<tr '. $GLOBALS['HTML']->boxGetAltRowStyle($i) .'>
150 <td><input type="CHECKBOX" name="delete_file[]" value="'. $file_list[$i]->getID() .'">'.$Language->getText('tracker_mod','delete').' </td>
151 <td>'. htmlspecialchars($file_list[$i]->getName()) .'</td>
152 <td>'. htmlspecialchars($file_list[$i]->getDescription()) .'</td>
153 <td><a href="/tracker/download.php/'.$group_id.'/'. $ath->getID().'/'. $ah->getID() .'/'.$file_list[$i]->getID().'/'.$file_list[$i]->getName() .'">'.$Language->getText('tracker_mod','download').'</a></td>
158 echo '<tr '.$GLOBALS['HTML']->boxGetAltRowStyle(0).'><td colspan=3>'.$Language->getText('tracker_detail','no_files_attached').'</td></tr>';
160 echo $GLOBALS['HTML']->listTableBottom();
164 $hookParams['artifact_id']=$aid;
165 plugin_hook("artifact_extra_detail",$hookParams);
168 <h4><?php echo $Language->getText('tracker_mod','changelog') ?>:</h4>
170 echo $ah->showHistory();
174 <tr><td colspan="2" align="middle">
175 <input type="submit" name="submit" value="<?php echo $Language->getText('general','submit') ?>">
183 $ath->footer(array());