<?php defined('BASEPATH')or exit("NO DIRECT ACCESS iS ALLOWED");?>
<?php echo $this->uri->segment(n);?>
<style>
    .content_edit{
    min-height: 250px;
    padding: 15px;
    margin-right: auto;
    margin-left: auto;
    padding-left: 15px;
    padding-right: 15px;
  }
  .nav-tabs-custom {
    margin-bottom: 20px;
    background: #fff;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
    border-radius: 3px;
  }
  .nav-tabs-custom>.nav-tabs {
    margin: 0;
    border-bottom-color: #f4f4f4;
    border-top-right-radius: 3px;
    border-top-left-radius: 3px;
  }
  .nav-tabs-custom>.nav-tabs>li {
    border-top: 3px solid transparent;
    margin-bottom: -2px;
    margin-right: 5px;
  }
  .nav-tabs-custom>.nav-tabs>li.active {
    border-top-color: #ffa500;
  }
  .nav-tabs-custom>.nav-tabs>li:first-of-type {
    margin-left: 0;
  }
  .nav-tabs>li.active>a, .nav-tabs>li.active>a:focus, .nav-tabs>li.active>a:hover {
    color: #555;
    cursor: default;
    background-color: #fff;
    border: 1px solid #ddd;
    border-bottom-color: transparent;
  }
  .nav-tabs-custom>.nav-tabs>li>a {
    color: #444;
    border-radius: 0;
  }
  .nav-tabs-custom>.nav-tabs>li>a, .nav-tabs-custom>.nav-tabs>li>a:hover {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    background: #fff;
    margin: 0;
  }
  .nav-tabs-custom>.nav-tabs>li.active>a, .nav-tabs-custom>.nav-tabs>li.active:hover>a {
    background-color: #fff;
    color: #444;
  }
  .nav-tabs-custom>.nav-tabs>li.active>a {
    border-top-color: transparent;
    border-left-color: #f4f4f4;
    border-right-color: #f4f4f4;
  }
  .nav-tabs-custom>.nav-tabs>li:first-of-type.active>a {
    border-left-color: transparent;
  }
  .nav-tabs > li > a:hover {
    border-color: none!important;
  }
  .form-control{
    border-radius: 0;
    box-shadow: none;
    border-color: #d2d6de;
  }
  .label_edit {
    font-weight: 700;
    font-size: 12px;
    color: #000;
    margin: 0 0 10px 0;
  }
  .tab-content {
    border-top: 1px solid #eee;
    /* box-shadow: 10px 8px 8px rgba(0,0,0,0.1); */
    margin-top: 3px;
  }
  .general-fc {
    margin-top: 16px;
    margin-bottom: 10px;
  }
  .nav.nav-tabs a{
    height: 38px;
    line-height: 20px;
  }
  .nav.nav-tabs a:hover {
    height: 38px;
  }
  .nav.nav-tabs .active a:hover {
    height: 38px;
  }
  .btn_yellow{
    background-color: #ffa500;
    border-color: #ffa500;
    color: #fff
  }
  textarea.form-control {
    height: 100px;
  }


.nav-tabs_basic {
    border-top: 2px solid #ffa500;
    padding: 2px 0px;
}
  .basic_info{
    text-decoration: none;
    padding: 0px 13px!important;
    margin-top: 2px;
    font-weight: 500;
    color: #333;
    font-size: 16px;
}
</style>
 <!-- PLUGINS CSS STYLE -->


<section class="content_edit">
  <div class="row">
    <!-- /.col -->
    <div class="col-md-12">
      <div class="nav-tabs-custom">
		  <ul class="nav_basic nav-tabs_basic">
          <li>
            <a href="#personal-profile"class="basic_info">Basic Information
            </a>
          </li>
        </ul>
        <div class="tab-content">
          <div class="active tab-pane" id="personal-profile">
            <?php echo $message;?>
            <?php echo form_open('Teacher/basic_edit'); ?>
            <div class="row general-fc">
              <div class="col-md-12">
                <div class="col-md-3">
                  <div class="form-group">
                    <?php echo form_label('First Name','first_name',['for'=>'first_name','class'=>'label_edit']);?>
                    <?php echo form_error('first_name'); ?>
                    <?php echo form_input(['name'=>'first_name','class'=>'form-control input-sm','id'=>'first_name','placeholder'=>'Enter First Name here',
							'value'=>set_value('first_name',strtolower($list->first_name))]);?>
                  </div>
                </div>
                <div class="col-md-3">
                  <div class="form-group">
                    <?php echo form_label('Last Name','last_name',['for'=>'last_name','class'=>'label_edit']);?>
                    <?php echo form_error('last_name'); ?>
                    <?php echo form_input(['name'=>'last_name','class'=>'form-control input-sm','id'=>'last_name','placeholder'=>'Enter Last Name here',
					'value'=>set_value('last_name',strtolower($list->last_name))]);?>
                  </div>
                </div>
                <div class="col-md-3">
                  <div class="form-group">
                    <?php echo form_label('Mobile','mobile',['for'=>'mobile','class'=>'label_edit']);?>
                    <?php echo form_error('mobile'); ?>
                    <?php echo form_input(['name'=>'mobile','class'=>'form-control input-sm','id'=>'mobile','placeholder'=>'Enter Mobile here',
								'value'=>set_value('mobile',strtolower($list->mobile))]);?>
                  </div>
                </div>
                <div class="col-md-3">
                  <div class="form-group">
                    <?php echo form_label('Date of Birth','date_of_birth',['for'=>'date_of_birth','class'=>'label_edit']);?>
                    <?php echo form_error('date_of_birth'); ?>
                    <?php echo form_input(['name'=>'date_of_birth','class'=>'form-control input-sm','id'=>'datepicker','placeholder'=>'Enter Mobile here',
							'value'=>set_value('date_of_birth',strtolower($list->dob))]);?>
                  </div>
                </div>
                <div class="col-md-3">
                  <div class="form-group">
                    <?php echo form_label('Gender','gender',['for'=>'gender','class'=>'label_edit']);?>
                    <?php echo form_error('gender'); ?>
                    <?php $options=array(''=>'Select Gender','male'=>'Male','female'=>'Female','other'=>'Other');  ?>
                    <?php echo form_dropdown('gender',$options,set_value('gender',$list->gender),['class'=>'form-control input-sm']);?>
                  </div>
                </div>
                <div class="col-md-3">
                  <div class="form-group">
                    <?php echo form_label('County','countries',['for'=>'countries','class'=>'label_edit']);?>
                    <?php echo form_error('counry_id'); ?>
                    <select id='sel_country' class="form-control input-sm" name="country_id">
                      <option value="" >Select Country
                      </option>
                      <?php
                        foreach($country45 as $country1){
                          if($list->country_id==$country1['id']){
                            echo "<option  selected value='".$country1['id']."'>".strtoupper($country1['sortname'])." | ".strtoupper($country1['name'])."</option>";
                          }else{
                            echo "<option value='".$country1['id']."'>".strtoupper($country1['sortname'])." | ".strtoupper($country1['name'])."</option>";
                          }
                        }
                      ?>
                    </select>
                  </div>
                </div>
                <div class="col-md-3">
                  <div class="form-group">
                    <?php echo form_label('State','states',['for'=>'states','class'=>'label_edit']);?>
                    <?php echo form_error('state_id'); ?>
                    <select id='sel_state' class="form-control input-sm" name="state_id" >
                      <option value=""  >Select State
                      </option>
                       <option selected value ="<?=$list->state_id;?>" ><?=$list->states;?></option>
                    </select>
                  </div>
                </div>
                <div class="col-md-3">
                  <div class="form-group">
                    <?php echo form_label('City','cities',['for'=>'cities','class'=>'label_edit']);?>
                    <?php echo form_error('city_id'); ?>
                    <select id='sel_city' class="form-control input-sm" name="city_id" >
                      <option value=""  >Select City
                      </option>
                       <option selected value ="<?=$list->city_id;?>"><?=$list->cities;?></option>
                    </select>
                  </div>
                </div>
                <div class="col-md-3">
                  <div class="form-group">
                    <?php echo form_label('Zip Code','email',['for'=>'zip_code','class'=>'label_edit']);?>
                    <?php echo form_error('zip_code'); ?>
                    <?php echo form_input(['name'=>'zip_code','class'=>'form-control input-sm','id'=>'zip_code','placeholder'=>'Enter email  here',
                    'value'=>set_value('zip_code',$list->zip_code) ]);?>
                  </div>
                </div>
                <div class="col-md-3">
                  <div class="form-group">
                    <?php echo form_label('Aadhar Id','aadhar_id',['for'=>'aadhar_id','class'=>'label_edit']);?>
                    <?php echo form_error('aadhar_id'); ?>
                    <?php echo form_input(['name'=>'aadhar_id','class'=>'form-control input-sm','id'=>'aadhar_id','placeholder'=>'Enter email  here',
					'value'=>set_value('aadhar_id',$list->aadhar_id) ]);?>
                  </div>
                </div>
                <div class="col-md-3">
                  <div class="form-group">
                    <?php echo form_label('Pan Id','pan_id',['for'=>'pan_id','class'=>'label_edit']);?>
                    <?php echo form_error('pan_id'); ?>
                    <?php echo form_input(['name'=>'pan_id','class'=>'form-control input-sm','id'=>'pan_id','placeholder'=>'Enter email  here',
							'value'=>set_value('pan_id',strtolower($list->pan_id)) ]);?>
                  </div>
                </div>
                <div class="col-sm-2">
                  <div class="form-group">
                    <?php echo form_label('ss','pan_id',['for'=>'pan_id','class'=>'label_edit']);?>
                  <?php echo form_submit(['name'=>'save','value'=>'Save','class'=>'btn btn-danger btn-sm btn-block btn-rounded pull-right btn_yellow']); ?>
                      <?php echo form_close();?>
                </div>
                </div>
              </div>
            </div>
          </div>
		  </div>
		  </div>
		  </div>
          <!-- /.tab-pane -->

        <!-- Qualification STARTS  -->
		     <div class="col-md-12">
         <div class="nav-tabs-custom">
				  <ul class="nav_basic nav-tabs_basic">
				  <li>
					<a href="#qualifaction"class="basic_info">Qualification Details
					</a>
				  </li>
				</ul>
        <!-- id="dynamic_field" -->
          <div class="tab-pane" id="qualifaction">
            <div class="table-responsive">
              <?php  echo form_open("Teacher/basic_edit2",['name'=>'qual']);?>
                <table class="table table-bordered" id="dynamic_field">
                  <thead>
                  <tr>
                     <td>#</td>
                    <td>Qualification</td>
                    <td>University</td>
                    <td>Passing year</td>
                    <td>Other</td>
                    <td>  <?php echo form_submit(['name'=>'save','value'=>'Save','class'=>'btn btn-danger btn-sm btn-block btn-rounded pull-right btn_yellow']); ?>
                      <!-- <button type="button" name="add" id="add" class="btn btn-success">Add More</button> -->
                    </td>
                  </tr>
                </thead>
                <tbody>

                  <?php   $i=1; foreach($list1 as $list11){ ?>
                    <tr>
                      <td><?=$i;?></td>
                        <input type="hidden" name="qualid[]" value="<?=$list11->id;?>">
                         <td>  <?php echo form_dropdown('qualification[]',$qualification_li,strtolower($list11->qualification),['class'=>'form-control input-sm']);?></td>
                        <td>  <?php echo form_input(['name'=>'university[]','class'=>'form-control input-sm','placeholder'=>'Enter University',
      				            'value'=>set_value('university',strtolower($list11->university))]);?></td>
                        <td><?php echo form_input(['name'=>'passing_year[]','class'=>'form-control input-sm','placeholder'=>'Enter passing Year',
    					          'value'=>set_value('passing_year',$list11->passing_year)]);?>  </td>
                        <td> <?php echo form_input(['name'=>'grade[]','class'=>'form-control input-sm','placeholder'=>'Enter Grade',
    					          'value'=>set_value('grade',$list11->grade)]);?></td>
                       <td>  <!--<button type="button" name="add" id="add" class="btn btn-success">Add More</button> --></td>
                    </tr>
                  <?php $i++;} ?>
                  </tbody>
                </table>
              <?php echo form_close();?>
            </div>
          </div>

          </div>
          </div>
          <!-- Qualification ENDS  -->
              <!-- Preferred Class -->
          <div class="col-md-12">
                  <div class="nav-tabs-custom">
          <ul class="nav_basic nav-tabs_basic">
          <li>
          <a href="#qualifaction"class="basic_info">Preferred classes & subjects
          </a>
          </li>
        </ul>
          <div class="tab-pane" id="qualifaction">
            <div class="table-responsive">
              <?php  echo form_open_multipart("Teacher/basic_edit1",['name'=>'qual']);?>
                <table class="table table-bordered" id="dynamic_field1">
                  <thead>
                  <tr>
                     <td>#</td>
                    <td>Class</td>
                    <td>Primary Subject</td>
                    <td>Secondary Subject</td>
                    <td>Other</td>
                    <td>  <?php echo form_submit(['name'=>'save','value'=>'Save','class'=>'btn btn-danger btn-sm btn-block btn-rounded pull-right btn_yellow']); ?>
                      <!-- <button type="button" name="add" id="add1" class="btn btn-success">Add More</button> -->
                    </td>
                  </tr>
                </thead>
                <tbody>
                    <?php   $i=1; foreach($list2 as $list22){ ?>
                    <tr>
                      <td><?=$i;?></td>
                      <td>
                        <input type="hidden" name="preferid[]" value="<?=$list22->id;?>">
                        <?php $option = array(""=>"Select Class","8th"=>"8th","9th"=>"9th","10th"=>"10th","11th"=>"11th","12th"=>"12th");?>
                        <?php echo form_dropdown('class[]',$option,strtolower($list22->class),['class'=>'form-control input-sm']);?>
                      </td>
                      <td><?php //echo form_dropdown('primary_sub[]',$subject_primary,'',['class'=>'form-control country-select SlectBox input-sm','multiple'=>'multiple']);?>
                        <select multiple="multiple"  name="primary_sub[]" class="form-control country-select  input-sm SlectBox ">
                          <!-- <option disabled="disabled" selected="selected">Primary Subject</option> -->
                          <?php
                          foreach($subject_primary as $key=>$val){
                          echo "<option value='".$key."'>".strtoupper($val)."</option>";
                          }
                          ?>
                        </select>
                      </td>
                      <td>
                        <?php //echo form_dropdown('secondary_sub[]',$subject_secondary,'',['class'=>'form-control country-select SlectBox input-sm ','multiple'=>'multiple']);?>
                        <select multiple="multiple" name="secondary_sub[]" class="form-control country-select  input-sm SlectBox ">
                          <!-- <option disabled="disabled" selected="selected">Secondary Subject</option> -->
                          <?php
                          foreach($subject_secondary as $key=>$val){
                          echo "<option value='".$key."'>".strtoupper($val)."</option>";
                          }
                          ?>
                        </select>
                      </td>
                      <td><?php echo form_input(['name'=>'other[]','class'=>'form-control','placeholder'=>'Enter other Subject here',
                          'value'=>set_value('other',strtolower($list22->other))]);?></td>
                      <td></td>
                    </tr>
                    <?php $i++;} ?>
                  </tbody>
                </table>
              <?php echo form_close();?>
            </div>
          </div>
      </div>
      </div>
          <!-- Preferred Class -->

          <!--  Bank Details-->
       <div class="col-md-12">
                  <div class="nav-tabs-custom">
          <ul class="nav_basic nav-tabs_basic">
          <li>
          <a href="#qualifaction"class="basic_info">Bank Details
          </a>
          </li>
        </ul>
          <div class="tab-pane" id="Bank-Details">
            <?php echo form_open('Teacher/basic_edit3',[]);?>
            <div class="row general-fc">
              <div class="col-md-12">
                <div class="col-md-3">
                  <div class="form-group">
                    <?php echo form_label('Bank Name','bank_name',['for'=>'bank_name','class'=>'label_edit']);?>
                    <?php echo form_error('bank_name'); ?>
                    <?php echo form_input(['name'=>'bank_name','class'=>'form-control input-sm','placeholder'=>'Enter email  here',
                    'value'=>set_value('bank_name',strtolower($list3->bank_name))]);?>
                  </div>
                </div>
                <div class="col-md-3">
                  <div class="form-group">
                    <?php echo form_label('Branch Name','branch_name',['for'=>'branch_name','class'=>'label_edit']);?>
                    <?php echo form_error('branch_name'); ?>
                    <?php echo form_input(['name'=>'branch_name','class'=>'form-control input-sm','placeholder'=>'Enter First Name here',
                    'value'=>set_value('branch_name',strtolower($list3->branch_name))]);?>
                  </div>
                </div>
                <div class="col-md-3">
                  <div class="form-group">
                    <?php echo form_label('Account Holder Name','account_holder_name',['for'=>'account_holder_name','class'=>'label_edit']);?>
                    <?php echo form_error('account_holder_name'); ?>
                    <?php echo form_input(['name'=>'account_holder_name','class'=>'form-control input-sm','placeholder'=>'Enter Last Name here',
                    'value'=>set_value('account_holder_name',strtolower($list3->account_holder_name))]);?>
                  </div>
                </div>
                <div class="col-md-3">
                  <div class="form-group">
                    <?php echo form_label('Ifsc Code','ifsc_code',['for'=>'ifsc_code','class'=>'label_edit']);?>
                    <?php echo form_error('ifsc_code'); ?>
                    <?php echo form_input(['name'=>'ifsc_code','class'=>'form-control input-sm','placeholder'=>'Enter Mobile here',
                    'value'=>set_value('ifsc_code',$list3->ifsc_code)]);?>
                  </div>
                </div>
                <div class="col-md-3">
                  <div class="form-group">
                    <?php echo form_label('Micr Code','micr_code',['for'=>'micr_code','class'=>'label_edit']);?>
                    <?php echo form_error('micr_code'); ?>
                    <?php echo form_input(['name'=>'micr_code','class'=>'form-control input-sm','placeholder'=>'Enter Mobile here',
                      'value'=>set_value('micr_code',$list3->micr_code)]);?>
                  </div>
                </div>
              </div>
              <div class="form-group margin-bottom-none">
                <div class="col-sm-9">
                </div>
                <div class="col-sm-3">
                  <?php echo form_submit(['name'=>'save','value'=>'Save','class'=>'btn btn-danger btn-sm btn-block btn-rounded pull-right btn_yellow']); ?>
                </div>
              </div>
            </div>
            <?php echo form_close();?>
          </div>
             </div>
       </div>
          <!--Bank Detail -->
          <!--Other Network  Detail -->
       <div class="col-md-12">
                  <div class="nav-tabs-custom">
          <ul class="nav_basic nav-tabs_basic">
          <li>
          <a href="#qualifaction"class="basic_info">Network Info| Uploads
          </a>
          </li>
        </ul>
          <div class="tab-pane" id="Network-Info">
            <?php echo form_open('Teacher/basic_edit4',['name'=>'','id'=>'']);?>
            <div class="row general-fc">
              <div class="col-md-12">
                <div class="col-md-3">
                  <div class="form-group">
                    <?php echo form_label('Current Occupation','current_occupation',['for'=>'current_occupation','class'=>'label_edit']);?>
                    <?php echo form_error('current_occupation'); ?>
                    <?php echo form_input(['name'=>'current_occupation','class'=>'form-control input-sm','id'=>'current_occupation','placeholder'=>'Enter email  here',
                   'value'=>set_value('current_occupation',strtolower($list4->current_occupation))]);?>
                  </div>
                </div>
                <div class="col-md-3">
                  <div class="form-group">
                    <?php echo form_label('Days Available for Teaching','days_available',['for'=>'days_available','class'=>'label_edit']);?>
                    <?php echo form_error('days_available'); ?>
                    <?php
                      //print_r($list4);
                      $days_available = explode(",",$list4->days_available);
                      foreach($days_available as $b4){$ds4[]=strtolower($b4);}
                      //print_r($ds4);
                            $option4 = array("monday"=>"Monday","tuesday"=>"Tuesday","wednesday"=>"Wednesday",
                            "thrusday"=>"Thrusday","friday"=>"Friday","saturday"=>"Saturday","sunday"=>"Sunday");
                    ?>
                    <?php echo form_dropdown('days_available[]',$option4,'',['class'=>'form-control country-select SlectBox input-sm','multiple'=>'multiple']);?>
                  </div>
                </div>
                <div class="col-md-3">
                  <div class="form-group">
                    <?php echo form_label('Hours Daily Available','hours_week_ends_available',['for'=>'hours_week_ends_available','class'=>'label_edit']);?>
                    <?php echo form_error('hours_week_ends_available'); ?>
                    <?php
                      $option = array(""=>"Hours daily Available","0"=>"0 Hour","1"=>"1 Hour","2"=>"2 Hour",
                      "3"=>"3 Hour","4"=>"4 Hour","5"=>"5 Hour","6"=>"6 Hour","7"=>"7 Hour","8"=>"8 Hour");
                    ?>
                    <?php echo form_dropdown('hours_week_ends_available',$option,strtolower($list4->hours_week_ends_available),['class'=>'form-control input-sm','id'=>'hours_week_ends_available']);?>
                  </div>
                </div>
                <div class="col-md-3">
                  <div class="form-group">
                    <?php echo form_label('Preferred Time for Teaching','available_timings',['for'=>'available_timings','class'=>'label_edit']);?>
                    <?php echo form_error('available_timings'); ?>
                    <?php
                      $timings = explode(",",$list4->available_timings);
                      foreach($timings as $b5){$ds5[]=strtolower($b5);}
                      //print_r($ds5);
                      $option5 = 	array("6-7 am"=>"6-7 Am","7-8 am"=>"7-8 Am","9-10 am"=>"9-10 Am","11-12 pm"=>"11-12 pm",
                      "2-3 pm"=>"2-3 Pm","3-4 pm"=>"3-4 Pm","4-5 pm"=>"4-5 Pm","5-6 pm"=>"5-6 Pm","7-8 pm"=>"7-8 Pm","8-9 pm"=>"8-9 Pm"); ?>
                      <?php echo form_dropdown('available_timings[]',$option5,$ds5,['class'=>'form-control country-select SlectBox input-sm','multiple'=>'multiple']);?>
                  </div>
                </div>
              </div>
              <div class="col-md-12">
                <div class="col-md-3">
                  <div class="form-group">
                    <?php echo form_label('Total Teaching Experience','total_teaching_experience',['for'=>'total_teaching_experience','class'=>'label_edit']);?>
                    <?php echo form_error('total_teaching_experience'); ?>
                    <?php
                      $option = array(""=>"Total Teaching Experience","Less Than A Year"=>" Less Than A Year ","Less Two Years"=>" Less Two Years ",
                      "Less Four years"=>" Less Four Years ","More Than 5 Years"=>" More Than 5 Years ");
                    ?>
                    <?php echo form_dropdown('total_teaching_experience',$option,strtolower($list4->total_teaching_experience),['class'=>'form-control input-sm','id'=>'total_teaching_experience']);?>
                  </div>
                </div>
                <div class="col-md-3">
                  <div class="form-group">
                    <?php echo form_label('Type of Connection','type_of_connection',['for'=>'type_of_connection','class'=>'label_edit']);?>
                    <?php echo form_error('type_of_connection'); ?>
                    <?php
                      $option = array(""=>"Type of Connection","Wifi"=>" Wifi ","Dongle"=>"Dongle",
                      "Mobile"=>" Mobile","Cable"=>" Cable ","Other"=>" Other ");
                      //echo $list4->type_of_connection;
                    ?>
                    <?php echo form_dropdown('type_of_connection',$option,strtolower($list4->type_of_connection),['class'=>'form-control input-sm','id'=>'type_of_connection']);?>
                  </div>
                </div>
                <div class="col-md-3">'
                  <div class="form-group">
                    <?php echo form_label('Download Speed of Internet Connection','down_internet_conn_speed',['for'=>'down_internet_conn_speed','class'=>'label_edit']);?>
                    <?php echo form_error('down_internet_conn_speed'); ?>
                    <?php
                      $option = array(""=>"Download speed of Internet Connection","512 Kbps"=>"512 Kbps","1 Mbps"=>"1 Mbps",
                      "2 Mbps"=>" 2 Mbps","4 Mbps"=>"4 Mbps","More than 4 mbps"=>"More than 4 mbps","Other"=>"Other");
                    ?>
                    <?php echo form_dropdown('down_internet_conn_speed',$option,strtolower($list4->down_internet_conn_speed),['class'=>'form-control input-sm','id'=>'down_internet_conn_speed']);?>
                  </div>
                </div>
                <div class="col-md-3">'
                  <div class="form-group">
                    <?php echo form_label('Upload Speed of Internet Connection','down_internet_conn_speed',['for'=>'down_internet_conn_speed','class'=>'label_edit']);?>
                    <?php echo form_error('upload_internet_conn_speed'); ?>
                    <?php
                    $option = array(""=>"Upload speed of Internet Connection","512 Kbps"=>"512 Kbps","1 Mbps"=>"1 Mbps",
                    "2 Mbps"=>" 2 Mbps","4 Mbps"=>"4 Mbps","More than 4 mbps"=>"More than 4 mbps","Other"=>"Other");
                    ?>
                    <?php echo form_dropdown('upload_internet_conn_speed',$option,strtolower($list4->up_internet_conn_speed),['class'=>'form-control input-sm','id'=>'upload_internet_conn_speed']);?>
                  </div>
                </div>
              </div>
              <div class="col-md-12">
                <div class="col-md-3">
                  <div class="form-group">
                    <?php echo form_label('Association with gurukul is','association_with_gurukul',['for'=>'association_with_gurukul','class'=>'label_edit']);?>
                    <?php echo form_error('association_with_gurukul'); ?>
                    <?php
              $option = array(""=>"Association with gurukul is","Primary Source Of Income"=>"Primary Source Of Income","Additonal Source Of Income"=>"Additonal Source Of Income",
              "Pursue your passion"=>" Pursue your passion");
              //echo $list4->association_with_gurukul;
          ?>
                    <?php echo form_dropdown('association_with_gurukul',$option,strtolower($list4->association_with_gurukul),['class'=>'form-control input-sm','id'=>'association_with_gurukul']);?>
                    <?php //echo form_input(['name'=>'association_with_gurukul','class'=>'form-control','id'=>'association_with_gurukul','placeholder'=>'Enter Mobile here',
            //'value'=>set_value('association_with_gurukul',$list4->association_with_gurukul)]);?>
                  </div>
                </div>
                <div class="col-md-3">
                  <div class="form-group">
                    <?php echo form_label('How you come to know with theonlinegurukul','come_to_know_tog_status',['for'=>'come_to_know_tog_status','class'=>'label_edit']);?>
                    <?php echo form_error('come_to_know_tog_status'); ?>
                    <?php echo form_textarea(['name'=>'come_to_know_tog_status','class'=>'form-control input-sm','id'=>'come_to_know_tog_status','placeholder'=>'Enter Mobile here',
              'value'=>set_value('come_to_know_tog_status',$list4->come_to_know_tog_status)]);?>
                  </div>
                </div>

              </div>
              <div class="form-group margin-bottom-none">
                  <div class="col-sm-12">
                <div class="col-sm-9">
                </div>
                <div class="col-sm-3">
                  <?php echo form_submit(['name'=>'save','value'=>'Save','class'=>'btn btn-danger btn-sm btn-block btn-rounded pull-right btn_yellow']); ?>
                </div>
              </div>
              </div>
            </div>
            <?php echo form_close();?>
          </div>
            </div>
      </div>



    </div>
  </div>
  <!-- /.row -->
</section>
<script type="text/javascript" src="<?=base_url('assets/web/js/jquery.sumoselect.js');?>"></script>
<script type="text/javascript">
	$(document).ready(function () {
			window.asd = $('.SlectBox').SumoSelect({ csvDispCount: 3, selectAll:true, captionFormatAllSelected: "Yeah, OK, so everything." });
				window.asd = $('.SlectBox1a').SumoSelect({ csvDispCount: 3, selectAll:true, captionFormatAllSelected: "Yeah, OK, so everything." });
				 });
</script>
 <script type='text/javascript'>
        // baseURL variable
        var baseURL= "<?php echo site_url();?>";

        $(document).ready(function(){
            // on category -class change
            $('#sel_country').change(function(){
                var cat = $(this).val();

                // AJAX request
                $.ajax({
                    url:'<?=site_url()?>/Web/get_country_state',
                    method: 'post',
                    data: {country: cat},
                    dataType: 'json',
                    success: function(response){
                        // Remove options
                        $('#sel_city').find('option').not(':first').remove();
                        $('#sel_state').find('option').not(':first').remove();
                        // Add options
                        $.each(response,function(index,data){
                            $('#sel_state').append('<option value="'+data['id']+'">'+data['name']+'</option>');
                        });
                    }
                });
            });

            // on subject -faculty change
            $('#sel_state').change(function(){
                var cl = $(this).val();

                // AJAX request
                $.ajax({
                    url:'<?=site_url()?>/Web/get_state_city',
                    method: 'post',
                    data: {state: cl},
                    dataType: 'json',
                    success: function(response){
                        // Remove options
                        $('#sel_city').find('option').not(':first').remove();
                        // Add options
                        $.each(response,function(index,data){
                            $('#sel_city').append('<option value="'+data['id']+'">'+data['name']+'</option>');
                        });
                    }
                });
            });
        });
            </script>
            <script type="text/javascript">
                $(document).ready(function(){
                //  var postURL = "/addmore.php";
                  var i=1;
            	  var limit= 5;

              $('#add').on('click',function(){
            			 if(i>=limit){
            				alert("You dont have right to add more than "+limit+" class at obe time");
            			}
            		    else{

            				i++;
                       // $('#dynamic_field').append('<tr id="row'+i+'" class="dynamic-added"><td><input type="text" name="name[]" placeholder="Enter your Name" class="form-control name_list" required /></td><td><button type="button" name="remove" id="'+i+'" class="btn btn-danger btn_remove">X</button></td></tr>');
                            $('#dynamic_field').append('<tr id="row'+i+'" class="dynamic-added"> \
                            <td>'+i+'</td> \
      					                <td><select name="qualification[]" class="form-control  name_list" data-placeholder="Select Extend class Duration" style="" tabindex="-1" aria-hidden="true" > \
                                <?php foreach($qualification_li as $p=>$b){ ?>\
                                            <option value="<?=$p?>"> <?=$b?></option>\
                                            <?php }?>\
                                </select></td> \
                            <td><input type="text" name="university[]" class="form-control  name_list" placeholder="Enter University" ></td> \
                            <td><input type="text" name="passing_year[]" class="form-control  name_list" placeholder="Enter Passing Year" ></td> \
                            <td><input type="text" name="grade[]" class="form-control  name_list" placeholder="Enter Grade" ></td> \
                            <td><button type="button" name="remove" id="'+i+'" class="btn btn-danger btn_remove">X</button></td></tr>');

                          $('.datepick').each(function(){
                            $(this).datepicker();
                          });
                          $('.timepicker').each(function(){
                            showInputs: false;
                            minuteStep: 5;
                            $(this).timepicker();
                            });

                  }

                  });


                  $(document).on('click', '.btn_remove', function(){
                       var button_id = $(this).attr("id");
                       $('#row'+button_id+'').remove();
                  });


                  $('#submit').click(function(){
                       $.ajax({
                            url:postURL,
                            method:"POST",
                            data:$('#add_name').serialize(),
                            type:'json',
                            success:function(data)
                            {
                              	i=1;
                              	$('.dynamic-added').remove();
                              	$('#add_name')[0].reset();
                				        alert('Record Inserted Successfully.');
                            }
                       });
                  });

                });
            </script>

            <script type="text/javascript">
                $(document).ready(function(){
                //  var postURL = "/addmore.php";
                  var i=1;
                var limit= 5;

              $('#add1').on('click',function(){
                   if(i>=limit){
                    alert("You dont have right to add more than "+limit+" class at obe time");
                  }
                    else{

                    i++;
                       // $('#dynamic_field').append('<tr id="row'+i+'" class="dynamic-added"><td><input type="text" name="name[]" placeholder="Enter your Name" class="form-control name_list" required /></td><td><button type="button" name="remove" id="'+i+'" class="btn btn-danger btn_remove">X</button></td></tr>');
                            $('#dynamic_field1').append('<tr id="row'+i+'" class="dynamic-added"> \
                            <td>'+i+'</td> \
                                <td><select name="class[]" class="form-control  name_list" data-placeholder="Select Extend class Duration" style="" tabindex="-1" aria-hidden="true" > \
                                <?php $option = array(""=>"Select Class","8th"=>"8th","9th"=>"9th","10th"=>"10th","11th"=>"11th","12th"=>"12th");foreach($option as $p=>$b){ ?>\
                                            <option value="<?=$p?>"> <?=$b?></option>\
                                            <?php }?>\
                                </select></td> \
                                <td><select name="primary_sub[]" class="form-control  name_list" data-placeholder="Select Extend class Duration" style="" tabindex="-1" aria-hidden="true" > \
                                <?php $option = array(""=>"Select Class","8th"=>"8th","9th"=>"9th","10th"=>"10th","11th"=>"11th","12th"=>"12th");foreach($subject_primary as $p=>$b){ ?>\
                                            <option value="<?=$p?>"> <?=$b?></option>\
                                            <?php }?>\
                                </select></td> \
                                <td><select name="secondary_sub[]" class="form-control  name_list" data-placeholder="Select Extend class Duration" style="" tabindex="-1" aria-hidden="true" > \
                                <?php $option = array(""=>"Select Class","8th"=>"8th","9th"=>"9th","10th"=>"10th","11th"=>"11th","12th"=>"12th");foreach($subject_secondary as $p=>$b){ ?>\
                                            <option value="<?=$p?>"> <?=$b?></option>\
                                            <?php }?>\
                                </select></td> \
                            <td><input type="text" name="other[]" class="form-control  name_list" placeholder="Enter other" ></td> \
                            <td><button type="button" name="remove" id="'+i+'" class="btn btn-danger btn_remove">X</button></td></tr>');

                          $('.datepick').each(function(){
                            $(this).datepicker();
                          });
                          $('.timepicker').each(function(){
                            showInputs: false;
                            minuteStep: 5;
                            $(this).timepicker();
                            });

                  }

                  });


                  $(document).on('click', '.btn_remove', function(){
                       var button_id = $(this).attr("id");
                       $('#row'+button_id+'').remove();
                  });


                  $('#submit').click(function(){
                       $.ajax({
                            url:postURL,
                            method:"POST",
                            data:$('#add_name').serialize(),
                            type:'json',
                            success:function(data)
                            {
                                i=1;
                                $('.dynamic-added').remove();
                                $('#add_name')[0].reset();
                                alert('Record Inserted Successfully.');
                            }
                       });
                  });

                });
            </script>
