<?php
include("topmenu.php");

?>

<div class="main_content_iner overly_inner ">
<div class="container-fluid p-0 ">

<div class="row">
<div class="col-12">
<div class="page_title_box d-flex align-items-center justify-content-between">
<div class="page_title_left">
<h3 class="f_s_30 f_w_700 text_white">Home</h3>
<ol class="breadcrumb page_bradcam mb-0">
<li class="breadcrumb-item"><a href="javascript:void(0);">Al Barsha Electronics LLC </a></li>
<li class="breadcrumb-item"><a href="javascript:void(0);">Dashboard</a></li>
<li class="breadcrumb-item active">Authentication</li>
<li class="breadcrumb-item active">Change Password</li>
</ol>

</div>
</div>


<div class="row">
                        <div class="col-lg-12">
                            <div class="card">
                                <div class="card-header align-items-center d-flex card-header2">
                                    <h4 class="card-title mb-0 flex-grow-1">Fill Data</h4>
                                    
                                </div><!-- end card header -->

                                <form method="post" enctype="multipart/form-data">
                                <div class="card-body">
                                    <div class="live-preview">
                                        <div class="row gy-4">
                                            
                                            <!--end col-->
                                            <div class="col-xxl-3 col-md-6">
                                                <div>
                                                    <label for="labelInput" class="form-label">Current password <span class="red">*</span></label>
                                                    <input class="form-control" type="text" required name="t1">
                                                </div>
                                            </div>
                                            <!--end col-->
                                           
                                            <!--end col-->
                                            
                                            


                                            <div class="col-xxl-3 col-md-6">
                                                <div>
                                                    <label for="exampleInputdate" class="form-label">New password<span class="red">*</span></label>
                                                    <input type="text" class="form-control" id="exampleInputdate" name="t2">
                                                </div>
                                            </div>

                                            <!-- <div class="col-xxl-3 col-md-6">
                                                <div>
                                                    <label for="exampleInputdate" class="form-label">Confirm password<span class="red">*</span></label>
                                                    <input type="text" class="form-control" id="exampleInputdate" name="t3">
                                                </div>
                                            </div> -->
                                            

                                          

                                           

                                        <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
                                         <script type="text/javascript">
                                                $(function () {
                                                    $("#paymentstat").change(function () {
                                                        if ($(this).val() == "paid") {
                                                            $("#paidamount").show();
                                                        } if ($(this).val() == "unpaid") {
                                                             $("#paidamount").hide();
                                                        }
                                                    });
                                                });
                                            </script>


                                            
                                            
                                            


                                           



                                            <div class="mt-3">

                                                <!-- <input type="submit" name="" value="Submit" class="btn btn-success waves-effect waves-light"> -->

<button type="submit" class="btn btn-primary"  name="sub">
                                                Submit
                                            </button>
                                            <!-- staticBackdrop Modal -->
                                            <div class="modal fade" id="staticBackdrop" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" role="dialog" aria-hidden="true">
                                                <div class="modal-dialog modal-dialog-centered" role="document">
                                                    <div class="modal-content">
                                                        <div class="modal-body text-center p-5">
                                                            <lord-icon src="https://cdn.lordicon.com/lupuorrc.json" trigger="loop" colors="primary:#121331,secondary:#08a88a" style="width:120px;height:120px">
                                                            </lord-icon>

                                                            <div class="mt-4">
                                                                <h4 class="mb-3">Are you Sure want to Submit Data?</h4>
                                                                
                                                                <div class="hstack gap-2 justify-content-center">
                                                                    <a href="viewdata.php" class="btn btn-success" data-bs-dismiss="modal">Add Data</a>

                                                                    <a href="viewdata.php" class="btn btn-danger" data-bs-dismiss="modal"><i class="ri-close-line me-1 align-middle"></i> Reject</a>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                                                
                                                            </div>

                                        </div>
                                        <!--end row-->
                                    </div>
                                    
                                </div>
                                </form>
                            </div>
                        </div>
                        <!--end col-->
                    </div>
                    <!--end row-->

                    
<?php
if(isset($_POST['sub']))
{
$t1=enc($_POST['t1']);
$t2=enc($_POST['t2']);

$s=mysqli_query($db,"select * from tbl_login");
$r=mysqli_fetch_row($s);
if($t1!=$r[2])
{
    msg("Current password is mismatch","reset_pwd.php");
}
else
{
//echo "insert into  tbl_services values('$cover' ,$t1','$t2','$t3','$d','0')";
$res=mysqli_query($db,"UPDATE `tbl_login` SET `password` = '$t2' where `password`='$t1'");
msg("Successfully Updated","reset_pwd.php");
}
}
?>


</div>
</div>
</div>
</div>
    









<div id="back-top" style="display: none;">
<a title="Go to Top" href="#">
<i class="ti-angle-up"></i>
</a>
</div>

<div class="footer_part">
                <div class="container-fluid">
                <div class="row">
                <div class="col-lg-12">
                <div class="footer_iner text-center">
                <p>2023 © Al Barsha Electronics LLC  - Designed by <a href="https://www.oracuz.com/">Oracuz</a></p>
                </div>
                </div>
                </div>
                </div>
                </div>
                </section>

<script src="js/jquery1-3.4.1.min.js"></script>

<script src="js/popper1.min.js"></script>

<script src="js/bootstrap.min.php"></script>

<script src="js/metisMenu.js"></script>

<script src="vendors/count_up/jquery.waypoints.min.js"></script>

<script src="vendors/chartlist/Chart.min.js"></script>

<script src="vendors/count_up/jquery.counterup.min.js"></script>

<script src="vendors/niceselect/js/jquery.nice-select.min.js"></script>

<script src="vendors/owl_carousel/js/owl.carousel.min.js"></script>

<script src="vendors/datatable/js/jquery.dataTables.min.js"></script>
<script src="vendors/datatable/js/dataTables.responsive.min.js"></script>
<script src="vendors/datatable/js/dataTables.buttons.min.js"></script>
<script src="vendors/datatable/js/buttons.flash.min.js"></script>
<script src="vendors/datatable/js/jszip.min.js"></script>
<script src="vendors/datatable/js/pdfmake.min.js"></script>
<script src="vendors/datatable/js/vfs_fonts.js"></script>
<script src="vendors/datatable/js/buttons.php5.min.js"></script>
<script src="vendors/datatable/js/buttons.print.min.js"></script>

<script src="vendors/datepicker/datepicker.js"></script>
<script src="vendors/datepicker/datepicker.en.js"></script>
<script src="vendors/datepicker/datepicker.custom.js"></script>
<script src="js/chart.min.js"></script>
<script src="vendors/chartjs/roundedBar.min.js"></script>

<script src="vendors/progressbar/jquery.barfiller.js"></script>

<script src="vendors/tagsinput/tagsinput.js"></script>

<script src="vendors/text_editor/summernote-bs4.js"></script>
<script src="vendors/am_chart/amcharts.js"></script>

<script src="vendors/scroll/perfect-scrollbar.min.js"></script>
<script src="vendors/scroll/scrollable-custom.js"></script>

<script src="vendors/vectormap-home/vectormap-2.0.2.min.js"></script>
<script src="vendors/vectormap-home/vectormap-world-mill-en.js"></script>

<script src="vendors/apex_chart/apex-chart2.js"></script>
<script src="vendors/apex_chart/apex_dashboard.js"></script>
<script src="vendors/echart/echarts.min.js"></script>
<script src="vendors/chart_am/core.js"></script>
<script src="vendors/chart_am/charts.js"></script>
<script src="vendors/chart_am/animated.js"></script>
<script src="vendors/chart_am/kelly.js"></script>
<script src="vendors/chart_am/chart-custom.js"></script>

<script src="js/dashboard_init.js"></script>
<script src="js/custom.js"></script>
</body>

<!-- Mirrored from demo.dashboardpack.com/sales.php/ by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 15 Feb 2023 12:12:37 GMT -->
</html>
