5 * Copyright 1999-2001 (c) VA Linux Systems
6 * http://fusionforge.org/
8 * This file is part of FusionForge.
10 * FusionForge is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
15 * FusionForge is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with FusionForge; if not, write to the Free Software
22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26 ('title' => _('Modify').' [#'.$ah->getID(). '] '
27 . util_unconvert_htmlspecialchars($ah->getSummary()),
28 'atid'=>$ath->getID()));
33 <h1>[#<?php echo $ah->getID(); ?>] <?php echo $ah->getSummary(); ?></h1>
35 <form id="trackermodlimitedform" action="<?php echo getStringFromServer('PHP_SELF'); ?>?group_id=<?php echo $group_id; ?>&atid=<?php echo $ath->getID(); ?>" enctype="multipart/form-data" method="post">
36 <input type="hidden" name="form_key" value="<?php echo form_generate_key(); ?>" />
37 <input type="hidden" name="func" value="postmod" />
38 <input type="hidden" name="MAX_FILE_SIZE" value="10000000" />
39 <input type="hidden" name="artifact_id" value="<?php echo $ah->getID(); ?>" />
43 if (session_loggedin()) {
47 if ($ah->isMonitoring()) {
55 <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>'.
56 html_image('ic/'.$img.'','20','20').' '.$key.'</strong></a>';
60 if ($group->usesPM()) {
62 <a href="'.getStringFromServer('PHP_SELF').'?func=taskmgr&group_id='.$group_id.'&atid='.$atid.'&aid='.$aid.'">'.
63 html_image('ic/taskman20w.png','20','20').'<strong>'._('Build Task Relation').'</strong></a>';
68 <input type="submit" name="submit" value="<?php echo _('Submit') ?>" />
74 <table border="0" width="80%">
77 <td><strong><?php echo _('Submitted by') ?>:</strong><br />
79 echo $ah->getSubmittedRealName();
80 if($ah->getSubmittedBy() != 100) {
81 $submittedUnixName = $ah->getSubmittedUnixName();
82 $submittedBy = $ah->getSubmittedBy();
84 (<tt><?php echo util_make_link ($submittedUnixName,$submittedBy,$submittedUnixName); ?></tt>)
87 <td><strong><?php echo _('Date Submitted') ?>:</strong><br />
89 echo date(_('Y-m-d H:i'), $ah->getOpenDate() );
91 $close_date = $ah->getCloseDate();
92 if ($ah->getStatusID()==2 && $close_date > 1) {
93 echo '<br /><strong>'._('Date Closed').':</strong><br />'
94 .date(_('Y-m-d H:i'), $close_date);
101 $ath->renderExtraFields($ah->getExtraFieldData(),true,'none',false,'Any','',false,'UPDATE');
105 <td><strong><?php echo _('Assigned to')?>:</strong><br />
106 <span id="tracker-assigned_to" title="<?php echo html_get_tooltip_description('assigned_to') ?>">
107 <?php echo $ah->getAssignedRealName(); ?> (<?php echo $ah->getAssignedUnixName(); ?>)
110 <strong><?php echo _('Priority') ?>:</strong><br />
111 <span id="tracker-priority" title="<?php echo html_get_tooltip_description('priority') ?>">
112 <?php echo $ah->getPriority(); ?>
118 <?php if (!$ath->usesCustomStatuses()) { ?>
119 <strong><?php echo _('State') ?>:</strong><br />
120 <span id="tracker-status_id" title="<?php echo html_get_tooltip_description('status_id') ?>">
121 <?php echo $ath->statusBox ('status_id', $ah->getStatusID() ); ?>
129 $ath->renderRelatedTasks($group, $ah);
132 <td colspan="2"><strong><?php echo _('Summary')?><?php echo utils_requiredField(); ?>:</strong><br />
133 <span id="tracker-summary" title="<?php echo html_get_tooltip_description('summary') ?>">
134 <?php echo $ah->getSummary(); ?>
141 <?php echo $ah->showDetails(); ?>
144 <script type="text/javascript" src="<?php echo util_make_uri('/tabber/tabber.js') ?>"></script>
145 <div id="tabber" class="tabber">
146 <div class="tabbertab" title="<?php echo _('Followups');?>">
147 <table border="0" width="80%">
149 <br /><strong><?php echo _('OR Attach A Comment') ?>: <?php echo notepad_button('document.forms.trackermodlimitedform.details') ?></strong><br />
150 <textarea id="tracker-comment" name="details" rows="7" cols="60" title="<?php echo html_get_tooltip_description('comment') ?>"></textarea>
152 <h2><?php echo _('Followup') ?>:</h2>
154 echo $ah->showMessages();
159 <div class="tabbertab" title="<?php echo _('Attachments'); ?>">
160 <table border="0" width="80%">
162 <?php echo _('Attach Files') ?><br />
163 <input type="file" name="input_file0" size="30" /><br />
164 <input type="file" name="input_file1" size="30" /><br />
165 <input type="file" name="input_file2" size="30" /><br />
166 <input type="file" name="input_file3" size="30" /><br />
167 <input type="file" name="input_file4" size="30" /><br />
169 <h2><?php echo _('Attached Files') ?>:</h2>
172 // print a list of files attached to this Artifact
174 $ath->renderFiles($group_id, $ah);
179 <div class="tabbertab" title="<?php echo _('Commits'); ?>">
180 <table border="0" width="80%">
182 $hookParams['artifact_id']=$aid;
183 plugin_hook("artifact_extra_detail",$hookParams);
187 <div class="tabbertab" title="<?php echo _('Changes'); ?>">
188 <table border="0" width="80%">
190 <h2><?php echo _('Change Log') ?>:</h2>
192 echo $ah->showHistory();
197 <?php $ah->showRelations(); ?>
202 $ath->footer(array());
206 // c-file-style: "bsd"