<?php echo $this->render('admin/header.phtml'); ?>


<script type="text/javascript" language="javascript">

	$(document).ready(function () {
	
		

		<?php if( isset( $this->changePasswordSuccess ) ){ ?>
			alertify.success("<i class='fa fa-check'></i> <?php echo @Lib_Lang::translate(admin_account_changepasssuccess); ?>");
		<?php } ?>

		<?php if( isset( $this->errorLogin ) ){ ?>
			alertify.error("<i class='fa fa-close'></i> <?php echo @Lib_Lang::translate(admin_login_wrong); ?>");
		<?php } ?>
		
		<?php if( isset( $this->errorLoginBlock ) ){ ?>
			alertify.error("<i class='fa fa-close'></i> <?php echo @Lib_Lang::translate(admin_login_lock); ?>");
		<?php } ?>

		<?php if( isset( $this->successLogout ) ){ ?>
			alertify.success("<i class='fa fa-check'></i> <?php echo @Lib_Lang::translate(admin_logout_success); ?>");
		<?php } ?>

		$('#formLogin').validate({
			errorClass: "formError",
			errorElement: "div",
			rules: {
				admin_login: {
					required: true
				},
				admin_pass: {
					required: true
				}
			},
			messages: {
				admin_login: {
					required: "<?php echo @Lib_Lang::translate(admin_login_required); ?>"
				},
				admin_pass: {
					required: "<?php echo @Lib_Lang::translate(admin_login_required); ?>"
				}
			}
		});	
	
	});

</script>

<div class="container">		
	<div class="row">
		
		<div class="col-md-2"></div>
		<div class="col-md-8">
		
		<div class="divBox">
		
		<form id="formLogin" method="post">
			<div class="row text-center"><h3><?php echo @Lib_Lang::translate(admin_login_top); ?><h3><hr /></div>
		
			<div class="row">
				<div class="col-xs-12 col-sm-4 col-md-4 text-right formLabelMarginTop"><?php echo @Lib_Lang::translate(admin_login_login); ?></div>
				<div class="col-xs-12 col-sm-8 col-md-8"><input name="admin_login" class="form-control" autocomplete="off" /></div>
			</div>
		
			<div class="row">
				<div class="col-xs-12 col-sm-4 col-md-4 text-right formLabelMarginTop"><?php echo @Lib_Lang::translate(admin_login_password); ?></div>
				<div class="col-xs-12 col-sm-8 col-md-8"><input name="admin_pass" class="form-control" type="password" /></div>
			</div>
		
			<div class="row text-center"><hr /></div>
		
			<div class="row">
				<div class="col-xs-12 col-sm-4 col-md-4 text-right"></div>
				<div class="col-xs-12 col-sm-8 col-md-8"><input class="btn btn-info form-control" type="submit" value="<?php echo @Lib_Lang::translate(admin_login_button); ?>" /></div>
			</div>
		</form>	
			
		</div>	
			
		</div>
		<div class="col-md-2"></div>
		
	</div>		
</div>

<?php echo $this->render('admin/footer.phtml'); ?>