Session::checkLoginUser(); echo "<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Frameset//EN'\n 'http://www.w3.org/TR/html4/frameset.dtd'>"; echo "\n<html><head><title>" . sprintf(__('%1$s - %2$s'), "GLPI", __('Tree view', 'treeview')) . "</title>"; echo "<meta http-equiv='Content-Type' content='text/html; charset=utf-8'>"; // Send extra expires header if configured echo "<meta http-equiv='Expires' content='Fri, Jun 12 1981 08:20:00 GMT'>\n"; echo "<meta http-equiv='Pragma' content='no-cache'>\n"; echo "<meta http-equiv='Cache-Control' content='no-cache'>\n"; echo "<link rel='stylesheet' type='text/css' href='" . $CFG_GLPI["root_doc"] . "/plugins/treeview/treeview.css' type='text/css'>\n"; echo "<script type='text/javascript' src='" . $CFG_GLPI["root_doc"] . "/plugins/treeview/treeview.js'>\n </script></head>\n"; echo '<div id="ie5menu" class="skin0" onMouseover="highlightie5(event)" ' . 'onMouseout="lowlightie5(event)" onClick="jumptoie5(event)" display:none>'; echo '</div>'; echo "<body>"; // Title bar echo '<div id=explorer_bar>'; echo '<div id=explorer_title>' . sprintf(__('%1$s - %2$s'), "GLPI", __('Tree view', 'treeview')); echo '</div>'; echo "<div id=explorer_close>"; echo "<img border=0 src='pics/close.gif' name='explorer_close'\n onmouseover=\"ChangeImg(document.images.explorer_close, 'pics/close_hover.gif');\"\n onmouseout=\"ChangeImg(document.images.explorer_close, 'pics/close.gif');\"\n onclick='parent.location.href = parent.right.location.href;'></div>"; echo "</div>"; echo "<form method='get' name='get_level' action='" . $_SERVER["PHP_SELF"] . "'>"; // The IDs (primary key) of the requested nodes are stored in this field echo "<input type='hidden' name='nodes' value=''>"; // Which item type should be opened? echo "<input type='hidden' name='openedType' value=''>"; echo "</form>"; // Print the tree $config = new PluginTreeviewConfig(); $config->buildTreeview(); echo "</body>"; echo "</html>";