<?php include("parent/callMe.php"); ?>

<?php  include("sessioncheck.php"); ?>



<?php 



$dayno;

if (isset($_REQUEST['dayno'])) {



  $dayno=$_REQUEST['dayno'];



} else {



  $dayno="10";

}



$m->where("class_id", $_REQUEST['class_id']);

//$m->where("session_id", $_SESSION['current_session']);

$standardFee = $m->get("eduportal_class_fee_details");

//print_r($standardFee);

?>



<!DOCTYPE html>

<html lang="en">

  <head>

    

    <title>Add Bulk Students | EduPortal </title>

    <?php include('RootMe/css_links.php');?>  

   

  </head>



  <script src="js/ajax_functions.js"></script>  



  <input type="hidden" name="" value="<?php echo $_REQUEST['deleteLocalStorage'];?>" id="deleteLocalStorage">

  <script src="js/ajax_functions.js"></script>  

  <script>

  var clr=document.getElementById("deleteLocalStorage").value;

  if (clr=="delete") {

  localStorage.clear();

}

</script>



<script>



function getSection1(str)

{

//alert(str);

 //  check_std_duplication(id);

   getClassFee1(str);

  

   if(str=="")

      alert("Please select any Class");

  else

     var ajx;  // The variable that makes Ajax possible!

  

  if(window.XMLHttpRequest)

  ajx=new XMLHttpRequest();

  ajx.onreadystatechange = function()

  {



    if(ajx.readyState == 4)

    {

         /*alert(ajx.responseText);*/ 

         document.getElementById("txt_section").innerHTML= ajx.responseText;

    }

  }

  ajx.open("GET", "get_section.php?class_id="+str);

  ajx.send(); 



}



function getClassFee1(str,id)

{

//alert(id);

   

  

   if(str=="")

      alert("Please select any Class");

  else

     var ajx;  // The variable that makes Ajax possible!

  

  if(window.XMLHttpRequest)

  ajx=new XMLHttpRequest();

  ajx.onreadystatechange = function()

  {



    if(ajx.readyState == 4)

    {

        /* alert(ajx.responseText); */

         document.getElementById("tutionfee0").value= ajx.responseText;

         document.getElementById("tutionfee1").value= ajx.responseText;

         document.getElementById("tutionfee2").value= ajx.responseText;

         document.getElementById("tutionfee3").value= ajx.responseText;

         document.getElementById("tutionfee4").value= ajx.responseText;

         document.getElementById("tutionfee5").value= ajx.responseText;

         document.getElementById("tutionfee6").value= ajx.responseText;

         document.getElementById("tutionfee7").value= ajx.responseText;

         document.getElementById("tutionfee8").value= ajx.responseText;

         document.getElementById("tutionfee9").value= ajx.responseText;

    }

  }

  ajx.open("GET", "get_classfee.php?class_id="+str+"&row="+id);

  ajx.send(); 



}







var chk_status;  



function check_std_duplication(id){ 





 var name=document.getElementById("txt_first_name"+id).value;

 var cell=document.getElementById("cell"+id).value;

 var cls=document.getElementById("select_add"+id).value;



// alert(cls);



 // reseting values



 document.getElementById("fname"+id).style.borderColor  = "#cccccc";

 document.getElementById("c"+id).style.borderColor  = "#cccccc";

 document.getElementById("validate_status").value="";







  if (window.XMLHttpRequest) {





    xmlhttp=new XMLHttpRequest();



  } else { // code for IE6, IE5



    xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");



  }



  xmlhttp.onreadystatechange=function() {



    if (xmlhttp.readyState==4 && xmlhttp.status==200) {



    



     status=xmlhttp.responseText;



    //alert(xmlhttp.responseText);



     if(xmlhttp.responseText=="1" || xmlhttp.responseText==1){

        

        



        $("#check_std_msg").slideDown('slow').delay(4000).slideUp('slow');

         chk_status=xmlhttp.responseText;



         document.getElementById("fname"+id).style.borderColor  = "red";

         document.getElementById("c"+id).style.borderColor  = "red";



          

          document.getElementById("validate_status").value=xmlhttp.responseText;

          // alert(xmlhttp.responseText);

     }

     else{

      chk_status=0;

      }

     

    }

}



  xmlhttp.open("GET","check_std_duplicate.php?name="+name+"&cell="+cell+"&class_id="+cls,true);

  xmlhttp.send();

           

}





function student_check(){



      

     var chk_stat=document.getElementById("validate_status").value;

    

         if(chk_stat=="1" || chk_stat==1 ){





           $("#check_std_msg").slideDown('slow').delay(4000).slideUp('slow');



        return false;

         }

    

        else {



          return true;

         }

    

    

    



}



  </script>

  

  <!-- jQuery -->

  <script src="js/ajax_functions.js"></script>



  <body class="nav-md">

    <div class="container body">

      <div class="main_container">       

     

            <?php //include('RootMe/sidebar.php');?>



              <?php //include('RootMe/header.php');?>

     

        <!-- page content -->

        <div class="" role="main" style="margin-left: 25px;margin-right: 25px;">

          <br>

          <a href="<?php echo $_SESSION['dashboard'];?>">Dashboard </a> &nbsp; <i style="" class="fa fa-angle-double-right"></i>  &nbsp;       

            <a href="students.php">Add Student </a> &nbsp; <i style="" class="fa fa-angle-double-right"></i>  &nbsp;       

            Add Multi Students

           

            <br>

          <div class="row">

              <div class="col-md-12 col-sm-12 col-xs-12">

                <div class="x_panel bulkstyle">

                  <div class="">

                    <h2>Add Bulk Students</h2>



                     <?php if(isset($_REQUEST['class_id'])) { ?>

                 <a href="manage_students.php?a61oe8lnioo156a61oe8lqc1oclfi4llgnioo156&amp;class_id=<?php echo $_REQUEST['class_id'];?>&section=<?php echo $_REQUEST['section'];?>&session=<?php echo $_REQUEST['session'];?>" class="btn btn-primary" style="float: right;margin-top: -35px;">View Students</a>

                <?php } ?>



                <a style="float: right;margin-top: -35px;" id="pay" data-toggle="modal" data-target="#AddLocality" style="padding: 0px 5px; font-size:14px;"  href="#" class="btn btn-success">



                  Add Locality

                  

              </a>





                 <!-- Modal -->

  <div id="AddLocality" class="modal fade" role="dialog">

    <div class="modal-dialog">



      <!-- Modal content-->

      <div class="modal-content">

        <div class="modal-header">

          <button type="button" class="close" data-dismiss="modal">&times;</button>

          <h4 class="modal-title"> Add Localities   </h4>

        </div>





        <div class="modal-body">

          </div>



        <form class="form-style-7" action="<?php echo DOMAIN.AgentDirectory;?>parent/InsertMe.php" method="post" enctype="multipart/form-data">



        <input type="hidden" name="action" value="AddLocalityBuld">

        





                 <div class="col-md-12" >

                      <div class="form-group" >

                        

                        <label>  Add New Locality </label>

                         <input type="text"  name="locality_name" placeholder="Enter Locality Name..." autocomplete="off" required maxlength="100" style="width: 100%;height: 34px;" autofocus="autofocus" required>

                      </div>

                  </div>





                 <!-- <div class="col-md-12" >

                      <div class="form-group" >

                        

                        <label>  Add Locality Date </label>

                          <input type="date" name="locality_date" value="<?php echo date("Y-m-d");?>" style="width: 100%;height: 34px;">

                      </div>

                 </div> -->





            <div class="modal-footer">



              <button type="submit" class="btn btn-primary" name="submit" >Save </button>

              <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>





            </div>







                 </form>

                  

          </div>



        </div>

      </div>                            

                  

                   

                  </div>

<div class="row" >           



<br><br>

      <form  action="bulk_stdns.php" enctype="multipart/form-data" method="get">

        <div class="panel panel-default">

<br>

      <div class="col-md-2 col-sm-12 col-xm-12 floatm" style="">

                <div class="form-group ">

                  <label class="required">Session</label>

                    <select name="session" class="form-control"  style="padding-left:2px;" required>



                              

                        <?php



                       $match;

                        if(!isset($_REQUEST['session'])){

                          $match=$_SESSION['current_session'];

                        }else { $match=$_REQUEST['session']; }

                                                       

                        $WorkAssignList = $m->get("edu_session_config");

                        foreach($WorkAssignList as $WorkAssignListVal)

                        { ?>



                           <option <?php if($match==$WorkAssignListVal['session_id']){echo 'selected';}?> value="<?php echo $WorkAssignListVal['session_id']; ?>"><?php echo $WorkAssignListVal['session_year']; ?></option>





                                <?php

                        } ?>



                    </select>

                </div>

              </div>

      <div class="col-md-2 col-sm-12 col-xm-12 floatm" style="">

                <div class="form-group ">

                  <label class="required">Year</label>

                                   
                  <select name="year" class="form-control">

                    <option value="All">All</option>

                    <?php
                    
                    $match;

                    if(!isset($_REQUEST['year'])){

                    $match=date("Y");

                    }else { $match=$_REQUEST['year']; }

                    for($i=2018;$i<2031;$i++){ ?>

                     <option <?php if($match==$i){echo 'selected';}?> value="<?php echo $i; ?>"><?php echo $i; ?></option>

                    <?php } ?>  

                 </select>


                </div>

              </div>



              <div class="col-md-2 col-sm-12 col-xs-12" style="padding-left:2px;">



              <div class="form-group" >

                

                <label for=""> Class </label>

          

             <select name="class_id" id="select_add" class="form-control" required onChange="getSection1(this.value,<?php echo $j; ?>)"  >

              <option value="">Select Class</option>



              <?php

              $m->where("branch_id", $_SESSION['branch']);

              $WorkAssignList = $m->get("edu_class_config");

              foreach($WorkAssignList as $WorkAssignListVal)

              { ?>



                 <option <?php if($_REQUEST['class_id']==$WorkAssignListVal['class_id']){echo 'selected';}?> value="<?php echo $WorkAssignListVal['class_id']; ?>"><?php echo $WorkAssignListVal['Class_Name']; ?></option>



                  <?php } ?>



          </select>





              </div>

          </div>



          <?php if (!isset($_REQUEST['section'])) { ?>

            

            <div class="col-md-2 col-sm-12 col-xs-12" style="padding-left:2px;">



              <div class="form-group" >

                

                <label for=""> Section </label>

              <select name="section" id="txt_section<?php echo $j; ?>" required class="form-control" >                

                 <option value=""> No Section </option>   

              </select>

              

              </div>

          </div>

          <?php } else { ?>



           <div class="col-md-2 col-sm-12 col-xs-12" style="padding-left:2px;">



              <div class="form-group" >

                <label class="required">Section</label>

              <select name="section" id="txt_section<?php echo $j; ?>" required class="form-control" >                

                             <?php

            if($_REQUEST['class_id']!='')

            { 



            $m->where("section_id", $_REQUEST['section']);

            $m->where("class_id", $_REQUEST['class_id']); 

            $secondLevel = $m->get("edu_adm_section_detail");

            if($secondLevel[0]>0){

            foreach($secondLevel as $secondLevel_val)

            {

            if(is_array($secondLevel_val)){

             ?>

              <option value="<?php echo $secondLevel_val['section_id']; ?>"><?php echo trim(utf8_encode_all($secondLevel_val['section_name'])); ?></option>

              <?php } } } ?>

              

              <?php } ?>   

              </select>

              

              </div>

          </div>



          <?php } ?>



          <div class="col-md-2 col-xs-12" style="padding-left: 2px;">

                <div class="form-group ">

                  <label class="required">Number Of Rows</label>

                    <select name="dayno" id="dayno"  data-placeholder="Select" class="chosen-multi-select inputfield form-control" >



                    <option <?php if($dayno=="5"){echo "Selected";} ?> value="5">5</option>

                    <option <?php if($dayno=="6"){echo "Selected";} ?> value="6">6</option>

                    <option <?php if($dayno=="7"){echo "Selected";} ?> value="7">7</option>

                    <option <?php if($dayno=="8"){echo "Selected";} ?> value="8">8</option>

                    <option <?php if($dayno=="9"){echo "Selected";} ?> value="9">9</option>

                    <option <?php if($dayno=="10"){echo "Selected";} ?> value="10">10</option>

                    <option <?php if($dayno=="15"){echo "Selected";} ?> value="15">15</option>

                    <option <?php if($dayno=="20"){echo "Selected";} ?> value="20">20</option>

                    <option <?php if($dayno=="25"){echo "Selected";} ?> value="25">25</option>

                    <option <?php if($dayno=="30"){echo "Selected";} ?> value="30">30</option>

                    <option <?php if($dayno=="35"){echo "Selected";} ?> value="15">35</option>

                                                                        



                  </select>



                  

                </div>

              </div>



          <div class="col-md-1" style="padding:2px;" >

                <div class="form-group ">

                   <input type="hidden" name="addaccountAdmin" value="1">

                <button type="submit" class="btn btn-primary" style="margin-top: 20px;">Search </button>

                </div>

          </div>

<br>

      <table>

                

              <div class="col-md-12">

             

               

                   <tr>



                <?php if ($_REQUEST['adm']=='adm') { ?>

                  

                  <div class="col-md-1" >

                  <div class="form-group" > 

                  <label class="container1">

                    <input type="checkbox" name="adm" checked value="adm"/>

                    <span style="font-size:12px;">Adm No</span> <span class="checkmark"></span>

                  </label>

                  

                  </div>

                </div>



              <?php } else { ?>



                <div class="col-md-1" >

                  <div class="form-group" > 

                  <label class="container1">

                    <input type="checkbox" name="adm"  value="adm"/>

                    <span style="font-size:12px;">Adm No</span> <span class="checkmark"></span>

                  </label>

                  

                  </div>

                </div>



              <?php } ?>





              <?php if ($_REQUEST['stdName']=='stdName') { ?>



                <div class="col-md-1" >

                  <div class="form-group" > 

                  <label class="container1">

                    <input type="checkbox" name="stdName" checked value="stdName"/>

                    <span style="font-size:12px;">Student</span> <span class="checkmark"></span>

                  </label>

                  

                  </div>

                </div>



                <?php } else { ?>





                  <div class="col-md-1" >

                  <div class="form-group" > 

                  <label class="container1">

                    <input type="checkbox" name="stdName"  value="stdName"/>

                    <span style="font-size:12px;">Student</span> <span class="checkmark"></span>

                  </label>

                  

                  </div>

                </div>



               <?php } ?>





               <?php if ($_REQUEST['fName']=='fName') { ?>



                <div class="col-md-1" >

                  <div class="form-group" > 

                  <label class="container1">

                    <input type="checkbox" name="fName" checked value="fName"/>

                    <span style="font-size:12px;">Father</span> <span class="checkmark"></span>

                  </label>

                  

                  </div>

                </div>



              <?php } else { ?>



                <div class="col-md-1" >

                  <div class="form-group" > 

                  <label class="container1">

                    <input type="checkbox" name="fName"  value="fName"/>

                    <span style="font-size:12px;">Father</span> <span class="checkmark"></span>

                  </label>

                  

                  </div>

                </div>



              <?php } ?>





              <?php if ($_REQUEST['cellno']=='cellno') { ?>



                <div class="col-md-1" >

                  <div class="form-group" > 

                  <label class="container1">

                    <input type="checkbox" name="cellno" checked value="cellno"/>

                    <span style="font-size:12px;">Cell</span> <span class="checkmark"></span>

                  </label>

                  

                  </div>

                </div>



              <?php } else { ?>





                <div class="col-md-1" >

                  <div class="form-group" > 

                  <label class="container1">

                    <input type="checkbox" name="cellno"  value="cellno"/>

                    <span style="font-size:12px;">Cell</span> <span class="checkmark"></span>

                  </label>

                  

                  </div>

                </div>



              <?php } ?>





              <?php if ($_REQUEST['fee']=='fee') { ?>



                <div class="col-md-1" >

                  <div class="form-group" > 

                  <label class="container1">

                    <input type="checkbox" name="fee" checked value="fee"/>

                    <span style="font-size:12px;">Fee</span> <span class="checkmark"></span>

                  </label>

                  

                  </div>

                </div>



              <?php } else { ?>



                <div class="col-md-1" >

                  <div class="form-group" > 

                  <label class="container1">

                    <input type="checkbox" name="fee"  value="fee"/>

                    <span style="font-size:12px;">Fee</span> <span class="checkmark"></span>

                  </label>

                  

                  </div>

                </div>



              <?php } ?>





              <?php if ($_REQUEST['balance']=='balance') { ?>



                <div class="col-md-1" >

                  <div class="form-group" > 

                  <label class="container1">

                    <input type="checkbox" name="balance" checked value="balance"/>

                    <span style="font-size:12px;">Balance</span> <span class="checkmark"></span>

                  </label>

                  

                  </div>

                </div>



              <?php } else { ?>



                <div class="col-md-1" >

                  <div class="form-group" > 

                  <label class="container1">

                    <input type="checkbox" name="balance"  value="balance"/>

                    <span style="font-size:12px;">Balance</span> <span class="checkmark"></span>

                  </label>

                  

                  </div>

                </div>



              <?php } ?>





              <?php if ($_REQUEST['medium']=='medium') { ?>



                <div class="col-md-1" >

                  <div class="form-group" > 

                  <label class="container1">

                    <input type="checkbox" name="medium" checked value="medium"/>

                    <span style="font-size:12px;">Medium</span> <span class="checkmark"></span>

                  </label>

                  

                  </div>

                </div>



              <?php } else { ?>





                <div class="col-md-1" >

                  <div class="form-group" > 

                  <label class="container1">

                    <input type="checkbox" name="medium"  value="medium"/>

                    <span style="font-size:12px;">Medium</span> <span class="checkmark"></span>

                  </label>

                  

                  </div>

                </div>





              <?php } ?>





              <?php if ($_REQUEST['dob']=='dob') { ?>

                

                <div class="col-md-1" >

                  <div class="form-group" > 

                  <label class="container1">

                    <input type="checkbox" name="dob" checked value="dob"/>

                    <span style="font-size:12px;">DOB</span> <span class="checkmark"></span>

                  </label>

                  

                  </div>

                </div>



              <?php } else { ?>



                <div class="col-md-1" >

                  <div class="form-group" > 

                  <label class="container1">

                    <input type="checkbox" name="dob"  value="dob"/>

                    <span style="font-size:12px;">DOB</span> <span class="checkmark"></span>

                  </label>

                  

                  </div>

                </div>



              <?php } ?>





              <?php if ($_REQUEST['locality']=='locality') { ?>



                <div class="col-md-1" >

                  <div class="form-group" > 

                  <label class="container1">

                    <input type="checkbox" name="locality" checked value="locality"/>

                    <span style="font-size:12px;">Locality</span> <span class="checkmark"></span>

                  </label>

                  

                  </div>

                </div>



              <?php } else { ?>



                <div class="col-md-1" >

                  <div class="form-group" > 

                  <label class="container1">

                    <input type="checkbox" name="locality"  value="locality"/>

                    <span style="font-size:12px;">Locality</span> <span class="checkmark"></span>

                  </label>

                  

                  </div>

                </div>



              <?php } ?>





              <?php if ($_REQUEST['gender']=='gender') { ?>



                <div class="col-md-1" >

                  <div class="form-group" > 

                  <label class="container1">

                    <input type="checkbox" name="gender" checked value="gender"/>

                    <span style="font-size:12px;">Gender</span> <span class="checkmark"></span>

                  </label>

                  

                  </div>

                </div>



              <?php } else { ?>



                <div class="col-md-1" >

                  <div class="form-group" > 

                  <label class="container1">

                    <input type="checkbox" name="gender"  value="gender"/>

                    <span style="font-size:12px;">Gender</span> <span class="checkmark"></span>

                  </label>

                  

                  </div>

                </div>



              <?php } ?>

              



               <?php if ($_REQUEST['familycode']=='familycode') { ?>



                <div class="col-md-1" >

                  <div class="form-group" > 

                  <label class="container1">

                    <input type="checkbox" name="familycode" checked value="familycode"/>

                    <span style="font-size:12px;">Family</span> <span class="checkmark"></span>

                  </label>

                  

                  </div>

                </div>



              <?php } else { ?>





                <div class="col-md-1" >

                  <div class="form-group" > 

                  <label class="container1">

                    <input type="checkbox" name="familycode"  value="familycode"/>

                    <span style="font-size:12px;">Family</span> <span class="checkmark"></span>

                  </label>

                  

                  </div>

                </div>



              <?php } ?>



                

              </tr>

            </div>

            

              </table>



            </form>





      <!-- ending -->

    <form class="form-style-7" action="<?php echo DOMAIN.AgentDirectory;?>parent/InsertMe.php" method="post" onSubmit="return student_check();" enctype="multipart/form-data">

<input type="hidden" name="action"  value="AddBulkStudents">

    <div class="col-md-12">



<input type="hidden" name="class_id" value="<?php echo $_REQUEST['class_id'];?>">

<input type="hidden" name="section" value="<?php echo $_REQUEST['section'];?>">

<input type="hidden" name="session" value="<?php echo $_REQUEST['session'];?>">

<input type="hidden" name="year" value="<?php echo $_REQUEST['year'];?>">

<input type="hidden" name="adm" value="<?php echo $_REQUEST['adm'];?>">

<input type="hidden" name="stdName" value="<?php echo $_REQUEST['stdName'];?>">

<input type="hidden" name="fName" value="<?php echo $_REQUEST['fName'];?>">

<input type="hidden" name="cellno" value="<?php echo $_REQUEST['cellno'];?>">

<input type="hidden" name="fee" value="<?php echo $_REQUEST['fee'];?>">

<input type="hidden" name="balance1" value="<?php echo $_REQUEST['balance'];?>">

<input type="hidden" name="medium1" value="<?php echo $_REQUEST['medium'];?>">

<input type="hidden" name="dob" value="<?php echo $_REQUEST['dob'];?>">

<input type="hidden" name="locality" value="<?php echo $_REQUEST['locality'];?>">

<input type="hidden" name="gender" value="<?php echo $_REQUEST['gender'];?>">

<input type="hidden" name="familycode" value="<?php echo $_REQUEST['familycode'];?>">

<input type="hidden" name="dayno" value="<?php echo $_REQUEST['dayno'];?>">



   <div id="check_std_msg" style="display:none;" class="alert alert-warning alert-dismissible">

     <a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>

     <strong>Warning !</strong> Student Record is already exist !!!

   </div>



    <?php if(isset($_SESSION['success'])){?>



   

        <div class="alert alert-success" id="msg">

         <a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>

          <strong>Success!</strong> Students record is added successfully...

        </div>





    <?php unset($_SESSION['success']); }?>

 </div>

  

                

    

<div class="x_content">

         

<?php

if (isset($_REQUEST['class_id'])) {

  



for($j=0;$j<$dayno;$j++)

{ 



?>

                <div class="row" style="padding: 0.5%;margin: 0.5%;" > 



                    <?php if ($_REQUEST['adm']=='adm') { ?>  



                     <div class="col-md-1 col-sm-12 col-xs-12 marginm" style="padding: 0px 2px 0px 2px;">

                      <div class="form-group" id="c<?php echo $j; ?>">

                                

                      <input type="text" class="form-control" name="ref[]"  autocomplete="off" id="ref" placeholder="Adm No" />

           

                    </div>

                     </div>



                   <?php } ?>





                    <?php if ($_REQUEST['stdName']=='stdName') { ?> 



                    <div class="col-md-2 col-sm-12 col-xs-12 marginm" style="padding: 0px 2px 0px 2px;" >

                      <div class="form-group"  id="fname<?php echo $j; ?>">

                        

                       <input type="text" autofocus  autocomplete="off" placeholder="Student Name"  name="fname[]" id="txt_first_name" onkeypress='return alpha(event);'  maxlength="100" class="form-control" />



                      </div>

                    </div>



                  <?php } ?>





                  <?php if ($_REQUEST['fName']=='fName') { ?> 



                   <div class="col-md-2 col-sm-12 col-xs-12 marginm" style="padding: 0px 2px 0px 2px;">



                    <div class="form-group" >

                      

                    <input type="text" name="lname[]"  autocomplete="off"  id="txt_last_name" value="" onkeypress='return alpha(event);'   maxlength="100" placeholder="Father Name" class="form-control"/>



                      </div>

                    </div>



                  <?php } ?>





                  <?php if ($_REQUEST['cellno']=='cellno') { ?> 



                    <div class="col-md-2 col-sm-12 col-xs-12 marginm" style="padding: 0px 2px 0px 2px;">

                      <div class="form-group" id="c<?php echo $j; ?>">

                        

                        

                      <input type="number" name="cell[]"  autocomplete="off" id="cell" placeholder="03016138728" class="form-control"/>

                   

                      </div>

                  </div>



                <?php } ?>





                <?php if ($_REQUEST['fee']=='fee') { ?>



                   <div class="col-md-1 col-sm-12 col-xs-12 marginm" style="padding: 0px 2px 0px 2px;">

                     <div class="form-group" id="c<?php echo $j; ?>">

                                    

                     <input type="number" min="0" name="tutionfee[]"  autocomplete="off" id="tutionfee<?php echo $j; ?>" value="<?php echo $standardFee[0]['tution_fee']; ?>" placeholder="Fee" class="form-control" />

                      </div>

                    </div>



                  <?php } ?>





                  <?php if ($_REQUEST['balance']=='balance') { ?>



                    <div class="col-md-1 col-sm-12 col-xs-12 marginm" style="padding: 0px 2px 0px 2px;">

                      <div class="form-group" id="c<?php echo $j; ?>">

                                

                      <input type="number" min="0" name="balance[]"  autocomplete="off" id="balance" placeholder="Balance" class="form-control" />

           

                    </div>

                     </div>



                   <?php } ?>



                   <?php if ($_REQUEST['medium']=='medium') { ?>

                   

                      <div class="col-md-1 col-sm-6 col-xs-12" style="padding: 0px 2px 0px 2px;">

                        <select id="c<?php echo $j; ?>" name="medium[]" class="form-control">



                          <option value="">Medium  </option>

                          <option <?php if($student[0]['medium']=="english"){echo "Selected";} ?> value="english">English</option>

                          <option <?php if($student[0]['medium']=="urdu"){echo "Selected";} ?> value="urdu">Urdu</option>

                          <option <?php if($student[0]['medium']=="sindhi"){echo "Selected";} ?> value="sindhi">Sindhi</option>                    

                                                                

                        </select> 

                      </div>



                    <?php } ?>



                    <?php if ($_REQUEST['dob']=='dob') { ?>



                      <div class="col-md-2 col-sm-6 col-xs-12" style="padding: 0px 2px 0px 2px;">

                        <div class="form-group" id="c<?php echo $j; ?>">

                                

                      <input type="date" name="dob[]"  autocomplete="off" id="dob" placeholder="" class="form-control" />

           

                    </div> 

                      </div>



                    <?php } ?>



             

         

                    <?php if ($_REQUEST['locality']=='locality') { ?>



                <div class="col-md-2 col-sm-6 col-xs-12 " style="padding: 0px 2px 0px 2px;">



                     <div class="form-group ">



                       

                            <select name="Locality[]" id="c<?php echo $j; ?>" class="form-control">



                                    <option value="">Choose Locality</option>

                              



                                <?php

                                $m->where("branch_id", $_SESSION['branch']);

                                $WorkAssignList = $m->get("eduportal_branch_locality");



                                if(count($WorkAssignList)>0){

                                foreach($WorkAssignList as $WorkAssignListVal)

                                { ?>



                                   <option <?php if($_REQUEST['month']==$WorkAssignListVal['locality_id']){echo 'selected';}?> value="<?php echo $WorkAssignListVal['locality_id']; ?>"><?php echo $WorkAssignListVal['locality_name']; ?></option>

                            <?php }  } else { ?>



                                    <option>No Locality</option>

                            <?php    } ?>



                            </select>

                        </div>





                </div>



                <?php } ?>





                <?php if ($_REQUEST['gender']=='gender') { ?>



               <div class="col-md-2 col-sm-6 col-xs-12 " style="padding: 0px 2px 0px 2px;">



                     <div class="form-group ">



                       

                            <select name="gender[]" id="c<?php echo $j; ?>" class="form-control">



                            <option value="">Select Gender </option>

                            <option <?php if($WorkAssignListVal['gender']=="Male"){echo "Selected";} ?> value="Male">Male</option>

                            <option <?php if($WorkAssignListVal['gender']=="Female"){echo "Selected";} ?> value="Female">Female</option> 



                            </select>

                        </div>





                </div>



              <?php } ?>





              <?php if ($_REQUEST['familycode']=='familycode') { ?>



                     <div class="col-md-1 col-sm-12 col-xs-12 marginm" style="padding: 0px 2px 0px 2px;">

                      <div class="form-group" id="c<?php echo $j; ?>">

                                

                      <input type="number" min="0" name="familycode[]"  autocomplete="off" id="familycode" placeholder="Family Code" class="form-control" />

           

                    </div>

                    </div>





                  <?php } ?>







</div>

<?php }  ?>                 

    

                      <div class="ln_solid"></div>



                      <div class="form-group">

                          <div class="col-md-6 col-sm-6 col-xs-12">

                          

                          <button type="submit" class="btn btn-success">Submit Record</button> &nbsp;&nbsp;

                          <a href="dashboard.php"><button class="btn btn-primary" type="button">Cancel</button></a>

                          

                        </div>

                      </div>

<?php  } else {?>

<br><br>

  <div  style="display:block;" class="alert alert-danger alert-dismissible">

      <a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>

       <strong>Warning !</strong> Please select class, section and search to Add Students  !!!

  </div>

  <?php }?>

                    </form>

                  </div>

                </div>

              </div>

            </div>         

    

        </div>

           

             

           

          </div>

        </div>

        <!-- /page content -->

      <!-- jQuery -->

    

    <?php include('RootMe/js_linksscript.php');?> 

  </body>

</html>

