src.dualinventive.com/mtinfo/dist/webroot/rc-4.05/scripts/page/help.php

45 lines
1.6 KiB
PHP

<?php
/** \file scripts\page\help.php
* \brief DI webinterface help script.
* \author Rob Schalken, Core|Vision
* \version 1.0
* \date 17-10-2008
*
* This file handles the help file
*/
echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\">\n";
echo "<html lang=\"" . $_SESSION[$_PAGE_INFO['id']]['i18n'] . "\">\n\n";
echo "<head>\n";
echo "<title>";
echo $_SESSION[$_PAGE_INFO['id']]['skin_name'] . " - " . _("Help");
echo "</title>\n";
echo "<script type=\"text/javascript\" src=\"" . JAVA_DIR . "java.js\"></script>\n";
echo "<script type=\"text/javascript\" src=\"" . JAVA_DIR . "xmlhttp_data.js\"></script>\n";
echo "<link href=\"" . CSS_DIR . "framework.css\" rel=\"stylesheet\" type=\"text/css\">\n";
// Set base
echo "<base href=\"" . $_SESSION[$_PAGE_INFO['id']]['base'] . "\">\n";
// Get icon
$icon_image = SKIN_DIR . $_SESSION[$_PAGE_INFO['id']]['skin'] . "/" . $_PAGE_INFO['ini']['image']['icon'];
if (file_exists($icon_image)) {
echo "<link type=\"image/x-icon\" href=\"" . $icon_image . "\" rel=\"shortcut icon\">\n";
}
// Insert skin style sheets (when available)
$css_files = get_all_files(SKIN_DIR . $_SESSION[$_PAGE_INFO['id']]['skin'] . "/css/", array("css"));
if (is_array($css_files)) {
foreach($css_files as $file) {
echo "<link href=\"" . $file . "\" rel=\"stylesheet\" type=\"text/css\">\n";
}
}
echo "</head>\n";
echo "<body id=\"body_help\">\n";
echo "<div id=\"content_help\" style=\"margin-left:10px\">\n";
include("help_content.php");
echo "</div>\n";
echo "</body>\n";
echo "</html>\n";
?>