Location: PHPKode > projects > SASHA > SASHA/style/default/header.php
<?php

/**
 * SASHA :: style/default/header.php
 *
 * This is the style header for all pages.
 *
 * @package SASHA
 * @copyright (C) 2006-2010 Gordon P. Hemsley
 * @license docs/LICENSE BSD License
 * @version $Id: header.php 88 2010-03-28 18:53:20Z gphemsley $
 */

if( !defined( 'ROOT' ) )
{
	exit;
}

@require_once( ROOT . 'inc/inc.main.php' );

header( 'Content-Type: text/html; charset=UTF-8' );

if( !isset( $tab ) )
{
	$tab = FALSE;
}

$tab_home = $tab_schedule = $tab_assignments = $tab_tests = $tab_grades = '';

switch( $tab )
{
	case 'home':
		$tab_home = ' class="selected"';
	break;

	case 'schedule':
		$tab_schedule = ' class="selected"';
	break;

	case 'assignments':
		$tab_assignments = ' class="selected"';
	break;

	case 'tests':
		$tab_tests = ' class="selected"';
	break;

	case 'grades':
		$tab_grades = ' class="selected"';
	break;
}

?>
<!DOCTYPE html>
<html lang="en-US">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title>SASHA :: <?php print implode( ' :: ', $page_title ); ?></title>

	<link rel="stylesheet" type="text/css" href="<?php print ROOT; ?>style/default/screen.css" media="screen" />

	<link rel="icon" type="image/png" href="<?php print ROOT; ?>style/default/images/box_logo.png" />
</head>
<body>

<div id="header">
	<div id="logo">
		<a href="<?php print ROOT; ?>index.php"><img src="<?php print ROOT; ?>style/default/images/box_logo.png" alt="" width="75" height="75" /></a>
	</div>
	<div id="title">
		<h1>SASHA</h1>
		<p style="margin: auto;">Helping you help yourself.&trade;</p>
	</div>
	<div id="user-links">
<?php


if( $Sessions->is_logged_in() )
{
//	print "\t\t" . '<a href="' . ROOT . 'register.php">Edit Profile</a>' . "\n";
//	print "\t\t&middot;\n";
	print "\t\t" . '<a href="' . ROOT . 'login.php?logout=1">Log Out</a>' . "\n";
}
else
{
	print "\t\t" . '<a href="' . ROOT . 'register.php">Register</a>' . "\n";
	print "\t\t&middot;\n";
	print "\t\t" . '<a href="' . ROOT . 'login.php">Log In</a>' . "\n";
}

?>
	</div>
</div>

<div id="navigation">
	<ul>
		<li<?php print $tab_home; ?>><a href="<?php print ROOT; ?>index.php">Home</a></li>
		<li<?php print $tab_schedule; ?>><a href="<?php print ROOT; ?>schedule.php">Schedule</a></li>
		<li<?php print $tab_assignments; ?>><a href="<?php print ROOT; ?>assignments.php">Assignments</a></li>
		<li<?php print $tab_tests; ?>><a href="<?php print ROOT; ?>tests.php">Tests</a></li>
		<!--li<?php print $tab_grades; ?>><a href="<?php print ROOT; ?>grades.php">Grades</a></li-->
	</ul>
</div>

<div id="breadcrumbs">
	<p><?php print implode( ' &rarr; ', $page_title ); ?></p>
</div>

<?php

if( exists( $config['message'][0]['message'] ) )
{
	print '<div id="global-msg">' . "\n";

	foreach( $config['message'] as $message )
	{
		if( !empty( $message['message'] ) )
		{
			print_message( $message['type'], $message['message'], $message['title'] );
		}
	}

	print '</div>' . "\n\n";
}

?>
<div id="page-content">
Return current item: SASHA