<!DOCTYPE html>
<!--// $Id$ //-->
<html><head>
<meta name="GENERATOR" content="LMS {$layout.lmsv}">
{include file="language.html"}
<title>LMS – {if $layout.pagetitle != ""}{$layout.pagetitle}{/if}</title>
<link href="css/style.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="js/common.js"> </script>
{if $js}<script type="text/javascript">
<!--
	{$js}
//-->
</script>{/if}
</head>
{if ! $part}
<frameset frameborder="0" framespacing="0" ROWS="30,*">
	<frame scrolling="no" frameborder="0" marginheight="0" marginwidth="0" name="cal" noresize src="?m=choosemac&p=top">
	<frame scrolling="always" frameborder="0" marginheight="0" marginwidth="0" name="m" noresize src="?m=choosemac&p=main">
</frameset>
{/if}
{if $part == "main"}
<body class="lms-ui-popup">
	<table width="100%" cellpadding="1">
	{section name=maclist loop=$maclist.mac}
	<TR class="highlight" {if $maclist.nodename[maclist] == ""} onClick="sendvalue(targetfield,'{$maclist.mac[maclist]}');"{/if}>
		<TD align="center">
			{if $maclist.nodename[maclist] == ""}
			<a href="javascript: void(0);" onclick="sendvalue(targetfield,'{$maclist.mac[maclist]}');">
				{if $smarty.server.REMOTE_ADDR == $maclist.ip[maclist]}<span class="red"><B>{/if}{$maclist.mac[maclist]}{if $smarty.server.REMOTE_ADDR == $maclist.ip[maclist]}</B></span>{/if}
			</A>
			{else}
			<span class="blend">{$maclist.mac[maclist]}</span>
			{/if}
		</td>
		<TD align="center">
			{if $maclist.nodename[maclist] == ""}
			<a href="javascript: void(0);" onclick="sendvalue(targetfield,'{$maclist.mac[maclist]}');">
				{if $smarty.server.REMOTE_ADDR == $maclist.ip[maclist]}<span class="lms-ui-alert">{/if}
						{$maclist.ip[maclist]}
				{if $smarty.server.REMOTE_ADDR == $maclist.ip[maclist]}</span>{/if}
			</A>
			{else}
			<span class="blend">{$maclist.nodename[maclist]}</span>
			{/if}
	</TR>
	{sectionelse}
	</table>
	<table width="100%" height="100%">
		<TR title="{trans("Click to close window")}" onclick="parent.window.close();">
			<TD align="center">
				<span class="lms-ui-alert">{trans("That server hasn't seen any MAC addresses!")}</span>
				<BR><BR>
				{trans("Or, most likely, can't get MAC addresses table on that host.")}
			</TD>
		</TR>
	{/section}
	</table>
</body>
{/if}
{if $part == "top"}
<body class="lms-ui-popup">
<table cellpadding="5" width="100%">
	<tr>
		<td class="fall dark" align="center">
			<B>{trans("Select MAC address:")}</B>
		</td>
	</tr>
</table>
{/if}
</html>
