5 * Copyright 2010-2011, Franck Villaume - Capgemini
6 * http://fusionforge.org
8 * This file is part of FusionForge. FusionForge is free software;
9 * you can redistribute it and/or modify it under the terms of the
10 * GNU General Public License as published by the Free Software
11 * Foundation; either version 2 of the Licence, or (at your option)
14 * FusionForge is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License along
20 * with FusionForge; if not, write to the Free Software Foundation, Inc.,
21 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
32 //$msg is coming from previous soap error
35 /* do not recreate $clientSOAP object if already created by other pages */
36 if (!isset($clientSOAP))
37 $clientSOAP = new SoapClient($mantisbtConf['url']."/api/soap/mantisconnect.php?wsdl", array('trace'=>true, 'exceptions'=>true));
39 $defect = $clientSOAP->__soapCall('mc_issue_get', array("username" => $username, "password" => $password, "issue_id" => $idBug));
42 echo '<h2>'._('Notes').'</h2>';
44 if (isset($defect->notes)){
46 foreach ($defect->notes as $key => $note){
48 echo '<td width="10%">';
49 echo '('.sprintf($format,$note->id).')';
51 echo $note->reporter->name;
54 //date_default_timezone_set("UTC");
55 echo date("Y-m-d G:i",strtotime($note->date_submitted));
58 echo '<td width="9%">';
59 echo '<input type=button name="upNote" value="'._('Modify').'" onclick="window.location.href=\'?type='.$type.'&group_id='.$group_id.'&pluginname='.$mantisbt->name.'&idBug='.$defect->id.'&idNote='.$note->id.'&view=editNote\'">';
60 echo '<input type=button name="delNote" value="'._('Delete').'" onclick="window.location.href=\'?type='.$type.'&group_id='.$group_id.'&pluginname='.$mantisbt->name.'&idBug='.$defect->id.'&idNote='.$note->id.'&action=deleteNote&view=viewIssue\'">';
64 echo '<textarea disabled name="description" style="width:99%; background-color:white; color:black; border: none;" row="3">'.htmlspecialchars($note->text, ENT_QUOTES).'</textarea>';
70 echo '<p class="warning">'._('No notes for this ticket').'</p>';
73 <script type="text/javascript">
74 jQuery(document).ready(function() {
75 jQuery("#expandable_note").hide();
82 <p class="notice_title" onclick='jQuery("#expandable_note").slideToggle(300)'><?php echo _('Add note') ?></p>
83 <div id='expandable_note' class="notice_content">
85 include 'addOrEditNote.php';