Server IP : 162.214.80.37 / Your IP : 216.73.216.83 Web Server : Apache System : Linux sh013.webhostingservices.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : imyrqtmy ( 2189) PHP Version : 8.2.18 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /home2/imyrqtmy/public_html/vssvclinic/Admin/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php session_start(); $se = $_SESSION["id"]; if (!isset($_SESSION['id'])) { header("Location: login.php"); } include("Includes/db.php");; $user = "SELECT * FROM `tbl_admin` WHERE id='$se'"; $user_r = mysqli_query($con,$user); $userw = mysqli_fetch_array($user_r); $name = $userw['name']; $fe_img = $userw['degree_img']; ?> <!doctype html> <html lang="en"> <head> <?php include 'Includes/head.php'; ?> </head> <body data-sidebar="dark"> <!-- <body data-layout="horizontal" data-topbar="dark"> --> <!-- Begin page --> <div id="layout-wrapper"> <?php include 'Includes/header.php'; ?> <!-- ========== Left Sidebar Start ========== --> <div class="vertical-menu"> <div data-simplebar class="h-100"> <!--- Sidemenu --> <?php include 'Includes/sidebar.php'; ?> <!-- Sidebar --> </div> </div> <!-- Left Sidebar End --> <!-- ============================================================== --> <!-- Start right Content here --> <!-- ============================================================== --> <div class="main-content"> <div class="page-content"> <div class="container-fluid"> <!-- start page title --> <div class="row"> <div class="col-12"> <div class="page-title-box d-sm-flex align-items-center justify-content-between"> <h4 class="mb-sm-0 font-size-18">Update Password</h4> </div> </div> </div> <!-- end page title --> <div class="row"> <div class="card"> <div class="card-body"> <h4 class="card-title"></h4> <?php if(isset($_SESSION['status']) && $_SESSION != ''){ ?> <div class="alert alert-warning alert-dismissible fade show" role="alert"> <strong>Hey!</strong> <?php echo $_SESSION['status']; ?> <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button> </div> <?php unset($_SESSION['status']); } ?> <?php $id = $_GET['id']; $query = "SELECT * FROM tbl_admin WHERE id='$id'"; $query_run =mysqli_query($con, $query); if(mysqli_num_rows($query_run) > 0){ foreach($query_run as $row){ ?> <form class="needs-validation" action="add_password.php" method="post" enctype="multipart/form-data"> <input type="hidden" name="id" value="<?php echo $row['id']; ?>"> <div class="form-group row justify-content-center"> <div class="col-md-8"> <label for="CategoryName">Name</label> <input type="text" class="form-control" name="name" value="<?php echo $row['name']; ?>" id="name" placeholder="Name" required> </div> </div> <div class="form-group row justify-content-center"> <div class="col-md-8"> <label for="CategoryName">Password</label> <input type="text" class="form-control" name="password" value="<?php echo $row['password']; ?>" id="password" placeholder="Pssword" required> </div> </div> <button type="submit" name="update_pass" class="btn btn-primary me-2">Update Password</button> </form> </div> </div> <div> </div> </form> <?php }} ?> </div> </div> <!-- end card --> <!-- end col --> </div> <!-- end row --> <!-- end row --> <!-- end row --> </div> <!-- container-fluid --> </div> <!-- End Page-content --> <footer class="footer"> <?php include 'Includes/footer.php'; ?> </footer> </div> <!-- end main content--> </div> <!-- END layout-wrapper --> <!-- Right Sidebar --> <!-- /Right-bar --> <!-- Right bar overlay--> <!-- <div class="rightbar-overlay"></div> --> <!-- <?php include 'Includes/bscript.php'; ?> --> </body> </html>