<?php
require ("../connection.php");
require ("../user.php");
$us=$_REQUEST['user_id'];

//$user=$_SESSION['id'];
$username=$_SESSION['user_name'];
$pswd=mysqli_fetch_array(mysqli_query($con,"select  * from user_master where user_id='$us'"));	

?>

<div align="left"><h4>Reset Password</h4></div>
<a href="user_master.php"><button class="btn btn-primary" style="width:50px;float:right;"onclick=""><i class="fa fa-backward"></i></button></a>			

<div class="panel panel-default">
<div class="panel-body">
<div class="row">
	<form role="form" method="post" id="form-validation" name="area1"  action="<?php echo URL; ?>change_password/reset_submit" enctype="multipart/form-data">
		
		<div class="form-group">
		<label>New Password</label>
		<input type="text" class="form-control" id="new_password" name="new_password" onChange="pass(this.value,this.id)" autocomplete="off" required>
		</div>
		<div class="form-group">
		<label>Re-Enter New Password</label>
		<input type="password" class="form-control" id="password1" name="password1" onChange="checkpass(this.value)" autocomplete="off" required>
		</div>
		<div class="box-footer">
				<input type="hidden" id="user_id" name="user_id" value="<?php echo $pswd['user_id'];?>">

		<input type="submit" class="btn btn-primary" value="Submit" name="submit">
		</div>
		<div style="margin-top:100px;" class="alert alert-danger">Note : <ul><li>Your password must be 8 to 16 characters.</li>
		<li>It must contain one Uppercase and Lowercase Alphabets.</li>
		<li>It must also contain numbers and any one special characters ( @ _ ! . , $ )</li></div>
		<span id="result"></span>
	</form>
			
</div>
</div>
</div>
  