5 * Copyright 1999-2001 (c) VA Linux Systems
6 * Copyright (C) 2011 Alain Peyrat - Alcatel-Lucent
7 * http://fusionforge.org/
9 * This file is part of FusionForge.
11 * FusionForge is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
16 * FusionForge is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with FusionForge; if not, write to the Free Software
23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26 use_javascript('/tabber/tabber.js');
28 $ath->header(array ('title'=>'[#'. $ah->getID(). '] ' . $ah->getSummary(), 'atid'=>$ath->getID()));
33 <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">
35 <?php if (session_loggedin()) { ?>
36 <table cellpadding="0" width="100%">
40 if ($ah->isMonitoring()) {
43 $text=_('Stop monitor');
50 <a id="tracker-monitor" href="index.php?group_id='.$group_id.'&artifact_id='.$ah->getID().'&atid='.$ath->getID().'&func=monitor" title="'.html_get_tooltip_description('monitor').'"><strong>'.
51 html_image('ic/'.$img.'','20','20').' '.$text.'</strong></a>';
55 <input type="submit" name="submit" value="<?php echo _('Save Changes') ?>" />
60 <table border="0" width="80%">
62 <td><strong><?php echo _('Date') ?>:</strong><br /><?php echo date( _('Y-m-d H:i'), $ah->getOpenDate() ); ?></td>
63 <td><strong><?php echo _('Priority') ?>:</strong><br /><?php echo $ah->getPriority(); ?></td>
67 <td><strong><?php echo _('State') ?>:</strong><br /><?php echo $ah->getStatusName(); ?></td>
72 <strong><?php echo _('Submitted by') ?>:</strong><br />
73 <?php echo $ah->getSubmittedRealName();
74 if($ah->getSubmittedBy() != 100) {
75 $submittedUnixName = $ah->getSubmittedUnixName();
76 $submittedBy = $ah->getSubmittedBy();
78 (<tt><?php echo util_make_link_u ($submittedUnixName,$submittedBy,$submittedUnixName); ?></tt>)
81 <td><strong><?php echo _('Assigned to') ?>:</strong><br />
82 <?php echo $ah->getAssignedRealName(); ?> (<?php echo $ah->getAssignedUnixName(); ?>)</td>
86 $ath->renderExtraFields($ah->getExtraFieldData(),true,'none',false,'Any',array(),false,'DISPLAY');
87 $ath->renderRelatedTasks($group, $ah);
90 <tr><td colspan="2"><strong><?php echo _('Summary') ?>:</strong><br /><?php echo $ah->getSummary(); ?></td></tr>
94 <?php echo $ah->showDetails(); ?>
97 <div id="tabber" class="tabber">
98 <div class="tabbertab" title="<?php echo _('Followups'); ?>">
99 <table border="0" width="80%">
101 <?php if ($ath->allowsAnon() || session_loggedin()) { ?>
102 <input type="hidden" name="form_key" value="<?php echo form_generate_key(); ?>" />
103 <input type="hidden" name="func" value="postmod" />
104 <input type="hidden" name="MAX_FILE_SIZE" value="10000000" />
105 <input type="hidden" name="artifact_id" value="<?php echo $ah->getID(); ?>" />
107 <strong><?php echo _('Add A Comment') ?>:</strong>
108 <?php echo notepad_button('document.forms.trackerdetailform.details') ?><br />
109 <textarea name="details" rows="10" cols="60"></textarea>
114 <h2><?php echo _('Followup') ?></h2>
116 echo $ah->showMessages();
121 <div class="tabbertab" title="<?php echo _('Attachments'); ?>">
122 <table border="0" width="80%">
124 <?php if (session_loggedin() && ($ah->getSubmittedBy() == user_getid())) { ?>
125 <strong><?php echo _('Attach Files'); ?></strong><br />
126 <input type="file" name="input_file0" size="30" /><br />
127 <input type="file" name="input_file1" size="30" /><br />
128 <input type="file" name="input_file2" size="30" /><br />
129 <input type="file" name="input_file3" size="30" /><br />
130 <input type="file" name="input_file4" size="30" /><br />
133 <h2><?php echo _('Attached Files') ?>:</h2>
136 // print a list of files attached to this Artifact
138 $ath->renderFiles($group_id, $ah);
143 <div class="tabbertab" title="<?php echo _('Commits'); ?>" >
144 <table border="0" width="80%">
146 $hookParams['artifact_id']=$aid;
147 plugin_hook("artifact_extra_detail",$hookParams);
151 <div class="tabbertab" title="<?php echo _('Changes'); ?>">
152 <table border="0" width="80%">
155 <h2><?php echo _('Changes') ?>:</h2>
157 echo $ah->showHistory();
163 <?php $ah->showRelations(); ?>
168 $ath->footer(array());
172 // c-file-style: "bsd"