<form role="form" id="frm" method="POST" action="">	
	<?php $cookie_prefix=$this->config->item('cookie_prefix'); ?>		
	<div class="form-group has-feedback">
		<input type="text" name="username" class="form-control" placeholder="Username" value="<?php if(isset($_COOKIE[$cookie_prefix.'admin_username_cookie']) && $_COOKIE[$cookie_prefix.'admin_username_cookie']!=''){ echo $_COOKIE[$cookie_prefix.'admin_username_cookie']; } ?>">
		<span class="glyphicon glyphicon-user form-control-feedback"></span>
	</div>
	
	<div class="form-group has-feedback">
		<input type="password" name="password" class="form-control" placeholder="Password" value="<?php if(isset($_COOKIE[$cookie_prefix.'admin_password_cookie']) && $_COOKIE[$cookie_prefix.'admin_password_cookie']!=''){ echo $_COOKIE[$cookie_prefix.'admin_password_cookie']; } ?>">
		<span class="glyphicon glyphicon-lock form-control-feedback"></span>
	</div>
	
	<div class="row">
		<div class="col-xs-12">
			<button type="submit" class="btn btn-primary btn-block btn-flat" name="submit_login"><i class="fa fa-sign-in" aria-hidden="true"></i> Sign In</button>
		</div>
	</div>
	
	<div class="row" style="margin-top:5px;">
		<div class="col-md-5">
			<div class="checkbox icheck">
				<label><input type="checkbox" name="remember_me" <?php if(isset($_COOKIE[$cookie_prefix.'admin_username_cookie']) && $_COOKIE[$cookie_prefix.'admin_username_cookie']!=''){?> checked="checked" <?php } ?>> Remember Me</label>
			</div>
		</div>
		<div class="col-md-7" style="margin-top:10px;">		  
			<a style="font-style: italic; font-weight: 600; float:right;" href="<?php echo base_url().$this->config->item('admin_directory_name');?>/forgot_password"><i class="fa fa-key" aria-hidden="true"></i> I forgot my password</a>
		</div>
	</div>
	
</form>