Location: PHPKode > projects > phpCAMALEO > skins/ocean/Layout.php
<?php
/***************************************************************************
 *	Layout.php
 *
 *	begin		: August 2006
 *	version		: [ocean] 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.0 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]?>/ocean.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>
	<script type="text/javascript" src="skins/ocean/ocean-anim.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].$_SESSION[misc][folder].'skins/phpCAMALEO/def/'.$_SESSION[sitelanguage].'/'.$_SESSION[PageNr].'_defs.php'))
{
	include_once($_SERVER[DOCUMENT_ROOT].$_SESSION[misc][folder].'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="640" align="center">
<tr valign="top">
	<!-- L -->
	<td valign="top" style="background:url(img/sq_black.gif) repeat-y #000000;" id="sha1" width="1px"></td>
	<td valign="top" style="background:url(img/sq_black.gif) repeat-y #000000;" id="sha2" width="1px"></td>
	<td valign="top" style="background:url(img/sq_black.gif) repeat-y #000000;" id="sha3" width="1px"></td>
	<td valign="top" style="background:url(img/sq_black.gif) repeat-y #000000;" id="sha4" width="1px"></td>
	<!-- C -->
	<td align="center" height="100%">
		<table width="100%" id="bgcol0" border="0" cellpadding="0" cellspacing="0">
			<tr><!-- logo --><td valign="bottom" align="center" height="70" id="bgcol1"><img src="img/trasp.gif" border="0" width="100%" height="6" /><br /><a href="LoadPage.php?page=welcome" style="border:0;"><img src="skins/ocean/img/logo.gif" width="450" height="69" alt="ocean Logo" title="ocean @> The phpCAMALEO ocean skin!" /></a><br /></td></tr>
			<tr>
				<td valign="top" align="center">
					<!-- menu -->
					<table width="100%" align="left" border="0" cellpadding="0" cellspacing="0">
						<tr class="menu_tab" align="left">
							<td class="menu_tab"><?php
													   if($PageNr=='welcome')	{ ?>HOME<?php } 									else { ?><a href="LoadPage.php?page=welcome">HOME</a><?php } ?></td>
							<td class="menu_tab"><?php if($PageNr=='stmenu1')	{ ?><b id="mnu_tab_sel">STRUCTURED MENU</b><?php }	else { ?><a href="LoadPage.php?page=stmenu1">STRUCTURED MENU</a><?php } ?></td>
							<td class="menu_tab"><?php if($PageNr=='faq')		{ ?>FAQ<?php }										else { ?><a href="LoadPage.php?page=faq">FAQ</a><?php } ?></td>
							<td class="menu_tab"><a href="http://phpcamaleo.org">phpCAMALEO</a></td>
							<td class="menu_tab"><img src="img/trasp.gif" border="0" width="200" height="30" /></td>
						</tr>
						<?php 
						if($PageNr=='stmenu1' || $PageNr=='submnu1.1' || $PageNr=='submnu1.2' || $PageNr=='submnu1.3')
						{ 
							?><tr class="menu_tab" align="left"><td colspan="1"></td><td class="menu_tab" colspan="4"><?php 
									if($PageNr=='submnu1.1')	{ ?>SUB MENU1<?php }	else { ?><a href="LoadPage.php?page=submnu1.1">SUB MENU1</a><?php } ?>&nbsp;&gt;&nbsp;<?php 
									if($PageNr=='submnu1.2')	{ ?>SUB MENU2<?php }	else { ?><a href="LoadPage.php?page=submnu1.2">SUB MENU2</a><?php } ?>&nbsp;&gt;&nbsp;<?php 
									if($PageNr=='submnu1.3')	{ ?>SUB MENU3<?php }	else { ?><a href="LoadPage.php?page=submnu1.3">SUB MENU3</a><?php } ?>
							  </td></tr>
							  <tr class="menu_tab"><td><img src="img/trasp.gif" width="100%" height="10" /></td></tr><?php 
						}
						?>
						<tr><td colspan="5" align="center"><img src="skins/ocean/img/f9b208.gif" height="1" width="97%" ></td>
					</table>
				</td>
			</tr>
			</tr>
			<!-- contents -->
			<tr><td valign="top" align="left" height="99%" id="bgcontents" style="padding:15px;"><img src="img/trasp.gif"><?php include($_SESSION[common].'includes/bld_contents.php'); flush(); ob_flush(); ?></td></tr>
			<tr><td valign="top" align="center" style="padding:10px;" id="dark">
					<font id="sml1">&bull;&nbsp;
						<a href="Contact.php">Contact</a>&nbsp;&bull;
						<a href="LoadPage.php?page=privacy">Privacy</a>&nbsp;&bull;
						<a href="LoadPage.php?page=aboutus">About Us</a>&nbsp;&bull;
						<a href="#top">^TOP^</a>&nbsp;&bull;
					</font>
				</td>
			</tr>
			<?php if($_SESSION[misc][langforce]=='') { ?><tr><td valign="top" align="center" id="dark"><?php include($_SESSION[common].'fun2inc/site_language.inc'); site_language();?></td></tr><?php }?>
			<tr><td colspan="5" align="center" id="dark"><img src="skins/ocean/img/f9b208.gif" height="1" width="97%" ></td>
			<tr>
				<td valign="top" align="center" style="padding:3px;" id="dark">
					<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>
					<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>
					<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>
			</tr>
			<tr><td valign="top" align="center" id="dark">
				<font id="copyright">&copy; 2006 <?=$_SESSION[misc][SITE]?>, fishes are used with permission by <a class="img" href="http://draude.com/" target="_blank">Alexander Draude</a> &mdash; All rights reserved.<br /><?=LAST_SITE?>: <?=_LAST_UPDATE_?>, Time taken to build this page: <?=substr(round(get_microtime()-$start_pagebuild_time,4),0,6)?> sec.</font>
				<img src="img/trasp.gif" border="0" width="100%" height="6" /><br />
				</td>
			</tr>
			<?php
			if($_SESSION[misc][location]=='l')
			{
				#===============================
				#	site administration menu
				#===============================
				?>
				<tr>
					<td valign="top" align="center" style="padding:0px;" id="dark">
					<font id="color1" 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>
				<?php } ?>
		</table>
	</td>
	<!-- R -->
	<td valign="top" style="background:url(img/sq_black.gif) repeat-y #000000;" id="sha4" width="1px"></td>
	<td valign="top" style="background:url(img/sq_black.gif) repeat-y #000000;" id="sha3" width="1px"></td>
	<td valign="top" style="background:url(img/sq_black.gif) repeat-y #000000;" id="sha2" width="1px"></td>
	<td valign="top" style="background:url(img/sq_black.gif) repeat-y #000000;" id="sha1" width="1px"></td>
</tr>
<!-- bottom shadow -->
<tr><td colspan="4" rowspan="4" valign="top"><img src="skins/ocean/img/blsha.gif" width="4" height="4" /></td></tr>
<tr>
	<td id="sha4"></td>
	<td colspan="4" rowspan="4" valign="top"><img src="skins/ocean/img/brsha.gif" width="4" height="4" /></td>
</tr>
<tr><td id="sha3"></td></tr>
<tr><td id="sha2"></td></tr>
<tr><td id="sha1"></td></tr>
</table>
<?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