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. GLPI 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 GLPI; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -------------------------------------------------------------------------- */ // Based on: // IRMA, Information Resource-Management and Administration // Christian Bauer // ---------------------------------------------------------------------- // Original Author of file: // Purpose of file: // ---------------------------------------------------------------------- define('GLPI_ROOT', '..'); include GLPI_ROOT . "/inc/includes.php"; if (isset($_GET["itemtype"])) { $link = getItemTypeFormURL($_GET["itemtype"]); $item = str_replace(".form.php", "", $link); $item = str_replace("front/", "", $item); commonHeader($LANG['common'][12], $_SERVER['PHP_SELF'], "inventory", $item); listTemplates($_GET["itemtype"], $link, $_GET["add"]); commonFooter(); }
$smarty->assign('modlist', $modlist); // get a list of available languages $langlist = $lang->listLanguages(); $smarty->assign('languages', $langlist); // create form list if ($this->isInstalled('formmaker')) { $formlist = $db->selectList('formmaker'); if (null != $formlist && count($formlist) > 0) { foreach ($formlist as $form) { $lst[] = array('mod' => $form['key']); } $smarty->assign('formlist', $lst); } } // get groups $groups = $rights->getAllGroups(); $all = array(array('groupid' => 0, 'name' => $lang->get('all'))); $nobody = array(array('groupid' => -1, 'name' => $lang->get('nobody'))); $smarty->assign('groups', array_merge($all, $nobody, $groups)); // get menu if (isset($_POST['do_filter'])) { $_SESSION['menu_filter_language'] = $_POST['filter_language']; $_SESSION['menu_filter_domain'] = $_POST['filter_domain']; } @($m = $menu->getMenuRaw(0, $_SESSION['menu_filter_language'], $_SESSION['menu_filter_domain'])); $smarty->assign('m', $m); @$smarty->assign('filter_language', $_SESSION['menu_filter_language']); @$smarty->assign('filter_domain', $_SESSION['menu_filter_domain']); // list available templates $smarty->assign('tlist', listTemplates()); $smarty->assign('dlist', getDomainList());
// ##### default mod #### // // get a list of available modules // get a list of all static pages $pagelist = $content->getPageList(); // get a list of available modules $modlist = $this->listInstalled(); // create dropdown list if ($pagelist == null) { $dropdownlist = $modlist; } else { $dropdownlist = array_merge($modlist, array(array('mod' => '---')), $pagelist); } $smarty->assign('mlist', $dropdownlist); $smarty->assign('default_mod', $config->get('core', 'default_mod')); // ##### default template // $tpllist = listTemplates(); $smarty->assign('tlist', $tpllist); $smarty->assign('template', $config->get('core', 'template')); // #### maintenance mode #### $smarty->assign('maintenance', $config->get('core', 'maintenance')); $smarty->assign('maintenance_description', $config->get('core', 'maintenance_description')); // #### encrypt url #### // $smarty->assign('encrypt_url', $config->get('core', 'encrypt-url')); // #### mod_rewrite #### // $smarty->assign('mod_rewrite', $config->get('core', 'mod_rewrite')); // #### bbcode #### // $smarty->assign('bbcode', $config->get('core', 'bbcode')); // ##### language ###### // $langlist = $lang->listLanguages(); $smarty->assign('llist', $langlist); $smarty->assign('language', $config->get('core', 'language'));