Location: PHPKode > projects > phpCAMALEO > skins/sunset/Layout.php
<?php
/***************************************************************************
 *	Layout.php
 *
 *	begin		: August 2007
 *	version		: [sunset] 9 October 2006
 *	copyright	: (C) 2005,2006 grandolini.net
 *
 *	Site pages layout
 *
 ***************************************************************************/
ini_set('zlib.output_compression','1');
ini_set('zlib.output_compression_level','5');
ob_start();
include_once($_SESSION[skinf].'lang/'.$_SESSION[sitelanguage].'/TITLES.inc');
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<title><?=$_SESSION[misc][skin]?>@>skin | <?=$_TITLE[$PageNr] ? $_TITLE[$PageNr]:'A phpCAMALEO skin to assist you with the tutorial';?>&nbsp;<?=$_SESSION[misc][server_name_title]?></title>

	<meta name="keywords" content="*TODO*">
	<meta name="description" content="*TODO*">

	<meta http-equiv="resource-type" content="text/html; charset=iso-8859-1">
	<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">

	<meta name="revisit-after" content="30 days">
	<meta name="robots" content="index, follow">

	<meta name="author" content="phpCAMALEO.org">
	<meta name="copyright" content="copyright (c) by grandolini.net">

	<meta name="distribution" content="global">
	<meta name="rating" content="general">
	<meta name="country" content="all">

	<link href="skins/<?=$_SESSION[misc][skin]?>/sunset.ico" rel="shortcut icon" type="image/x-icon" />
	<link href="skins/<?=$_SESSION[misc][skin]?>/MAIN.CSS" rel="stylesheet" type="text/css" />
	<?php
	setcookie('skinNAME',$_SESSION[misc][skin]);
	setcookie('country',$_SESSION[sitelanguage]);
	switch($_SESSION[browser])
	{
		case 'FF': ?><link href="skins/<?=$_SESSION[misc][skin]?>/MAIN_FF.CSS" rel="stylesheet" type="text/css" /><?php break;
		case 'IE': ?><link href="skins/<?=$_SESSION[misc][skin]?>/MAIN_IE.CSS" rel="stylesheet" type="text/css" /><?php break;
	}
 	echo "\n\n";
	if($_SESSION[auto_reload]==true && basename($_SERVER[PHP_SELF])==$_SESSION[auto_page])
	{
		if($_SESSION[auto_delay]>0) { $delay=$_SESSION[auto_delay]; } else { $delay=1; } ?>
		<script type="text/javascript">setTimeout("window.location.href='<?=$_SERVER[PHP_SELF]?>'",<?=$delay?>*60000);</script><?php
	}
	?>
	<script type="text/javascript" src="common/js/fun2inc.js"></script>
	<script type="text/javascript" src="common/js/tableHi.js"></script>
	<script type="text/javascript" src="common/js/layoutINITs.js"></script>
	<?php
	if(substr($_GET[page],0,4)!='nojs')
	{
		switch($_SESSION[browser])
		{
			case 'FF':	?><noscript><meta http-equiv="refresh" content="0; URL=LoadPage.php?page=nojsff"></noscript><?php break;
			case 'IE':	?><noscript><meta http-equiv="refresh" content="0; URL=LoadPage.php?page=nojsie"></noscript><?php break;
			default:	?><noscript><meta http-equiv="refresh" content="0; URL=LoadPage.php?page=nojs"></noscript><?php
		}
	}
	?>
</head>
<body><a tabindex="-1" id="top" name="top"></a><?php flush(); ob_flush();
if($_SESSION[misc][location]=='l')
{
	#	If site text is changed, rebuild content files
	#
	if(file_exists($_SESSION[skinf].'import/Prepare_contents.php')) { include($_SESSION[skinf].'import/Prepare_contents.php'); }
	else { include($_SERVER[DOCUMENT_ROOT].$_SESSION[misc][folder].'skins/phpCAMALEO/import/Prepare_contents.php'); }
}
#
#	load page specific definitions
#
if(file_exists($_SESSION[skinf].'def/'.$_SESSION[sitelanguage].'/'.$_SESSION[PageNr].'_defs.php'))
{
	include_once($_SESSION[skinf].'def/'.$_SESSION[sitelanguage].'/'.$_SESSION[PageNr].'_defs.php');
}
if(file_exists($_SERVER[DOCUMENT_ROOT].'/skins/phpCAMALEO/def/'.$_SESSION[sitelanguage].'/'.$_SESSION[PageNr].'_defs.php'))
{
	include_once($_SERVER[DOCUMENT_ROOT].'/skins/phpCAMALEO/def/'.$_SESSION[sitelanguage].'/'.$_SESSION[PageNr].'_defs.php');
}
#
if($_SESSION[PageNr]!='access')		{ unset($_SESSION[rediraccess]); }
if($_SESSION[misc][stat_main]==1)	{ include($_SESSION[common].'private/Stat_mngr.php'); }
?>
<!-- page layout table -->
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<!-- logo -->
<tr id="topmnu">
	<td colspan="4" align="left" valign="top" width="99%"><a href="LoadPage.php?page=welcome" style="border:0;"><img src="skins/sunset/img/logo.jpg" width="390" height="140" alt="sunset Logo" title="sunset @> The phpCAMALEO sunset skin!" /></a><br /></td>
</tr>
<tr>
	<td align="left" valign="top">
		<!-- contents -->
		<table border="0" cellpadding="0" cellspacing="0">
			<tr><td><img src="img/trasp.gif" width="10" height="10" /></td></tr>
			<tr>
				<td width="1"><!-- spacer --><img src="img/trasp.gif" border="0" width="20" height="1" /><br /></td>
				<td valign="top" width="99%"><?php include($_SESSION[common].'includes/bld_contents.php'); flush(); ob_flush(); ?></td>
				<td width="1"><!-- spacer --><img src="img/trasp.gif" border="0" width="20" height="1" /><br /></td>
			</tr>
		</table>
	</td>
	<td valign="top">
		<!-- menu -->
		<table id="bgcol0" border="0" cellpadding="0" cellspacing="0">
			<tr class="menu_tab" valign="bottom">
				<td class="menu_tab" height="5"><!-- menu width --><img src="img/trasp.gif" border="0" width="150" height="10" /><br /></td>
				<td width="1" bgcolor="#000000" rowspan="9"><!-- spacer --><img src="img/trasp.gif" border="0" width="10" height="10" /><br /></td>
				<td bgcolor="#000000"></td>
			</tr>
			<tr class="menu_tab" height="15" valign="top"><td class="menu_tab"><?php if($PageNr=='welcome')	{ ?>HOME<?php } 			else { ?><a href="LoadPage.php?page=welcome">HOME</a><?php } ?></td><td bgcolor="#000000"></td></tr>
			<tr class="menu_tab" height="15" valign="top"><td class="menu_tab"><?php if($PageNr=='stmenu1')	{ ?>STRUCTURED MENU<?php }	else { ?><a href="LoadPage.php?page=stmenu1">STRUCTURED MENU</a><?php } ?></td><td bgcolor="#000000"></td></tr>
			<?php 
			if($PageNr=='stmenu1' || $PageNr=='submnu1.1' || $PageNr=='submnu1.2' || $PageNr=='submnu1.3')
			{ 
				?><tr class="menu_tab" height="15" valign="top"><td class="menu_tab"><?php 
						if($PageNr=='submnu1.1')	{ ?>&nbsp;&nbsp;&gt;SUB MENU1<br /><?php }	else { ?>&nbsp;&nbsp;&gt;<a href="LoadPage.php?page=submnu1.1">SUB MENU1</a><br /><?php }
						if($PageNr=='submnu1.2')	{ ?>&nbsp;&nbsp;&gt;SUB MENU2<br /><?php }	else { ?>&nbsp;&nbsp;&gt;<a href="LoadPage.php?page=submnu1.2">SUB MENU2</a><br /><?php }
						if($PageNr=='submnu1.3')	{ ?>&nbsp;&nbsp;&gt;SUB MENU3<br /><?php }	else { ?>&nbsp;&nbsp;&gt;<a href="LoadPage.php?page=submnu1.3">SUB MENU3</a><br /><?php }
						?>
				  </td><td bgcolor="#000000"></td></tr>
				  <tr class="menu_tab" height="5"><td></td><td bgcolor="#000000"></td></tr><?php 
			}
			?>
			<tr class="menu_tab" height="15" valign="top"><td class="menu_tab"><?php if($PageNr=='faq')		{ ?>FAQ<?php }	else { ?><a href="LoadPage.php?page=faq">FAQ</a><?php } ?></td><td bgcolor="#000000"></td></tr>
			<tr class="menu_tab" height="15" valign="top"><td class="menu_tab"><a href="http://phpcamaleo.org">phpCAMALEO</a></td><td bgcolor="#000000"></td></tr>
			<tr class="menu_tab" height="45"><td></td><td bgcolor="#000000"></td></tr>
			<tr class="menu_tab">
				<td style="padding:8px 0 8px 10px; background:#e5bfff;"><font id="sml1"><?=LAST_SITE?>:<br /><?=_LAST_UPDATE_?></font></td>
				<td bgcolor="#000000"></td>
			</tr>
		</table>
	</td>
</tr>
<tr><td colspan="3" height="5"><!-- bottom spacer --></td></tr>
</table>
<!-- footer -->
<table width="100%" style="padding:0 12px 0 12px;" cellpadding="0" cellspacing="0">
	<tr><td colspan="2"><hr id="line" /></td></tr>
	<tr>
		<td><img src="img/trasp.gif" border="0" width="350" height="1" /><br /><font id="copyright">&copy; 2006 <?=$_SESSION[misc][SITE]?> &mdash; All rights reserved.<br />Time taken to build this page: <?=substr(round(get_microtime()-$start_pagebuild_time,4),0,6)?> sec.</font></td>
		<td align="center" valign="middle"><font id="sml1">
			<a href="Contact.php">Contact</a>&nbsp;|
			<a href="LoadPage.php?page=privacy">Privacy</a>&nbsp;|
			<a href="LoadPage.php?page=aboutus">About Us</a>&nbsp;|
			<a href="#top">^TOP^</a>
			</font>
		</td>
	</tr>
	<tr><td colspan="2" ><hr id="line" /></td></tr>
</table>
<!-- 3rd pty links -->
<table width="100%" style="padding:0 12px 0 12px;" cellpadding="0" cellspacing="0" border="0">
<tr>
	<td width="1%"><a class="img" href="http://www.php.net" target="_blank" style="border:0;"><img src="img/php-80x15.gif" width="80" height="15" alt="PHP Logo" title="<?=LNK_PHP?>" /></a></td>
	<td width="1%">&nbsp;</td>
	<td width="1%"><a class="img" href="http://www.mysql.com" target="_blank" style="border:0;"><img src="img/mysql-80x15.gif" width="80" height="15" alt="MySQL Logo" title="<?=LNK_MYS?>" /></a></td>
	<td width="1%">&nbsp;</td>
	<td width="1%"><a class="img" href="http://phpcamaleo.org" target="_blank" style="border:0;"><img src="img/camaleos/phpcamaleo-80x15.gif" width="80" height="15" border="0" alt="phpcamaleo.org Logo" title="<?=LNK_ILC?>" /></a></td>
	<td width="99%" align="right">
	<?php
	if($_SESSION[misc][location]=='l')
	{
		#===============================
		#	site administration menu
		#===============================
		?>
		<font id="color2" style="font-size:65%; font-weight:normal;">db @&gt; <?=$db_main?></font> | <?php
		if($USER_PRIV==0)
		{
			?>
			<font style="font-size:small; font-weight:bold;"><a href="Access.php?rediraccess=LoadPage.php,page=siteadmin">admin</a></font> |
			<font style="font-size:small; font-weight:bold;"><a href="skinMNGR.php?admin">skins</a></font>
			<?php
		}
		if($USER_PRIV>=80)
		{
			?>
			<font style="font-size:small; font-weight:bold;"><a href="LoadPage.php?page=siteadmin">admin home</a></font> |
			<font style="font-size:small; font-weight:bold;"><a href="LoadPage.php?act=logout&page=welcome">logout</a></font>
			<?php
		}
	}
	?>
	</td>
</tr>
</table>
<div style="padding:10px 0 5px 20px;"><?php if($_SESSION[misc][langforce]=='') { include($_SESSION[common].'fun2inc/site_language.inc'); site_language(); } else { ?><img src="img/trasp.gif" height="15" width="15" border="0"/>&nbsp;<?php }?></div><?php
if(file_exists('install')) { ?><fieldset class="err" style="position:absolute; top:0px; right:10px; width:150px;"><legend><img src="img/warning.gif" alt="WARNING!" title="<?=L_INSTTIT?>" /></legend>&nbsp;<font style="font-weight:bold; color:#ff0000; background:#fffc00;"><?=L_INSTMSG?></font></fieldset><?php } ?>
</body></html><?php if($_SESSION[cache]==true) { ob_end_flush(); } ?>
Return current item: phpCAMALEO