<?php 
/**
* @version		$Id: 404.php 1034 2012-04-14 20:40:01Z datahell $
* @package		Elxis
* @subpackage	Templates / System
* @copyright	Copyright (c) 2006-2012 Elxis CMS (http://www.elxis.org). All rights reserved.
* @license		Elxis Public License ( http://www.elxis.org/elxis-public-license.html )
* @author		Elxis Team ( http://www.elxis.org )
* @description 	Elxis CMS is free software. Read the license for copyright notices and details
*/

defined('_ELXIS_') or die ('Direct access to this location is not allowed');


$csslink = $elxis->secureBase().'/templates/system/css/';
$csslink .= ($eLang->getinfo('DIR') == 'rtl') ? 'exit-rtl.css' : 'exit.css';

echo $page->doctype."\n";
?>
<html<?php echo $page->htmlattributes; ?>>
<head>
	<base href="<?php echo $elxis->getConfig('URL'); ?>/" />
	<?php echo $page->extrahead; ?>
	<meta http-equiv="content-type" content="<?php echo $page->contenttype; ?>; charset=utf-8" />
	<meta http-equiv="content-language" content="<?php echo $eLang->getinfo('LANGUAGE'); ?>" />
	<meta name="generator" content="Elxis - Open Source CMS" />
	<meta name="distribution" content="global" />
	<meta name="robots" content="noindex, follow" />
	<title><?php echo $page->title.' - '.$elxis->getConfig('SITENAME'); ?></title>
	<meta name="description" content="<?php echo $page->msgtitle; ?>" />
	<link rel="shortcut icon" href="<?php echo $page->favicon; ?>" />
	<link rel="stylesheet" href="<?php echo $csslink; ?>" type="text/css" media="all" />
	<script type="text/javascript">
	<?php echo ($page->cdata) ? '/* <![CDATA[ */' : ''; ?>
	function qclear(ison) {
		var textel = document.getElementById('qtxt');
		var sear = document.getElementById('qsear').innerHTML;
		if (ison == 1) {
			if (textel.value == sear) { textel.value = ''; }
		} else {
			if (textel.value == '') { textel.value = sear; }
		}
	}
	<?php echo ($page->cdata) ? '/* ]]> */' : ''; ?>
	</script>
</head>
<body>
	<div class="exit_wrapper">
		<div class="exit_header"></div>
		<div id="exit_content">
			<div id="lcol">
				<div class="inner cimg center">
					<h2><?php echo $page->title; ?></h2>
					<img src="<?php echo $elxis->secureBase(); ?>/templates/system/images/exit/warning.png" alt="warning" />
					<div id="srcform">
						<form name="fmelxissearch" method="get" action="<?php echo $page->searchaction; ?>">
							<input type="text" name="q" id="qtxt" dir="<?php echo $eLang->getinfo('DIR'); ?>" value="<?php echo $eLang->get('SEARCH'); ?>..." class="srchin" onfocus="qclear(1);" onblur="qclear(0);" />
							<button type="submit"><span class="srchimg"><?php echo $eLang->get('SEARCH'); ?></span></button>
						</form>
					</div>
				</div>
			</div>
			<div id="rcol">
				<div class="inner">
					<h3><?php echo $page->msgtitle; ?></h3>
					<div class="msg"><?php echo $page->message; ?></div>
					
					<div class="errurl"><?php echo $page->url; ?></div>
					<div class="refcode"><?php echo $eLang->get('REFERENCE_CODE').': <span>'.$page->refcode.'</span>'; ?></div>
					<div id="menu">
						<h3><?php echo $eLang->get('VISIT_ONE_OF_OUR_PAGES'); ?></h3>
						<ul>
<?php 
						if ($page->menu && (count($page->menu) > 0)) {
							$i = 0;
							foreach ($page->menu as $item) {
								if ($item->menu_type != 'link') { continue; }
								if ($i > 9) { break; }
								$ssl = ($item->secure == 1) ? true : false;
								if ($item->popup == 1) {
									$link = $elxis->makeURL($item->link, $item->file, $ssl, false);
									$onclick = ' onclick="elxPopup(\''.$link.'\');"';
									$link = 'javascript:void(null);';
								} else {
									$onclick = '';
									$link = $elxis->makeURL($item->link, $item->file, $ssl);
								}
								$trg = ($item->target != '_self') ? ' target="'.$item->target.'"' : '';
								echo "\t\t\t\t".'<li><a href="'.$link.'" title="'.$item->title.'"'.$onclick.$trg.'>'.$item->title."</a></li>\n";
								$i++;
							}
						} else {
							echo "\t\t\t\t".'<li><a href="'.$page->sitelink.'" title="'.$eLang->get('HOME').'">'.$eLang->get('HOME')."</a></li>\n";
						}
						echo "\t\t\t\t".'<li><a href="javascript:window.history.go(-1);" title="'.$eLang->get('BACK').'">'.$eLang->get('BACK')."</a></li>\n";
?>
						</ul>
					</div>
				</div>
			</div>	
		</div>
		<div class="clear"></div>
		<span id="qsear" style="display:none; visibility:hidden;"><?php echo $eLang->get('SEARCH'); ?>...</span>
		<div id="footer">
			<div id="fcontainer">
				<div id="sitename">
					<a href="<?php echo $page->sitelink; ?>" title="<?php echo $elxis->getConfig('SITENAME'); ?>">
						<?php echo $elxis->getConfig('SITENAME'); ?>
					</a>
				</div>
				<div id="copy">
					<a href="http://www.elxis.org" title="Elxis Open Source CMS">Elxis</a> 
					&#169; 2006-<?php echo date('Y'); ?> All Rights Reserved.<span class="logo">&#160;</span>
				</div>
			</div>
		</div>
	</div>
</body>
</html>