5 * Copyright 2010-2011, Franck Villaume - Capgemini
6 * Copyright 2010, Antoine Mercadal - Capgemini
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
32 if (!isset($defect)) {
34 /* do not recreate $clientSOAP object if already created by other pages */
35 if (!isset($clientSOAP))
36 $clientSOAP = new SoapClient($mantisbtConf['url']."/api/soap/mantisconnect.php?wsdl", array('trace'=>true, 'exceptions'=>true));
38 $defect = $clientSOAP->__soapCall('mc_issue_get', array("username" => $username, "password" => $password, "issue_id" => $idBug));
39 } catch (SoapFault $soapFault) {
40 echo '<div class="warning" >'. _('Technical error occurs during data retrieving:'). ' ' .$soapFault->faultstring.'</div>';
45 if (!isset($errorPage)){
46 include('jumpToIssue.php');
47 echo "<h2 style='border-bottom: 1px solid black'>Détail du ticket #$idBug</h2>";
48 echo '<table class="innertabs">';
50 echo '<td width="14%" class="FullBoxTitle">'._('Category').'</td>';
51 echo '<td width="14%" class="FullBoxTitle">'._('Severity').'</td>';
52 echo '<td width="14%" class="FullBoxTitle">'._('Reproducibility').'</td>';
53 echo '<td width="14%" class="FullBoxTitle">'._('Submit Date').'</td>';
54 echo '<td width="14%" class="FullBoxTitle">'._('Update Date').'</td>';
55 echo '<td width="14%" class="FullBoxTitle">'._('Found in').'</td>';
56 echo '<td width="14%" class="FullBoxTitle">'._('Target').'</td>';
59 echo '<td class="FullBox">'.$defect->category.'</td>';
60 echo '<td class="FullBox">'.$defect->severity->name.'</td>';
61 echo '<td class="FullBox">'.$defect->reproducibility->name.'</td>';
62 // TODO a revoir le problème des dates
63 date_default_timezone_set("UTC");
64 echo '<td class="FullBox">'.date("Y-m-d G:i",strtotime($defect->date_submitted)).'</td>';
65 echo '<td class="FullBox">'.date("Y-m-d G:i",strtotime($defect->last_updated)).'</td>';
66 echo '<td class="FullBox">'.$defect->version.'</td>';
67 echo '<td class="FullBox">'.$defect->target_version.'</td>';
70 echo '<td class="FullBoxTitle">'._('Reporter').'</td>';
71 echo '<td class="FullBoxTitle">'._('Assigned to').'</td>';
72 echo '<td class="FullBoxTitle">'._('Priority').'</td>';
73 echo '<td class="FullBoxTitle">'._('Resolution').'</td>';
74 echo '<td class="FullBoxTitle">'._('Status').'</td>';
75 echo '<td class="FullBoxTitle">'._('Fixed in').'</td>';
78 echo '<td class="FullBox">'.$defect->reporter->name.'</td>';
79 echo '<td class="FullBox">'.$defect->handler->name.'</td>';
80 echo '<td class="FullBox">'.$defect->priority->name.'</td>';
81 echo '<td class="FullBox">'.$defect->resolution->name.'</td>';
82 echo '<td class="FullBox">'.$defect->status->name.'</td>';
83 echo '<td class="FullBox">'.$defect->fixed_in_version.'</td>';
87 echo '<table class="innertabs">';
89 echo '<td width="25%" class="FullBoxTitle">'._('Summary').'</td>';
90 echo '<td width="75%" class="FullBox">'.htmlspecialchars($defect->summary,ENT_QUOTES).'</td>';
93 echo '<td width="25%" class="FullBoxTitle">'._('Description').'</td>';
94 echo '<td width="75%" class="FullBox"><textarea disabled name="description" style="width:99%; background-color:white; color:black; border: none;" rows="6">'.htmlspecialchars($defect->description, ENT_QUOTES).'</textarea></td>';
97 echo '<td width="25%" class="FullBoxTitle">'. _('Additional Informations').'</td>';
98 echo '<td width="75%" class="FullBox"><textarea disabled name="description" style="width:99%; background-color:white; color:black; border: none;" rows="6">'.htmlspecialchars($defect->additional_information, ENT_QUOTES).'</textarea></td>';
104 background-color: #D7E0EB;
113 border: 1px solid #D7E0EB;
116 -moz-border-radius-bottomright: 8px;
117 -moz-border-radius-bottomleft: 8px;
118 -webkit-border-bottom-right-radius: 8px;
119 -webkit-border-bottom-left-radius: 8px;
123 <script type="text/javascript">
124 $(document).ready(function() {
125 $("#expandable_edition").hide();
129 <p class="notice_title" onclick='$("#expandable_edition").slideToggle(300)'><?php echo _('Edit ticket') ?></p>
130 <div id='expandable_edition' class="notice_content">
132 if (!isset($errorPage)) {
133 include($gfplugins.$mantisbt->name."/view/editIssue.php");
139 if (!isset($errorPage)) {
140 include($gfplugins.$mantisbt->name."/view/viewNote.php");
141 include($gfplugins.$mantisbt->name."/view/viewAttachment.php");