<?php
mt_srand();
$index = mt_rand(1, 9999);
?>
<div id="pjWrapper">
	<div class="container-fluid pjMlContainer">
		<?php include_once PJ_VIEWS_PATH . 'pjLoad/elements/header.php';?>
		
		<div class="row pjMlBody pjMlAccess">
			<div class="col-lg-offset-3 col-lg-6 col-md-offset-3 col-md-6 col-sm-offset-3 col-sm-6 col-xs-12 pjMlForm pjMlFormLogIn">
				<form id="pjMLForgotForm_<?php echo $index;?>" action="<?php echo $_SERVER['PHP_SELF'];?>?controller=pjLoad&amp;action=pjActionForgot" method="post" data-toggle="validator" role="form">
					<input type="hidden" name="forgot_password" value="1" />
					<p class="pjMlFormTitle"><?php __('front_forgot_password');?></p><!-- /.pjMlFormTitle -->
					<p><?php __('front_forgot_password_notes');?></p>
					
					<div class="pjMlFormBody">
						<?php
						if(isset($tpl['err']))
						{
							$front_err = pjSanitize::clean(__('front_err', true));
							?>
							<div class="alert alert-danger" role="alert"><?php echo $front_err[$tpl['err']];?></div>
							<?php
						}
						if(isset($tpl['msg']))
						{
							$front_msg = pjSanitize::clean(__('front_msg', true));
							?>
							<div class="alert alert-success" role="alert"><?php echo $front_msg[$tpl['msg']];?></div>
							<?php
						} 
						?>
						<div class="form-group">
							<label for=""><?php __('front_email_address');?>: </label>
							
							<input type="email" name="email" class="form-control required email" data-msg-required="<?php __('front_field_required');?>" data-msg-email="<?php __('front_email_invalid');?>" data-msg-remote="<?php __('front_email_in_used');?>"/>
							<div class="help-block with-errors"><ul class="list-unstyled"></ul></div>
						</div><!-- /.form-group -->
						
						<div class="pjMlFormActions">
							<button type="submit" class="btn btn-default pjMlBtn pjMlBtnPrimary"><?php __('front_btn_send');?></button>
						
							<a href="<?php echo $_SERVER['PHP_SELF']; ?>?controller=pjLoad&amp;action=pjActionRegister" class="btn btn-link pjMlBtn pjMlBtnLink"><?php __('front_login');?></a>
						</div><!-- /.pjMlFormActions -->
					</div><!-- /.pjMlFormBody -->
				</form>
			</div><!-- /.col-lg-offset-3 col-lg-6 col-md-offset-3 col-md-6 col-sm-offset-3 col-sm-6 col-xs-12 pjMlForm pjMlFormLogIn -->
		</div>
	</div><!-- /.container-fluid pjMlContainer -->
</div><!-- /#pjWrapper -->
	
<?php include_once PJ_VIEWS_PATH . 'pjLoad/elements/loadjs.php';?>