<?xml version="1.0" encoding="{lang mkey='ENCODING'}"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
{strip}
<head>
	{if $title != '' }
		<title>{$title} {if $page_title ne ""}- {$page_title}{/if}</title>
	{elseif $config.site_title ne '' }
		<title>{$config.site_title|stripslashes} {if $page_title ne ""}- {$page_title}{/if}</title>
	{else}
		<title>{lang mkey='title'} {if $page_title ne ""}- {$page_title}{/if}</title>
	{/if}

	<script type="text/javascript">
	/* <![CDATA[ */
	var loadingTag = "{lang mkey='loading'}";
	{if $config.use_popups == 'N'}
	var use_popups = false;
	{else}
	var use_popups = true;
	{/if}
	{if $config.use_profilepopups == 'N'}
	var use_profilepopups = false;
	{else}
	var use_profilepopups = true;
	{/if}
	{if $smarty.session.AdminId > 0}
		var use_profilepopups = true;
		var use_popups = true;
	{/if}
	var alphanumeric_chars = "{lang mkey='alphanumeric'}";
	var alphanum_chars = "{lang mkey='alphanum'}";
	var text_chars = "{lang mkey='text'}";
	var full_chars = "{lang mkey='full_chars'}";

	/* ]]> */
	</script>

	{$addtional_css}

	<link href="{$css_path}default.css" rel="stylesheet" type="text/css" />
	{$addtional_javascript}

	<script type="text/javascript" src="{$DOC_ROOT}javascript/functions.js"></script>
	<script type="text/javascript" src="{$DOC_ROOT}javascript/validate.js"></script>

	<meta http-equiv="Content-Type" content="text/html; charset={lang mkey='ENCODING'}" />
</head>
<body  dir="{lang mkey='DIRECTION'}">
<center>
<div style="width:814px;" >
<table width="814" border="0" cellpadding="0" cellspacing="0" class="loginbarbg">
	<tr>
		<td height="33" width="156"><img src="{$image_dir}top_blue.jpg" alt="" /></td>
		<td height="33" width="658">
			<span class="admin_head">{lang mkey='admin_login_title'}  / <a href="{$docroot}index.php">{lang mkey='home_title'}</a></span>
		</td>
	</tr>
</table>

{if $smarty.session.AdminId == '' }
		{include file="admin/admin_login.tpl"}
{else}
	<div style="margin-top: 6px;">
		<div style="display:inline; float:left; vertical-align:top; width: 202px;" align=left>
			{include file="admin/panelmenu.tpl"}
		</div>
		<div style="display:inline; float:left; vertical-align:top; width: 595px; padding-left: 5px; text-align:left;">
			{$rendered_page}
		</div>
		<div style="clear:both;"></div>
	</div>
{/if}
	<div align="center" style="margin-top: 12px;">
		<a href="http://www.tufat.com/osdate.php" target="_blank" class='copyright'>{$config.copyright}</a>&nbsp;
	<a href="http://php.huike.hk" class='copyright' target="_blank">php.huike.hk</a>
		
	</div>
</div>
</center>
{closedb}
</body>
</html>

{/strip}