<?php
include('../include/header.php');
$emp_id = $_REQUEST['emp_id'];
 $sql = "select *from tbl_user_mstr where md5(emp_id)='$emp_id'";
						$result = $objhr->viewdata($sql);
							
							
							$rows = $result->fetch_assoc();
?>

 <!-- Page wrapper  -->
        <div class="page-wrapper">
            <!-- Bread crumb -->
            <div class="row page-titles">
                <div class="col-md-5 align-self-center">
                    <h3 class="text-primary">Dashboard</h3> </div>
                <div class="col-md-7 align-self-center">
                    <ol class="breadcrumb">
                        <li class="breadcrumb-item"><a href="javascript:void(0)">Home</a></li>
                        <li class="breadcrumb-item active">Login Detail</li>
                    </ol>
                </div>
            </div>
            <!-- End Bread crumb -->
            <!-- Container fluid  -->
           <div class="container-fluid">
                <!-- Start Page Content -->
                <div class="row justify-content-center">
                    <div class="col-lg-6">
                        <div class="card">
                            <div class="card-body">
                                <div class="form-validation">
                                    <form class="form-valide" method="post">
                                       <h3>Employee Login Detail :</h3>
									   <h2>User Name : <?php echo $rows['user_name']; ?></h2>
									    <h2>password : <?php echo $rows['password']; ?></h2>
                                        
                                        <div class="form-group row">
                                            <div class="col-lg-8 ml-auto">
                                                <button type="submit" class="btn btn-primary" name="ok">Ok</button>
                                            </div>
                                        </div>
                                    </form>
                                </div>

                            </div>
                        </div>
                    </div>
                </div>
                <!-- End PAge Content -->
            </div>
			
<?php
if(isset($_POST['ok'])){
 ?>
 <script>
 location='employee_details.php';
 </script>
 <?php
 
}
?>
<?php
include('../include/footer.php');
?>
