<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">

	<?=$this->view->head_title($cp_page_title)?>
	<?=$this->view->head_link('css/login.css'); ?>
</head>
<body>

<div id="branding"><img src="<?=PATH_CP_GBL_IMG?>ee_logo_branding.gif" width="250" height="28" alt="<?=lang('powered_by')?> <?=APP_NAME?>" /></div>

	<div id="content">
		
		<?php if ($message != ''):?>
		<div class="error">
			<p><?=$message?></p>
		</div>
		<?php endif;?>


		<?=form_open('C=login'.AMP.'M=authenticate', array(), array('return_path' => $return_path))?>

		<dl>
			<dt><?=lang('username', 'username')?>:</dt>
			<dd>
				<?=form_input(array('style' => 'width:90%', 'size' => '35', 'dir' => 'ltr', 'name' => "username", 'id' => "username", 'value' => $username, 'maxlength' => 50))?>
			</dd>

			<dt><?=lang('password', 'password')?>:</dt>
			<dd>
			  <?=form_password(array('style' => 'width:90%', 'size' => '32', 'dir' => 'ltr', 'name' => "password", 'id' => "password", 'maxlength' => 40))?> 
			</dd>
		</dl>
		
		<script>
			document.getElementById('<?=$focus_field?>').focus();
		</script>
		
		<?php if ($this->config->item('admin_session_type') == 'c'):?>
			<p><?=form_checkbox('remember_me', '1', '', 'id="remember_me"')?><span><?=lang('remember_me', 'remember_me')?></span></p>
		<?php endif;?>

		<p><?=form_submit('submit', lang('login'), 'class="submit"')?> <span><a href='<?=BASE.AMP?>C=login&amp;M=forgotten_password_form'><?=lang('forgot_password')?></a></span></p>

		<?=form_close()?>

	</div>

</body>
</html>
