<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
{assign var="lang" value=$true|getlanguage}
{assign var="select_lang" value=$true|selectlang:"session"}
{assign var="default_lang" value=$true|selectlang:"config"}
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr">

<head>
	<meta http-equiv="content-type" content="text/html; charset={"_ENCODING"|lang}" />
	<meta name="description" content="A ban system for the HL1 engine to manage multiple server bans."/>
	<meta name="keywords" content="amx, bans, amxbans" />
	<meta name="author" content="setoy, shorty, [gm-project.net] #Staff, Sleepwalker" />
	<meta http-equiv="pragma" content="no-cache" /> 
	<meta http-equiv="cache-control" content="no-cache" />
	<link rel="stylesheet" type="text/css" href="templates/{$design}_css/style.css" />
	<title>AMXBans {$version_web} - {$title|lang}{if $title2} - {$title2|lang}{/if}</title>
	<script type="text/javascript" src="templates/{$design}_js/amxbans.js.php"></script>
	<script type="text/javascript" src="templates/{$design}_js/jquery.js"></script>
	<script type="text/javascript" src="include/layer.js"></script>
</head>

<body id="top" {if $smarty.session.loginfailed}onLoad="javascript: countdown({$smarty.session.loginfailed});"{/if}>
<div id="network">
	<div class="center-wrapper">
		<div class="left">
			<ul class="tabbed" id="menu-tabs">
				<li>
					<form method="post" action="" style="padding:5px 8px 0 0;margin:0;">
						<select name="newlang" style="padding:0;margin:0;" onchange="this.form.submit()">
						{foreach from=$lang item="lang"}
							<option value="{$lang|escape}" {if empty($select_lang) && $default_lang == $lang}selected{/if} {if $select_lang == $lang}selected{/if}>{$lang|escape}</option>
						{/foreach}
						</select>
					</form>
				</li>
				{foreach from=$menu item=menu}
					{if $smarty.session.loggedin == "true"}
						{if $menu.lang_key2}<li><a href="{$menu.url2}">{$menu.lang_key2|lang}</a></li>{/if}
					{else}
						{if $menu.lang_key}<li><a href="{$menu.url}">{$menu.lang_key|lang}</a></li>{/if}
					{/if}
				{/foreach}
      		</ul>
		</div>
		<div class="right">
			
			<ul class="tabbed" id="admin-tabs">
				{if $smarty.session.loggedin == "true"}
					<li><a href="admin.php">{"_ADMIN"|lang} {"_MENU"|lang}</a></li>
					<li><a href="logout.php">{"_LOGOUT"|lang} {$smarty.session.uname}</a></li>
				{else}
					<li>
						<form name="loginform" action="login.php" method="post">
							<script type="text/javascript">
								var languser = '{"_USERNAME"|lang}';
								var langpass = '{"_PASSWORD"|lang}';
							</script>
							<input
								type="text" 
								size="17"
								name="user" 
								value="{"_USERNAME"|lang}" 
								onfocus="javascript:if(this.value=languser)this.value='';" 
								
								/>
							<input 
								type="password"
								size="12" 
								name="pass" 
								value="{"_PASSWORD"|lang}" 
								onfocus="javascript:if(this.value=langpass)this.value='';" 
								
								/>
							<input type='checkbox' value='yes' name='remember' title='{"_REMEMBERME"|lang}' />
							<button type="submit" name="action" id="action" value="Login">{"_LOGIN"|lang}</button>
						</form>
					</li>
				{/if}
			</ul>
			
		</div>
		<div class="clearer">&nbsp;</div>
	</div>
</div>

<div id="site">
	<div class="center-wrapper">
		{if $banner <> ""}
			<div id="header">
				<div id="site-title" style="text-align: center;">
					<a href="{$banner_url}" target="_blank"><img src="images/banner/{$banner}" title="{$banner_url}"></img></a>
				</div>
			</div>
		{/if}