<?php
mt_srand();
$index = mt_rand(1, 9999);
$listing_for = __('listing_for', true);
?>
<br/>
<div id="ylContainer_<?php echo $index;?>" class="ylContainer">
	<?php include_once ROOT_PATH . PJ_TEMPLATE_PATH . $tpl['option_arr']['o_layout']. '/elements/header.php';?>
	<div class="ylMain">
		<div class="ylDetails">
			<div class="ylDetailsHead">
				<h1><?php __('front_my_account');?></h1>
			</div><!-- /.ylDetailsHead -->
		</div><!-- ylDetails -->
		<div class="ylDetailsInfo">
			<div class="ylSection">
				<div class="ylSectionBody">
					<div class="ylFormCol">
						<form action="?controller=pjListings&amp;action=pjActionForgot" method="post" id="frmYLForgot_<?php echo $index;?>" name="frmPLForgot">
							<input type="hidden" name="forgot" value="1" />
							<?php
							if (isset($_GET['iframe']))
							{
								?><input type="hidden" name="iframe" value="" /><?php
							}
							?>
							<div class="ylFormRow">
								<h2><?php __('front_forgot_password');?></h2>
							</div><!-- /.ylFormRow -->
							
							<?php
							if(isset($tpl['err']))
							{ 
								$forgot_err = __('forgot_err', true);
								?>
								<div class="ylFormRow">
									<span class="ylFormError"><?php echo $forgot_err[$tpl['err']];?></span>
								</div>
								<br/>
								<?php
							} 
							?>
							<?php
							if(isset($_GET['status']))
							{ 
								$forgot_statuses = __('forgot_statuses', true);
								?>
								<div class="ylFormRow">
									<span class="ylFormSuccess"><?php echo $forgot_statuses[$_GET['status']];?></span>
								</div>
								<br/>
								<?php
							} 
							?>
							<div class="ylFormRow">
								<label><?php __('front_email');?>:</label>

								<input type="email" name="email" placeholder="<?php __('front_email');?>" class="ylField required email" data-err="<?php __('front_email_required');?>" data-email="<?php __('front_email_invalid');?>">
							</div><!-- /.ylFormRow -->

							<div class="ylFormControls">
								<input class="ylBtn ylBtnSubmit" type="submit" value="<?php __('front_button_send');?>">
							</div><!-- /.ylFormRow -->
							<div class="ylFormControls">
								<a href="?controller=pjListings&amp;action=pjActionAccount"><?php __('front_login');?></a>
							</div><!-- /.ylFormRow -->
						</form>
					</div><!-- /.ylFormCol -->
				</div><!-- ylSectionBody -->
			</div><!-- ylSection -->
		</div><!-- ylDetailsInfo -->
	</div><!-- /.ylMain -->
</div>
<?php include_once ROOT_PATH . PJ_TEMPLATE_PATH . $tpl['option_arr']['o_layout']. '/elements/loadjs.php';?>