<?php
mt_srand();
$index = mt_rand(1, 9999);
$front_err = __('front_error', true);
?>
<div id="pjWrapper">
	<div class="container-fluid pjJlContainer">
		<?php include_once dirname(__FILE__) . '/elements/header.php';?>
		
		<div class="pjJlBody">
			<div class="pjJlForm pjJlFormAccess pjJlFormAccessLogin">
				<form action="<?php echo $_SERVER['PHP_SELF'];?>?controller=pjLoad&amp;action=pjActionForgotPassword" method="post" id="frmForgotPassword" name="frmForgotPassword" autocomplete="off" class="form-dyna xs-4 form-forgot-password" >
            		<input type="hidden" name="forgot_password" value="1" />
            		
            		<header class="pjJlFormHead">
						<p class="pjJlFormTitle"><?php __('front_label_forgot_password');?></p><!-- /.pjJlFormTitle -->

						<p><?php __('front_label_forgot_password_intro');?></p>
					</header><!-- /.pjJlFormHead -->
					
					<div class="row pjJlFormBody">
						<div class="col-lg-9 col-md-9 col-sm-8 col-xs-12 pjJlFormContent">
							<?php
							if(isset($_GET['err']))
							{
								$reg_message = __('front_forgot', true);
								$class = ($_GET['err'] == '0') ? ' alert-danger' : ' alert-success';
								?>
								<div class="alert<?php echo $class; ?>"><?php echo $reg_message[$_GET['err']] ?></div>
								<?php
							} 
							?>
							<div class="row">
								<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
									<div class="form-group">
										<label for=""><?php __('front_label_email'); ?>: </label>
										<input type="text" name="email" class="form-control required email" data-msg-required="<?php echo $front_err['email']?>" data-msg-email="<?php echo $front_err['email_inv']?>"/>
										<div class="help-block with-errors"><ul class="list-unstyled"></ul></div>
									</div><!-- /.form-group -->
								</div><!-- /.col-lg-6 col-md-6 col-sm-6 col-xs-12 -->
								<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 pjJlFormActions">
									<button type="submit" class="btn btn-default pjJlBtn pjJlBtnPrimary"><?php __('front_button_send');?></button>
								</div><!-- /.col-lg-12 col-md-12 col-sm-12 col-xs-12 pjJlFormActions -->
							</div><!-- /.row -->
						</div><!-- /.col-lg-9 col-md-9 col-sm-8 col-xs-12 pjJlFormContent -->
						<aside class="col-lg-3 col-md-3 col-sm-4 col-xs-12 pjJlFormAside">
							<div class="thumbnail pjJlFormBox">
								<p class="pjJlFormBoxTitle"><?php __('front_dont_have_account');?></p><!-- /.pjJlFormBoxTitle -->
								<?php
								if ($tpl['option_arr']['o_seo_url'] == 'No')
								{
									$register_url = $_SERVER['PHP_SELF'] . '?controller=pjLoad&amp;action=pjActionRegister';
								} else {
									$path = str_replace('\\', '/', dirname($_SERVER['SCRIPT_NAME']));
									$path = $path == '/' ? '' : $path;
									$register_url = $path .'/job-register.html';
								} 
								?>
								<a href="<?php echo $register_url; ?>" class="btn btn-default btn-block pjJlBtn pjJlBtnPrimary"><?php __('front_register');?></a>
							</div><!-- /.thumbnail pjJlFormBox -->
						</aside><!-- /.col-lg-3 col-md-3 col-sm-4 col-xs-12 pjJlFormAside -->
					</div>		
            	</form><!-- form -->
			</div><!-- /.pjJlForm pjJlFormAccess pjJlFormAccessLogin -->
		</div><!-- /.pjJlBody -->
	</div><!-- /.container-fluid pjJlContainer -->
</div><!-- /.pjWrapper -->

<?php include_once dirname(__FILE__) . '/elements/loadjs.php';?>