{include file="$gentemplates/_header.tpl" skin="Morelogs_Silver.css" js=" onLoad=\"document.f1.login.focus()\""}

<script src="{$rooturl}modules/general/templates/default/js/md5.js" type="text/javascript"></script>

{if $sponsor_logo neq ""}<br><br><center><a href="{$sponsor_link}" target="_blank"><img src="{$sponsor_logo}" border="0" vspace="6"></a></center>{/if}

{if $encrypt_pwd ne ""}
<form name="f1" action="index.php" method="POST" target="_top" onsubmit="document.f1.encrypted_pwd.value=hex_md5(document.f1.password.value);document.f1.password.value='';">
{else}
<form name="f1" action="index.php" method="POST" target="_top">
{/if}
<input type="hidden" name="{$SESSIONNAME}" value="{$SESSIONID}">
<input type="hidden" name="encrypted_pwd" value="" />
<br />
<br />
<table border="0" cellpadding="0" cellspacing="0" width="100%" height="90%">
  <tr>
    <td align="center" valign="middle">
      
      <table border="0" cellpadding="0" cellspacing="0" align="center">
	<tr><td class="lines" height="1" colspan="3"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1"></td></tr>
	<tr>
	  <td class="lines" width="1"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1"></td>
	  <td class="user" height="22" width="460" align="center" valign="middle">Login - {$gwtitle} {$gwversion}</td>
	  <td class="lines" width="1"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1"></td>
	</tr>
	<tr><td class="lines" height="1" colspan="3"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1"></td></tr>
	<tr>
	  <td class="lines" width="1"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1"></td>
	  <td class="contentback" height="80" width="460" align="center" valign="middle">
	    <img src="{$imgpathmaster}/key.gif" vspace="12" />
	    <table border="0" cellpadding="0" cellspacing="0" align="center">
{if $loginerrortext ne ""}
	      <tr>
		<td class="lines2" height="1" colspan="3" align="right" valign="middle"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1"></td>
	      </tr>
				<tr><td colspan="3" class="login" style="color: #ff0000; text-align: center;">{$loginerrortext}</td></tr>
{/if}
	      <tr>
		<td class="lines2" height="1" colspan="3" align="right" valign="middle"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1"></td>
	      </tr>
	      <tr>
		<td class="login" height="35" width="60" align="right" valign="middle">{$language}:&nbsp;</td>
		<td class="login" align="left" valign="middle">
		  {$lsb|smarty:nodefaults}
		</td>
		<td class="login" width="45"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1"></td>
	      </tr>
	      <tr>
		<td class="lines2" height="1" colspan="3" align="right" valign="middle"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1"></td>
	      </tr>
	      <tr>
		<td class="login" height="35" width="60" align="right" valign="middle">{$user}:&nbsp;</td>
		<td class="login" align="left" valign="middle">
		  <input type="text" name="login" size="30">
		</td>
		<td class="login" width="45"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1"></td>
	      </tr>
	      <tr>
		<td class="login" height="35" width="60" align="right" valign="middle">{$password}:&nbsp;</td>
		<td class="login" align="left" valign="middle">
          <table border="0" cellpadding="0" cellspacing="0"><tr>
            <td><input type="password" name="password" size="30"></td>
            <td>
              {if $encrypt_pwd ne ""}
                <script>
                document.write('&nbsp;<img src="{$imgpathmaster}/lock.gif" alt="" border="0" width="20" height="22">');
                </script>
              {/if}
            </td></tr></table>
		</td>
		<td class="login" width="45"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1"></td>
	      </tr>
	      <tr>
		<td class="lines2" height="1" colspan="3" align="right" valign="middle"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1"></td>
	      </tr>
	      <tr>
		<td class="login" height="35" width="60" align="right" valign="middle">&nbsp;</td>
		<td class="login" align="left" valign="middle">
		  <input type="checkbox" name="checkip" value="1" checked />&nbsp;{$checkip}
		</td>
		<td class="login" width="45"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1"></td>
	      </tr>
	    </table>
	    
	  </td>
	  <td class="lines" width="1"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1"></td>
	</tr>
	<tr><td class="lines" height="1" colspan="3"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1"></td></tr>
	<tr>
	  <td class="lines" width="1"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1"></td>
	  <td class="contentback" height="60" width="460" align="center" valign="middle">
	    
	    <table border="0" cellpadding="0" cellspacing="0" align="center">
	      <tr>
		<td class="login" height="22" align="center" valign="middle">
		  <input class="submit" type="submit" name="loginbutton" value="{$login}">
		</td>
	      </tr>
	    </table>
	    
	  </td>
	  <td class="lines" width="1"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1"></td>
	</tr>
	<tr><td class="lines" height="1" colspan="3"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1"></td></tr>
      </table>
      
    </td>
  </tr>
</table>
</form>

{if $sponsor_logo neq ""}<br><br><center><a href="{$sponsor_link}" target="_blank"><img src="{$sponsor_logo}" border="0" vspace="6"></a></center>{/if}

</body>
</html>
