4 * Copyright 2010, Capgemini
5 * Authors: Franck Villaume - capgemini
7 * This file is part of FusionForge.
9 * FusionForge is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
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 this program; if not, write to the Free Software Foundation, Inc.,
21 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
24 /* view version of a dedicated group in MantisBt */
30 /* do not recreate $clientSOAP object if already created by other pages */
31 if (!isset($clientSOAP))
32 $clientSOAP = new SoapClient("http://".forge_get_config('server','mantisbt')."/api/soap/mantisconnect.php?wsdl", array('trace'=>true, 'exceptions'=>true));
34 $listVersions = $clientSOAP->__soapCall('mc_project_get_versions', array("username" => $username, "password" => $password, "project_id" => $idProjetMantis));
35 } catch (SoapFault $soapFault) {
36 echo '<div class="warning" >Un problème est survenu lors de la récupération des données : '.$soapFault->faultstring.'</div>';
40 if (!isset($errorPage)){
41 echo $HTML->boxTop('Gestion des Versions');
42 echo '<table class="innertabs">';
44 echo '<td class="FullBoxTitle">Version</td>';
45 echo '<td class="FullBoxTitle">Date Livraison</td>';
46 echo '<td class="FullBoxTitle">Type</td>';
47 echo '<td class="FullBoxTitle">Action</td>';
50 foreach ($listVersions as $key => $version){
52 echo '<tr class="LignePaire">';
54 echo '<tr class="LigneImpaire">';
56 echo '<td class="InText">'.$version->name.'</td>';
57 echo '<td class="InText">'.strftime("%d/%m/%Y",strtotime($version->date_order)).'</td>';
58 /* est-ce une version release ? */
59 if ( $version->released ) {
60 echo '<td class="InText">Release</td>';
61 /* juste une milestone alors */
63 echo '<td class="InText">Milestone</td>';
66 print'<div style="float:left"><img src="'.util_make_url('themes/gforge/images/bouton_gauche.png').'"></img></div>
67 <div style="background: url('.util_make_url('themes/gforge/images/bouton_centre.png').');vertical-align:top;display:inline;font-size:15px">
68 <a href="?type='.$type.'&id='.$id.'&pluginname='.$pluginname.'&view=editVersion&idVersion='.$version->id.'" style="color:white;font-size:0.8em;font-weight:bold;">Modifier</a>
70 <div style="display:inline"><img src="'.util_make_url('themes/gforge/images/bouton_droit.png').'"></img></div>';
75 echo $HTML->boxBottom();