the Free Software Foundation; either version 2 of the License, or (at your option) any later version. Racks 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 Racks. If not, see <http://www.gnu.org/licenses/>. -------------------------------------------------------------------------- */ include '../../../inc/includes.php'; $PluginRacksItemSpecification = new PluginRacksItemSpecification(); $PluginRacksItemSpecification->checkGlobal("r"); if (!isset($_SESSION['glpi_plugin_racks_tab'])) { $_SESSION['glpi_plugin_racks_tab'] = 'ComputerModel'; } if (isset($_GET['onglet'])) { $_SESSION['glpi_plugin_racks_tab'] = $_GET['onglet']; } Html::header(PluginRacksRack::getTypeName(2), '', "plugins", "racks"); $tabs['ComputerModel'] = array('title' => __('Servers', 'racks'), 'url' => $CFG_GLPI['root_doc'] . "/plugins/racks/ajax/itemspecification.tabs.php", 'params' => "target=" . $_SERVER['PHP_SELF'] . "&id=-1&plugin_racks_tab=" . 'ComputerModel'); $tabs['NetworkEquipmentModel'] = array('title' => _n('Network equipment', 'Network equipments', 2, 'racks'), 'url' => $CFG_GLPI['root_doc'] . "/plugins/racks/ajax/itemspecification.tabs.php", 'params' => "target=" . $_SERVER['PHP_SELF'] . "&id=-1&plugin_racks_tab=" . 'NetworkEquipmentModel'); $tabs['PeripheralModel'] = array('title' => _n('Peripheral', 'Peripherals', 2, 'racks'), 'url' => $CFG_GLPI['root_doc'] . "/plugins/racks/ajax/itemspecification.tabs.php", 'params' => "target=" . $_SERVER['PHP_SELF'] . "&id=-1&plugin_racks_tab=" . 'PeripheralModel'); $tabs['PluginRacksOtherModel'] = array('title' => _n('Other equipment', 'Others equipments', 2, 'racks'), 'url' => $CFG_GLPI['root_doc'] . "/plugins/racks/ajax/itemspecification.tabs.php", 'params' => "target=" . $_SERVER['PHP_SELF'] . "&id=-1&plugin_racks_tab=" . 'PluginRacksOtherModel'); $tabs['all'] = array('title' => __('All'), 'url' => $CFG_GLPI['root_doc'] . "/plugins/racks/ajax/itemspecification.tabs.php", 'params' => "target=" . $_SERVER['PHP_SELF'] . "&id=-1&plugin_racks_tab=all"); echo "<div id='tabspanel' class='center-h'></div>"; Ajax::createTabs('tabspanel', 'tabcontent', $tabs, 'PluginRacksItemSpecification'); $PluginRacksItemSpecification->addDivForTabs(); Html::footer();