Location: PHPKode > projects > Php4dvd - movie database > php4dvd/tpl/default/users/login.html
<div id="login">
	{if !$loggedin}
	<div id="div_login">
		<form name="loginform" method="POST" onsubmit="if(verify(this)) return true; else alert('Some fields are not filled in correctly!'); return false;">
		<table class="center">
			<tr id="tr_username">
				<td nowrap>
					User name:
				</td>
				<td>
					<input type="text" name="username" id="text_username_1" value="{$username|replace:"\"":"&quot;"}" class="textfield" style="width: 100px;">
				</td>
			</tr>
			<tr id="tr_password">
				<td nowrap>
					Password:
				</td>
				<td>
					<input type="password" name="password" id="text_password_1" value="" class="textfield" style="width: 100px;">
					<input type="submit" name="submit" value="log in" class="button">
				</td>
			</tr>
			{if $login_error}
			<tr>
				<td colspan="2" class="inputerror">
					Incorrect user name or password
				</td>
			</tr>
			{/if}
		</table>
		</form>
	</div>

	<script type="text/javascript">
		/* Focus on the login input */
		document.getElementById('text_username_1').focus();
		document.getElementById('text_username_1').value += '';
	</script>

	{else}
	<table class="right">
		<tr>
			<td>
				<input type="submit" name="submit" value="log out" class="button" onclick="if(confirm('Are you sure you want to log out?')) location.href='./?logout=1';">
			</td>
		</tr>
	</table>
	{/if}
</div>
Return current item: Php4dvd - movie database