* @version 10-21-04 * @package phpScheduleIt * * Copyright (C) 2003 - 2005 phpScheduleIt * License: GPL, see LICENSE */ /** * Base directory of application */ @define('BASE_DIR', dirname(__FILE__) . '/..'); /** * Include Auth class */ include_once('Auth.class.php'); /** * Provides functions for outputting template HTML */ class Template { var $title; var $link; var $dir_path; /** * Set the page's title * @param string $title title of page * @param int $depth depth of the current page relative to phpScheduleIt root */ function Template($title = '', $depth = 0) { global $conf; $this->title = (!empty($title)) ? $title : $conf['ui']['welcome']; $this->dir_path = str_repeat('../', $depth); $this->link = CmnFns::getNewLink(); //Auth::Auth(); // Starts session } /** * Print all XHTML headers * This function prints the HTML header code, CSS link, and JavaScript link * * DOCTYPE is XHTML 1.0 Transitional * @param none */ function printHTMLHeader() { global $conf; global $languages; global $lang; global $charset; $path = $this->dir_path; echo "\n"; ?>
= translate('Welcome Back', array($_SESSION['sessionName'], 1)); // Notify if the person logged in is admin echo (Auth::isMailAdmin() ? ' (' . translate('Administrator') . ')' : ''); ?> |
= translate_date('header', mktime());?> |
} /** * End main HTML table * @param none */ function endMain() { ?> |