5 * Copyright 1999-2001 (c) VA Linux Systems
6 * Copyright 2010 (c) Franck Villaume - Capgemini
7 * Copyright (C) 2011 Alain Peyrat - Alcatel-Lucent
8 * http://fusionforge.org/
10 * This file is part of FusionForge.
12 * FusionForge is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation; either version 2 of the License, or
15 * (at your option) any later version.
17 * FusionForge is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
22 * You should have received a copy of the GNU General Public License
23 * along with FusionForge; if not, write to the Free Software
24 * 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="trackermodform" action="<?php echo getStringFromServer('PHP_SELF'); ?>?group_id=<?php echo $group_id; ?>&atid=<?php echo $ath->getID(); ?>" enctype="multipart/form-data" method="post">
34 <input type="hidden" name="form_key" value="<?php echo form_generate_key(); ?>"/>
35 <input type="hidden" name="func" value="postmod"/>
36 <input type="hidden" name="MAX_FILE_SIZE" value="10000000" />
37 <input type="hidden" name="artifact_id" value="<?php echo $ah->getID(); ?>"/>
41 if (session_loggedin()) {
45 if ($ah->isMonitoring()) {
48 $text=_('Stop monitor');
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').' '.$text.'</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 <a href="<?php echo getStringFromServer('PHP_SELF')."?func=deleteartifact&aid=$aid&group_id=$group_id&atid=$atid"; ?>"><strong><?php echo html_image('ic/trash.png','16','16') . _('Delete'); ?></strong></a>
71 <input type="submit" name="submit" value="<?php echo _('Save Changes') ?>" />
77 <table border="0" width="80%">
80 <strong><?php echo _('Submitted by') ?>:</strong><br />
81 <?php echo $ah->getSubmittedRealName();
82 if($ah->getSubmittedBy() != 100) {
83 $submittedUnixName = $ah->getSubmittedUnixName();
84 $submittedBy = $ah->getSubmittedBy();
86 (<tt><?php echo util_make_link_u ($submittedUnixName,$submittedBy,$submittedUnixName); ?></tt>)
89 <td><strong><?php echo _('Date Submitted') ?>:</strong><br />
91 echo date(_('Y-m-d H:i'), $ah->getOpenDate() );
93 $close_date = $ah->getCloseDate();
94 if ($ah->getStatusID()==2 && $close_date > 1) {
95 echo '<br /><strong>'._('Date Closed').':</strong><br />'
96 .date(_('Y-m-d H:i'), $close_date);
103 <td><strong><?php echo _('Data Type') ?>:</strong><br />
106 $atf = new ArtifactTypeFactory ($group) ;
108 foreach ($atf->getArtifactTypes() as $at) {
109 if (forge_check_perm ('tracker', $at->getID(), 'manager')) {
110 $tids[] = $at->getID() ;
114 $res = db_query_params ('SELECT group_artifact_id, name
115 FROM artifact_group_list
116 WHERE group_artifact_id = ANY ($1)',
117 array (db_int_array_to_any_clause ($tids))) ;
119 echo html_build_select_box ($res,'new_artifact_type_id',$ath->getID(),false);
128 $ath->renderExtraFields($ah->getExtraFieldData(),true,'none',false,'Any',array(),false,'UPDATE');
132 <td><strong><?php echo _('Assigned to')?>:</strong><br />
134 echo $ath->technicianBox('assigned_to', $ah->getAssignedTo() );
135 echo ' '.util_make_link ('/tracker/admin/?group_id='.$group_id.'&atid='. $ath->getID() .'&update_users=1','('._('Admin').')');
138 <strong><?php echo _('Priority') ?>:</strong><br />
141 Priority of this request
143 build_priority_select_box('priority',$ah->getPriority());
150 <?php if (!$ath->usesCustomStatuses()) { ?>
151 <strong><?php echo _('State') ?>:</strong><br />
154 echo $ath->statusBox ('status_id', $ah->getStatusID() );
162 $ath->renderRelatedTasks($group, $ah);
163 $ath->renderFiles($group_id, $ah);
166 <td><strong><?php echo _('Summary')?><?php echo utils_requiredField(); ?>:</strong><br />
167 <input id="tracker-summary" title="<?php echo _('The summary text-box represents a short tracker item summary. Useful when browsing through several tracker items.') ?>" type="text" name="summary" size="70" value="<?php
168 echo $ah->getSummary();
169 ?>" maxlength="255" />
175 <div id="edit" style="display:none;">
176 <strong><?php echo _('Detailed description') ?><?php echo utils_requiredField(); ?>: <?php echo notepad_button('document.forms.trackermodform.description') ?></strong>
178 <textarea id="tracker-description" name="description" rows="30" cols="79" title="<?php echo html_get_tooltip_description('description') ?>"><?php echo $ah->getDetails(); ?></textarea>
180 <div id="show" style="display:block;">
181 <?php echo $ah->showDetails(true); ?>
185 div id="tabber" class="tabber">
186 <div class="tabbertab" title="<?php echo _('Followups'); ?>">
187 <table border="0" width="80%">
189 <br /><strong><?php echo _('Use Canned Response') ?>:</strong><br />
191 echo $ath->cannedResponseBox('canned_response');
192 echo ' '.util_make_link ('/tracker/admin/?group_id='.$group_id.'&atid='. $ath->getID() .'&add_canned=1','('._('Admin').')');
195 <strong><?php echo _('OR Attach A Comment') ?>:<?php echo notepad_button('document.forms.trackermodform.details') ?></strong><br />
196 <textarea id="tracker-comment" name="details" rows="7" cols="60" title="<?php echo html_get_tooltip_description('comment') ?>"></textarea></p>
197 <h2><?php echo _('Followup') ?>:</h2>
199 echo $ah->showMessages();
205 if ($group->usesPM()) {
207 <div class="tabbertab" title="<?php echo _('Related Tasks'); ?>">
209 $ath->renderRelatedTasks($group, $ah);
213 <div class="tabbertab" title="<?php echo _('Attachments'); ?>">
214 <h2><?php echo _('Existing Files') ?>:</h2>
215 <table border="0" width="80%">
217 <strong><?php echo _('Attach Files') ?>:</strong><br />
218 <input type="file" name="input_file0" size="30" /><br />
219 <input type="file" name="input_file1" size="30" /><br />
220 <input type="file" name="input_file2" size="30" /><br />
221 <input type="file" name="input_file3" size="30" /><br />
222 <input type="file" name="input_file4" size="30" /><br />
225 // print a list of files attached to this Artifact
227 $ath->renderFiles($group_id, $ah);
232 <div class="tabbertab" title="<?php echo _('Commits'); ?>">
233 <table border="0" width="80%">
235 $hookParams['artifact_id']=$aid;
236 plugin_hook("artifact_extra_detail",$hookParams);
240 <div class="tabbertab" title="<?php echo _('Changes'); ?>">
241 <table border="0" width="80%">
244 <h2><?php echo _('Changes') ?>:</h2>
246 echo $ah->showHistory();
252 <?php $ah->showRelations(); ?>
257 $ath->footer(array());
261 // c-file-style: "bsd"