<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: none;">
			<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: block;">
			<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">{"_LOGS"|lang}</span>
			<table width="95%"><tr><td>
				<tr>
				<td>
					<table border="1" width="50%">
						<tr class="htable">
							<td colspan="3"><b>{"_FILTER"|lang}</b></td>
						</tr>
						<form method="POST" name="sort">
							<tr class="settings_line" colspan="3"><td>{"_USER"|lang}</td><td>{html_options name=username options=$usernames selected=$username_checked}</td></tr>
							<tr class="settings_line" colspan="3">
									<td>{"_ACTION"|lang}</td><td>{html_options name=action options=$actions selected=$action_checked}</td>
									<td colspan="3"><input type="submit" class="button" name="sort" value="{"_GO"|lang}" /></td>
							</tr>
						</form>
					</table><br />
					<table class="admin_list" border="1" width="50%">
						<tr class="htable">
							<td colspan="3"><b>{"_DELETE"|lang}</b></td>
						</tr>
						<form method="POST" name="clear">
							<tr class="settings_line"><td>{"_ALL"|lang}</td><td width="1%"><input type="submit" class="button" name="delall" onclick="return confirm('{"_DELLOGSALL"|lang}{"_DATALOSS"|lang}');" value="{"_DELETE"|lang}" /></td></tr>
							<tr class="settings_line"><td>{"_OLDERTHEN"|lang} <input type="text" size="3" name="days" > {"_DAYS"|lang}</td><td><input size="1" type="submit" class="button" name="delolder" onclick="return confirm('{"_DELLOGS"|lang}{"_DATALOSS"|lang}');" value="{"_DELETE"|lang}" /></td></tr>	
						</form>
					</table>
					<br />
					<table border="1" width="100%">
						<tr class="htabletop">
							<td colspan="4"><b>{"_ACTIONLOGS"|lang}</b></td>
						</tr>
						<tr class="htablebottom">
							<td width="1%"><nobr>{"_INVOKED"|lang}</nobr></td>
							<td width="1%" align="center">{"_USER"|lang}</td>
							<td width="1%" align="center"><nobr>{"_ACTION"|lang}</nobr></td>
							<td>{"_REMARKS"|lang}</td>
						</tr>
						{foreach from=$logs item=logs}
							<tr class="list">
								<td width="1%"><nobr>{$logs.timestamp|date_format:"%d.%m.%Y - %T"}</nobr></td>
								<td width="1%" align="center">{$logs.username|escape}</td>
								<td width="1%" align="center"><nobr>{$logs.action|escape}</nobr></td>
								<td>{$logs.remarks|escape}</td>
							</tr>
						{/foreach}
					</table>
					<br />
				

				</td>
				</tr>
			</table>

			
			<br />
				<center><div class="admin_msg">{if $msg}{$msg|lang}{/if}</div></center>
		{else}
			{"_NOACCESS"|lang}
		{/if}
		</td>
	</tr>
</table>