<?php
/**
 * HTML Forget password Form
 *
 * PHP version 7.3
 *
 * @package        SMS
 * @version        Release 1.0.0
 * @create_by      Mohammad aljaouni
 * @create_date    10-08-2020
 * @edited_by      Mohammad aljaouni
 * @last_edit_date 10-08-2020
 * @todo           Nothing
 */
ob_start();
session_start();
//Validation For Includeed Tree
$chain = "AWdrh78y892Djk*^523*%$#ghgHGHia&%$*)AsfdsLJnLaad";
include("includeInformation.php");

//Page Content Settings
$disableSiteHeader = true;
$disableSiteFooter = true;
$callForgetValidation = true;
$bodyClass = 'class="bg-primary bg-pattern"';
include("header.php");

?>
<!-- Start Forget password page -->
    <!-- Start Lang Button Section-->
    <div class="home-btn">
        <button type="button" class="btn waves-effect" id="page-header-flag-dropdown" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
            <img class="" src="assets/images/<?php echo $_SESSION['langSymbol'];?>/flags/<?php echo $_SESSION['langSymbol'];?>.jpg" alt="Header Language" height="20">
        </button>
        <div class="dropdown-menu dropdown-menu-right">
            <a href="changeLanguage.php?setNewLanguage=2" class="dropdown-item notify-item">
                <img src="assets/images/<?php echo $_SESSION['langSymbol'];?>/flags/en.jpg" alt="user-image" class="mr-2" height="16"><span class="align-middle">English</span>
            </a>
            <a href="changeLanguage.php?setNewLanguage=1" class="dropdown-item notify-item">
                <img src="assets/images/<?php echo $_SESSION['langSymbol'];?>/flags/ar.jpg" alt="user-image" class="mr-2" height="20"><span class="align-middle">Arabic</span>
            </a>

        </div>
    </div>
    <!-- ُىي Lang Button Section-->

    <!-- Start Login Form -->
    <div class="account-pages my-5 pt-sm-5">
        <div class="container">
            <!-- Start Logo Row-->
            <div class="row">
                <div class="col-lg-12">
                    <div class="text-center mb-5">
                        <a class="logo"><img src="assets/images/<?php echo $_SESSION['langSymbol'];?>/logo-light.png" height="auto" width="230" alt="logo"></a>
                    </div>
                </div>
            </div>
            <!-- Start Logo Row-->

            <!-- Start Form Row-->
            <div class="row justify-content-center">
                <div class="col-xl-5 col-sm-8">
                    <div class="card">
                        <div class="card-body p-4">
                            <div class="p-2">
                                <h5 class="mb-2 text-center"><?php echo $forgetLBL["forgetPassword"]?></h5>
                                <form class="form-horizontal"  id="forgetForm"  action="forgetPasswordProcess.php" method="post">
                                    <div class="row">
                                        <?php
                                        if(!empty($_GET["res"]))
                                            echo result($_GET["res"]);
                                        ?>
                                        <div class="col-md-12">
                                            <div class="form-group form-group-custom mt-2">
                                                <input type="text" class="form-control" name="name" id="name" autocomplete="off" placeholder="<?php echo $forgetLBL["insert"]." ".$forgetLBL["username"];?>">
                                            </div>
                                            
                                            <div class="mt-2">
                                                <button class="btn btn-success btn-block waves-effect waves-light" type="submit"><?php echo $button["send"]?></button>
                                                <button class="btn btn-info btn-block waves-effect waves-light" type="button" onclick="window.location.href='login.php'"><?php echo $button["back"]?></button>
                                            </div>
                                        </div>

                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <!-- End Form Row-->
        </div>
    </div>
    <!-- End Login Form -->

    <!-- start auth-footer -->
    <footer class="footer text-center auth-footer">
        <div class="container-fluid">
            <div class="row">
                <div class="col-sm-12">
                    <?php echo $footer["copy"]?>
                </div>
            </div>
        </div>
    </footer>
    <!-- end auth-footer -->
<!-- Start Forget password page -->

<?php
include("footer.php");
ob_end_flush();
?>
