* @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"; ?> <?=$this->title?> logo' : ''; ?>

 

v

link = CmnFns::getNewLink(); } /** * Returns the link object * @param none * @return link object for this class */ function get_link() { return $this->link; } /** * Sets a new title for the template page * @param string $title title of page */ function set_title($title) { $this->title = $title; } } ?>