<!DOCTYPE html>
<html>
  <head>
    <?php
    error_reporting(0);
    session_start();
    include '../include/connection.php';
    $conn     = db();
    if($_SESSION['uid'])
    {
    $userloginsel=mysqli_query($conn,"select * from tbl_admin where uid='".$_SESSION['uid']."'");
    $usrloginres=mysqli_fetch_array($userloginsel);
    $last_login_date_time=$usrloginres['last_login_date_time'];
    }
    else
    {
    $userloginsel=mysqli_query($conn,"select * from tbl_admin where parent_id='0'");
    $usrloginres=mysqli_fetch_array($userloginsel);
    $last_login_date_time=$usrloginres['last_login_date_time'];
    }
    
    $websel=mysqli_query($conn,"select * from tbl_website_management where website_id='1'");
    $webres=mysqli_fetch_array($websel);
    $website_logo=$webres['website_logo'];
    $website_title=$webres['website_title'];
    $website_url=$webres['website_url'];
    $website_title=$webres['website_title'];
    ?>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>Admin : : <?php echo $website_title;?></title>
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <!-- Bootstrap 3.3.6 -->
    <link rel="stylesheet" href="bootstrap/css/bootstrap.min.css">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/css/font-awesome.min.css">
    <!-- Ionicons -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/css/ionicons.min.css">
    <!-- Theme style -->
    <link rel="stylesheet" href="dist/css/AdminLTE.min.css">
    <!-- AdminLTE Skins. Choose a skin from the css/skins
    folder instead of downloading all of them to reduce the load. -->
    <link rel="stylesheet" href="dist/css/skins/_all-skins.min.css">
    <link rel="stylesheet" href="dist/css/my-style.css">
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>
  <!-- ADD THE CLASS layout-top-nav TO REMOVE THE SIDEBAR. -->
  <body class="hold-transition skin-blue layout-top-nav">
    <div class="wrapper">
      <header class="main-header">
        <nav class="navbar navbar-static-top">
          <div class="container">
            <div class="navbar-header">
              <a href="index.php" class="navbar-brand"><b><?php echo $website_title;?> Administration Panel</b></a>
            </div>
          </div>
          <!-- /.container-fluid -->
        </nav>
      </header>
      <!-- Full Width Column -->
      <div class="content-wrapper">
        <div class="container">
          <!-- Main content -->
          <section class="content my-login-sec">
            <center><a href="index.php"><img src="../upload/<?php echo $website_logo;?>" title="<?php echo $website_title;?>" style="height:100px;width:240px;margin-left:7%;" alt="<?php echo $website_title;?>"></a></center>
            <div class="box box-default my-login-box">
              <div class="box box-info">
                <div class="box-header with-border">
                  <h3 class="box-title">Forget Password</h3>
                </div>
                <!-- /.box-header -->
                <!-- form start -->
                <form class="form-horizontal" method="post" action="process-forgot-pass.php">
                  <div class="box-body">
                    <div class="form-group">
                      <label for="inputEmail3" class="col-sm-2 control-label">Email</label>
                      <div class="col-sm-10">
                        <input type="email" name="emailid" class="form-control" id="inputEmail3" placeholder="Email" required>
                      </div>
                    </div>
                    
                  </div>
                  <!-- /.box-body -->
                  <div class="box-footer">
                    <button type="burron" name="reset"class="btn btn-default" onclick="window.location.href='index.php'">Back</button>
                    <span style="padding-left:13%;"><?php echo $error;?></span>
                    <button type="submit" name="Submit" class="btn btn-info pull-right">Submit</button>
                  </div>
                  <!-- /.box-footer -->
                </form>
              </div>
              
              <!-- /.box-body -->
            </div>
            <!-- /.box -->
          </section>
          <!-- /.content -->
        </div>
        <!-- /.container -->
      </div>
      <!-- /.content-wrapper -->
      <footer class="main-footer">
        <div class="container">
          <div class="pull-right hidden-xs">
            <b>Last Login</b> <?php echo $last_login_date_time;?>
          </div>
          <strong>Copyright &copy; <?php echo date('Y');?>-<?php echo date('Y')+1;?><a href="<?php echo $website_url;?>"> <?php echo $website_title;?></a>.</strong> All rights
          reserved.
        </div>
        <!-- /.container -->
      </footer>
    </div>
    <!-- ./wrapper -->
    <!-- jQuery 2.2.3 -->
    <script src="plugins/jQuery/jquery-2.2.3.min.js"></script>
    <!-- Bootstrap 3.3.6 -->
    <script src="bootstrap/js/bootstrap.min.js"></script>
    <!-- SlimScroll -->
    <script src="plugins/slimScroll/jquery.slimscroll.min.js"></script>
    <!-- FastClick -->
    <script src="plugins/fastclick/fastclick.js"></script>
    <!-- AdminLTE App -->
    <script src="dist/js/app.min.js"></script>
    <!-- AdminLTE for demo purposes -->
    <script src="dist/js/demo.js"></script>
  </body>
</html>