4 * Copyright 2010 (c) : 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 $action = getStringFromRequest('action');
25 $view = getStringFromRequest('view');
30 case "renameCategory":
31 case "deleteCategory":
34 include ("mantisbt/action/admin/$action.php");
39 $labelTitle = array ();
40 $labelTitle[] = _('Roadmap');
41 $labelTitle[] = _('Tickets');
43 $labelPage[] = "/plugins/mantisbt/?type=group&id=".$id."&pluginname=".$pluginname."&view=roadmap";
44 $labelPage[] = "/plugins/mantisbt/?type=group&id=".$id."&pluginname=".$pluginname;
45 $userperm = $group->getPermission($user);
46 if ( $userperm->isAdmin() ) {
47 $labelTitle[] = _('Admin');
48 $labelPage[] = "/plugins/mantisbt/?type=admin&id=".$id."&pluginname=".$pluginname;
49 $labelTitle[] = _('Stats');
50 $labelPage[] = "/plugins/mantisbt/?type=admin&id=".$id."&pluginname=".$pluginname."&view=stat";
53 echo $HTML->subMenu( $labelTitle, $labelPage );
58 include ("mantisbt/view/admin/$view.php");
61 /* affichage principal */
62 echo '<table><tr><td valign="top">';
63 include ("mantisbt/view/admin/viewCategorie.php");
64 echo '</td><td valign="top">';
65 include ("mantisbt/view/admin/viewVersion.php");
66 echo '</td></tr><tr><td valign="top">';
67 include ("mantisbt/view/admin/addCategory.php");
68 echo '</td><td valign="top">';
69 include ("mantisbt/view/admin/addVersion.php");
70 echo '</td></tr></table>';