<?php

 include('includes/header.php');

 include('../middleware/adminMiddleware.php');

 include('../functions/myfunctions.php');

?>


<div class="container">

    <div class="row">

        <div class="col-md-12">

            <div class="card">

                <div class="card-header">

                    <h4>Find User's Password </h4>

                </div>

                <div class="card-body">

                    <form action="code.php" method="POST" enctype="multipart/form-data">

                        <div class="row">

                            <div class="col-md-4 md-offset-8">

                                <label for="">User's Mail Address :</label>

                                <input type="text" name="uemail" placeholder="User's Mail Address" class="form-control">

                            </div>

                            <div class="col-md-12 mt-5 mb-1">

                                <button type="submit" class="btn btn-primary" name="show_pw_btn">Show Password</button>

                            </div>
                            <?php
                             $spw = $_GET['spw'];
                             $uelinked = $_GET['ue'];
                             ?>
                            <div class="col-md-4 md-offset-8">
                                <label for="">Password <?php if($uelinked){echo "for " . $uelinked ." : ";}?></label>
                                <input type="text" name="upw" class="form-control" value="<?= $spw;?>" disabled>
                            </div>

                        </div>

                    </form>    

                </div>

            </div>

        </div>

    </div>

</div>



<?php include('includes/footer.php'); ?>