<div id="navigation">
	<div id="main-nav">
		<ul class="tabbed">
			<li id="header_1" onclick="ToggleMenu_open('1');"><a href="#">{"_ADMINAREA"|lang}</a></li>
			<li id="header_2" onclick="ToggleMenu_open('2');"><a href="#">{"_SERVER"|lang}</a></li>
			<li id="header_3" onclick="ToggleMenu_open('3');"><a href="#">{"_WEB"|lang}</a></li>
			<li id="header_4" onclick="ToggleMenu_open('4');"><a href="#">{"_OTHER"|lang}</a></li>
			<li id="header_5" onclick="ToggleMenu_open('5');"><a href="#">{"_MODULES"|lang}</a></li>
		</ul>
		<div class="clearer">&nbsp;</div>
	</div>

	<div id="sub-nav">
		<div id="menu_1" style="display: none;">
			<ul class="tabbed">
				<li><a href="admin.php">{"_MENUINFO"|lang}</a></li>
				<li><a href="admin.php?site=ban_add">{"_ADDBAN"|lang}</a></li>
				<li><a href="admin.php?site=ban_add_online">{"_ADDBANONLINE"|lang}</a></li>
			</ul>
		</div>
		<div id="menu_2" style="display: block;">
			<ul class="tabbed">
				<li><a href="admin.php?site=sm_sv">{"_SERVER"|lang}</a></li>
				<li><a href="admin.php?site=sm_bg">{"_MENUREASONS"|lang}</a></li>
				<li><a href="admin.php?site=sm_av">{"_ADMINS"|lang}</a></li>
				<li><a href="admin.php?site=sm_sa">{"_TITLEADMIN"|lang}</a></li>
			</ul>
		</div>
		<div id="menu_3" style="display: none;">
			<ul class="tabbed">
				<li><a href="admin.php?site=wm_wa">{"_ADMINS"|lang}</a></li>
				<li><a href="admin.php?site=wm_ul">{"_PERM"|lang}</a></li>
				<li><a href="admin.php?site=wm_um">{"_MENUUSERMENU"|lang}</a></li>
				<li><a href="admin.php?site=wm_ms">{"_SETTINGS"|lang}</a></li>
			</ul>
		</div>
		<div id="menu_4" style="display: none;">
			<ul class="tabbed">
				<li><a href="admin.php?site=so_mo">{"_MODULES"|lang}</a></li>
				<li><a href="admin.php?site=so_up">{"_MENUUPDATE"|lang}</a></li>
				<li><a href="admin.php?site=so_lg">{"_MENULOGS"|lang}</a></li>
			</ul>
		</div>
		<div id="menu_5" style="display: none;">
			<ul class="tabbed">
				<li><a href="admin.php?modul=iexport">{"_MENUIMPORTEXPORT"|lang}</a></li>
			</ul>
		</div>
		<div class="clearer">&nbsp;</div>
	</div>
</div>

		<td id="main" valign="top" >
		{if $smarty.session.amxadmins_view == "yes"}
			<span class="title">{"_SERVERADMINSETTINGS"|lang}</span>
			<table width="95%" align="center"><tr><td>
				<table border="1" width="100%">
					<tr align="center" class="htabletop"><td colspan="4"><b>{"_SERVER"|lang}</b></td></tr>
					<tr align="center" class="htablebottom">
						<td width="1%">{"_MOD"|lang}</td>
						<td width="1%">{"_IP"|lang}</td>
						<td>{"_HOSTNAME"|lang}</td>
						<td width="1%">&nbsp;</td>
					</tr>
					{foreach from=$servers item=servers}
						<form method="POST">
							<input type="hidden" name="sid" value="{$servers.sid}" />
							<input type="hidden" name="sidname" value="{$servers.hostname}" />
							<tr class="list">
								<td><img src="images/mods/{$servers.gametype}.gif"></td>
								<td>{$servers.address}</td>
								<td>{$servers.hostname}</td>
								<td><input type="submit" class="button" name="admins_edit" value="{"_EDITADMINS"|lang}" /></td>
							</tr>
						</form>
					{/foreach}
				</table>
				<br />
				{if $msg}<div class="admin_msg" align="center">{$msg|lang}</div>{/if}
				{if $editadmins.sidname}
				<hr />
				<br />
				<form method="POST" name="frm">
				<table border="1" width="100%">
					<tr class="htabletop"><td colspan="9"><b>{"_ADMINS"|lang}: {$editadmins.sidname}</b></td></tr>
					<tr class="htablebottom">
						<td align="center">{"_NAME"|lang}</td>
						<td align="center">{"_NICKNAME"|lang}</td>
						<td width="1%" align="center">{"_STEAMID"|lang}</td>
						<td width="1%" align="center">{"_ACCESS"|lang}</td>
						<td width="1%" align="center">{"_FLAGS"|lang}</td>
						<td width="20%" align="center">{"_CUSTOMFLAGS"|lang}</td>
						<td width="1%" align="center"><nobr>{"_STATICBANTIME"|lang}</nobr></td>
						<td width="1%">{"_ACTIV"|lang}</td>
					</tr>
					{foreach from=$admins item=admins}
					<tr class="settings_line">
						<td align="center">{$admins.username}</td>
						<td align="center">{$admins.nickname}</td>
						<td align="center">{$admins.steamid}</td>
						<td align="center">{$admins.access}</td>
						<td align="center">{$admins.flags}</td>
						<td align="center">
							<div id="cf{$admins.aid}" {if $admins.aktiv!=1}style="visibility:hidden"{/if} nowrap>
								<input type="text" name="custom_flags[]" id="cftxt{$admins.aid}" size="22" value="{$admins.custom_flags}"/>
								<img src="images/server_key.png" style="cursor:pointer;" 
									onClick="window.open('include/amxxhelper.php?id=cftxt'+{$admins.aid},'Link','width=500,height=530,dependent=yes,resizable=yes');return false;" />
							</div>
						</td>
						<td align="center">
							<div id="usb{$admins.aid}" {if $admins.aktiv!=1}style="visibility:hidden"{/if}>
								<select name="use_static_bantime[]">{html_options values=$yesno_choose output=$yesno_output|lang selected=$admins.use_static_bantime}</select>
							</div>
						</td>
						<td align="center">
						<input type="hidden" name="sid" value="{$editadmins.sid}" />
						<input type="hidden" name="sidname" value="{$editadmins.sidname}" />
						<input type="checkbox" name="aktiv_new[]" value="{$admins.aid}" {if $admins.aktiv==1}checked{/if} 
							onclick="document.getElementById('cf{$admins.aid}').style.visibility=(this.checked)?'visible':'hidden';
									document.getElementById('usb{$admins.aid}').style.visibility=(this.checked)?'visible':'hidden';" /></td>
					</tr>
					{/foreach}
						<tr align="right">
							<td align="right"><input type="submit" class="button" name="save" value="{"_SAVE"|lang}"  {if $smarty.session.servers_edit !== "yes"}disabled{/if} /></td>
						</tr>
					</td>
					</tr>
				</table>
				</form>
				<br />
				
					{include file="info_amxaccess.tpl"}
				{/if}
				
			{else}
				{"_NOACCESS"|lang} !!
			{/if}
			<br />
			</td></tr></table>
		</td>
	</tr>
</table>