/home/hdwebsolution/public_html/ns-interior/admin/index.php
<?php include("../connection.php"); ?>
<!DOCTYPE html>
<html lang="en">
   <head>
      <title>Five Design</title>
      <meta charset="utf-8">
      <meta name="viewport" content="width=device-width, initial-scale=1">
      <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/css/bootstrap.min.css">
      <link href="https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100;300;400;500;700;900&display=swap" rel="stylesheet">
      <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
      <link rel="stylesheet" href="css/style.css">
   </head>
   <body>
      <!-- Start Admin Login Section -->
      <section>
         <div class="row">
            <div class="col-lg-6 bgcwht">
               <div class="row">
                  <div class="col-lg-5">
                  </div>
                  <div class="col-lg-12 loginfrms" style="    padding: 80px;
}">
                     <img src="../admin-pages/src/img/logo1.png" alt="" style="width:125px;">
                     <h2>Sign in</h2>
                     <form method="POST" id="myForm_admin">
                        <div class="form-group">
                           <label for="email">Email address<span>*</span></label>
                           <input type="text" class="form-control" placeholder="Enter email"  name="admin_email_id" id="username" autocomplete="off">
                        </div>
                        <div class="form-group">
                           <label for="pwd">Password<span>*</span></label>
                           <!-- <input type="password" class="form-control" placeholder="Enter password" id="pwd"> -->
                           <input  type="password" id="password" name="admin_pass" placeholder="Enter Password" class="form-control" autocomplete="off"  >
                           <span toggle="#password"  class="fa fa-fw fa-eye field-icon toggle-password"></span>
                        </div>
                        <div>
                           <div id="resp_alert" title="Warning">
                           </div>
                        </div>

                        <div class="form-group">
                           <button  class="btn btn-primary btnsubmit" id="button_admin">Sign in</button>
                        </div>
                     </form>
                  </div>
               </div>
            </div>
            <div class="col-lg-6 bgcclr">
               <h3>Welcome to Admin Panel</h3>
               <!--<p>Fuse helps developers to build organized and well coded dashboards full of beautiful and rich modules. Join us and start building your application today.</p>-->
            </div>
         </div>
      </section>
      <!-- End Admin Login Section -->
      <script src="https://cdn.jsdelivr.net/npm/jquery@3.6.0/dist/jquery.slim.min.js"></script>
      <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js"></script>
      <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/js/bootstrap.bundle.min.js"></script>

      <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
      <!-- start password section -->
      <script>
         $(".toggle-password").click(function() {
         
         $(this).toggleClass("fa-eye fa-eye-slash");
         var input = $($(this).attr("toggle"));
         if (input.attr("type") == "password") {
           input.attr("type", "text");
         } else {
           input.attr("type", "password");
         }
         });
      </script>
      <!-- end password section -->
   </body>
</html>
<script>
      
      //------------------------------//
     //---------Admin Login----------//
    //------------------------------//

    $("#button_admin").click(function(event) {
            event.preventDefault();
            var uname = $("#username").val();
            var pass = $("#password").val();
    
            // console.log(uname);
            // console.log(pass);
    
            $.ajax({
                method: "POST",
                url: "loginverify.php",
                data: {cap_admin_click:1,uname,uname,pass:pass},
                success: function(resp) {
                    //console.log(resp);
                    if(resp=="ldsdlgfsdo")
                    {
                        window.location.href="../admin-pages/dashboard.php";
                    }
                    else
                    {
                     // console.log(resp);
                      $("#resp_alert").html(resp);
                    }
                }
            });
        });
</script>