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/dts/admin/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php session_start(); $se = $_SESSION["id"]; if (!isset($_SESSION['id'])) { header("Location: login.php"); } include("inc/config.php");; ?> <!DOCTYPE html> <html lang="en"> <?php require "inc/head.php"; ?> <body> <!-- header--> <?php require "inc/header.php"; ?> <!-- End Main-content Top bar--> <!-- main-content--> <div class="wrapper"> <?php require "inc/sidebar.php"; ?> <div id="content"> <div class="row mb-4"> <div class="col-12 col-sm-12"> <div class="row"> <div class="col-12 col-md-12 mb-4"> <div class="card redial-border-light redial-shadow"> <div class="card-body" style="overflow: visible;"> <h6 class="header-title pl-3 redial-relative">Admin</h6> <?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 admin WHERE id='$id'"; $query_run =mysqli_query($conn, $query); if(mysqli_num_rows($query_run) > 0){ foreach($query_run as $row){ ?> <form action="add_admin.php" method="post" enctype="multipart/form-data"> <input type="hidden" name="id" value="<?php echo $row['id']; ?>"> <div class="row"> <input type="hidden" name="type" value="Admin"> <div class="col-12 col-sm-2 text-sm-right align-self-center"> <label class="redial-font-weight-600 mb-3">Name</label> </div> <div class="col-12 col-sm-10 mb-3"> <input type="text" name="name" value="<?php echo $row['name']; ?>" class="form-control" placeholder="Enter Name"> </div> <div class="col-12 col-sm-2 text-sm-right align-self-center"> <label class="redial-font-weight-600 mb-3">Email</label> </div> <div class="col-12 col-sm-10 mb-3"> <input type="email" name="username" value="<?php echo $row['username']; ?>" class="form-control" placeholder="Enter Email"> </div> <div class="col-12 col-sm-2 text-sm-right align-self-center"> <label class="redial-font-weight-600 mb-3">Phone</label> </div> <div class="col-12 col-sm-10 mb-3"> <input type="text" name="phone" value="<?php echo $row['phone']; ?>" class="form-control" placeholder="Enter Phone"> </div> <div class="col-12 col-sm-2 text-sm-right align-self-center"> <label class="redial-font-weight-600 mb-3">Password</label> </div> <div class="col-12 col-sm-10 mb-3"> <input type="text" name="password" value="<?php echo $row['password']; ?>" class="form-control" placeholder="Enter password"> </div> <div class="col-12 col-sm-2 text-sm-right align-self-center"> <label class="redial-font-weight-600 mb-3"> Company Name</label> </div> <div class="col-12 col-sm-10 mb-3"> <input type="text" name="own_company" class="form-control" value="<?php echo $row['own_company']; ?>" placeholder="Your Company Name"> </div> <div class="col-12 col-sm-2 text-sm-right align-self-center"> <label class="redial-font-weight-600 mb-3">Your GSTIN</label> </div> <div class="col-12 col-sm-10 mb-3"> <input type="text" name="own_gst" class="form-control" value="<?php echo $row['own_gst']; ?>" placeholder="Enter GSTIN"> </div> <div class="col-12 col-sm-2 text-sm-right align-self-center"> <label class="redial-font-weight-600 mb-3">Image</label> </div> <div class="col-6 col-sm-6"> <div class="form-group"> <input type="file" name="photo" class="form-control" placeholder="Email"> <input type="hidden" name="image_old" value="<?php echo $row['photo']; ?>" > </div> </div> <div class="col-8 col-sm-2"> <img src="<?php echo "image-admin/".$row['photo']; ?>" width="60px"/> </div> <!-- <div class="col-12 col-sm-10 mb-3"> <input type="file" name="photo" class="form-control" placeholder="Image"> </div> --> <div class='btn-group mb-2' style="margin-left: 39%;"> <button type="submit" name="update_admin" class="btn btn-outline-success">Add Admin</button> </div> </div> </form> <?php }} ?> </div> </div> </div> </div> </div> </div> </div> </div> <!-- End main-content--> <!-- Top To Bottom--> <a href="#" class="scrollup text-center redial-bg-primary redial-rounded-circle-50"> <h4 class="text-white mb-0"><i class="icofont icofont-long-arrow-up"></i></h4> </a> <!-- End Top To Bottom--> <!-- jQuery --> <script src="dist/js/plugins.min.js"></script> <script src="dist/js/common.js"></script> </body> </html>