} if (!isset($_GET['part'])) { $_GET['part'] = 'Summary'; } if (isset($_GET['groupname'])) { $groupname = $_GET['groupname']; } else { $groupname = ""; } if (isset($_GET['gid'])) { $gid = $_GET['gid']; } else { $gid = ""; } $p = new TabbedPageGenerator(); $p->setSideMenu($sidemenu); if (isset($_SESSION['pull_targets']) && in_array($_GET['uuid'], $_SESSION['pull_targets'])) { if (hasCorrectAcl('base', 'computers', 'remove_from_pull')) { $remove_pull_id = uniqid(); $_SESSION['remove_pull_id'] = $remove_pull_id; $p->setDescription(sprintf('%s <a class="btn btn-primary" href="%s">%s</a>', _T('This client has been registered in pull mode', 'inventory'), urlStrRedirect('base/computers/remove_from_pull', array('uuid' => $_GET['uuid'], 'remove_pull_id' => $remove_pull_id)), _T('Leave pull mode', 'inventory'))); } else { $p->setDescription(sprintf('%s', _T('This client has been registered in pull mode', 'inventory'))); } } $prefix = ''; if ($_GET['hostname'] != '') { $p->addTop(sprintf(_T("%s's inventory", 'inventory'), $_GET['hostname']), "modules/inventory/inventory/header.php"); } else { $p->addTop(sprintf(_T("%s's content inventory", 'inventory'), $groupname), "modules/inventory/inventory/header.php"); $prefix = 'group';
* MMC is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * MMC is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with MMC; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ require "modules/imaging/manage/localSidebar.php"; require "graph/navbar.inc.php"; require_once 'modules/imaging/includes/includes.php'; require_once 'modules/imaging/includes/xmlrpc.inc.php'; require_once 'modules/imaging/includes/web_def.inc.php'; ?> <?php $page = new TabbedPageGenerator(); //Display sidemenu $page->setSideMenu($sidemenu); $tabList = array('unattended' => _T('Sysprep generator', "imaging"), 'sysprepList' => _T('Sysprep list', "imaging")); //create tabList, where tab parameter is the page name to display. foreach ($tabList as $tab => $str) { $page->addTab("{$tab}", $str, "", "modules/imaging/manage/{$tab}.php"); } $page->display();