<?php require(SABLE_WORKING_PATH.'login/login_func.php'); ?>
<script src="<?php echo(SABLE_URL_ROOT.'login/forgotten.js'); ?>"></script>
<form id="Login" name="Login" autocomplete="off">
	<input id="sId" type="hidden" value="<?php echo(SableSystem::sableEncode($_SESSION['ID'])); ?>">
	<div class="container forms" style="display:block">
		<!--// header -->
		<div class="row forms-grids">
			<div class="col-md-8 forms-grid">
				<h3 class="title"><i class="fa fa-unlock-alt" aria-hidden="true"></i></i>&nbsp;Forgotten Password</h3>
				<p>Passwords are securely encrypted on this system and can only be reset by the account holder. Please enter your email address or cell phone number below and a link will be sent to you. When you receive the message, click on the link provided to change your password.</p>
				<p>&nbsp;<span class="nb"><i class="fa fa-exclamation-triangle" aria-hidden="true"></i></span>&nbsp;If you provide an email address, your email software may send the email to the 'Junk Mail' folder. Please check this folder if the email does not reach you in a short while.</p>
				<div class="clearfix"> </div>
			</div>
		</div>
		<!-- header //-->
		<!--// user name -->
		<div class="row forms-grids" style="display:block">
			<div class="col-md-4 forms-grid">
				<input name="edtEmail" type="email" id="edtEmail" onfocus="showHint('edtEmail')" 
					   onblur="hideHint('edtEmail'); validate_edtEmail()" onkeypress="handleEnter(this, event)" placeholder="Email / Cell No."/>
			</div>
			<div class="col-md-4">
				<div class="fieldHint" id="hint_edtEmail">Email/Cell No. used to register.</div>
			</div>                
			<div class="clearfix"> </div>
		</div>
		<!-- user name //-->
		<p></p>
		<!--// password -->
		<div class="row forms-grids">
			<div class="col-md-4 forms-grid">
				<input type="email" name="edtConfirm" id="edtConfirm" onfocus="showHint('edtConfirm')" 
				onblur="hideHint('edtConfirm'); validate_edtConfirm()" onkeypress="handleEnter(this, event)" placeholder="Confirm Email / Cell No."/>
			</div>
			<div class="col-md-4 forms-grid">
				<div class="fieldHint" id="hint_edtConfirm">Please confirm your Email/Cell No.</div>
			</div>                
			<div class="clearfix"> </div>
		</div>      
		<!-- password //-->
		<p></p>	
	
		<!--// buttons -->
		<div class="row forms-grids">
			<div class="col-md-2 forms-grid">                            
				<input type="button" id="btnOk" value="Send" class="submit" onClick="forgotten()"/> 
			</div>
			<div class="col-md-2 forms-grid">                            
				<input type="button" id="btnCancel" value="Cancel" class="submit" onclick="window.location = '<?php echo(SABLE_URL_ROOT); ?>'"/>
			</div>
		</div>
		<!-- buttons //-->
		<div class="row forms-grids">
			<div class="col-md-6">         
			 <p><i class="fa fa-arrow-circle-left" aria-hidden="true"></i>&nbsp;<a href="<?php echo(SableSystem::getCallPageLink('/login/')); ?>" class="link_contrast">Click here to return to the login page.</a></p>       
			 </div>
		</div>
	</div>
</form>