<?php defined('BASEPATH')or exit('No Direct Access is Allowed');?>

<div class="custom_content custom custom-register">
	<div class="container large">
		<div class="row">
		 <div class="row clearfix row-spec">
          <div class="col-xs-12">
            <div class="aboutTitle">
              <h2 class="what-offer offer-spec register-stu register-teacher">Teacher Registration Process
        	  	<span class="what-offer-span register-stu1">Already have a  Account? 
        	 	 <a href="<?=site_url('teacher/signin')?>" class="popup-with-zoom-anim hvr-underline-from-left register-pops">Sign in</a></span>
        	  </h2>
            </div>
          </div>
        </div>
	 <!-- <div class="row clearfix row-spec">
          <div class="col-xs-12">
            <div class="aboutTitle">
              <h2 class="what-offer offer-spec register-stu">Provide your account details and your choices
        	  <span class="what-offer-span register-stu1">Already have a  Account? <a href="teacher-login.html" class="popup-with-zoom-anim hvr-underline-from-left register-pops">Sign in</a></span>
        	  <div class="reg agileits w3layouts">
        	
        	</div>
        	  </h2>
            </div>
          </div>
          </div>
     --->
<div class="col-xs-12 col-sm-6 custom_right">
	<?php echo form_open_multipart('Web/teacher_signup')?>
	<div class="form-area1">  
    <br style="clear:both">
		
	<div class="arrow-right"></div>
	<div class="form-group">
		<div class="form-group col-lg-6 col-md-6 col-sm-6">
		<?php echo form_error('first_name'); ?>
		<?=form_input('first_name',set_value('first_name'),array('class'=>'form-control input-sm','placeholder'=>'First Name'));?>
			<!-- <input type="text" class="form-control input-sm" id="name" name="name" placeholder="First Name" required=""> -->
		</div>
		<div class="form-group col-lg-6 col-md-6 col-sm-6">
			<?php echo form_error('last_name'); ?>
			<?=form_input('last_name',set_value('last_name'),array('class'=>'form-control input-sm','placeholder'=>'Last Name'));?>
		</div>
	</div>
	<div class="form-group">
		<div class="form-group col-lg-6 col-md-6 col-sm-6">
		<?php echo form_error('email'); ?>
			<?=form_input('email',set_value('email'),array('class'=>'form-control input-sm','placeholder'=>'Email Address'));?>
		</div>
		<div class="form-group col-lg-6 col-md-6 col-sm-6">
		<?php echo form_error('mobile'); ?>
			<?=form_input('mobile',set_value('mobile'),array('class'=>'form-control input-sm mobile','placeholder'=>'Mobile Number','maxlength'=>'10'));?>
		</div>
	</div>
	<div class="form-group">
		<div class="form-group col-lg-6 col-md-6 col-sm-6">
		<?php echo form_error('password'); ?>
			<?=form_password('password',set_value('password'),array('class'=>'form-control input-sm','placeholder'=>'Password',"maxlength"=>"15"));?>
		</div>
		<div class="form-group col-lg-6 col-md-6 col-sm-6">
		<?php echo form_error('confirm_password'); ?>
			<?=form_password('confirm_password',set_value('confirm_password'),array('class'=>'form-control input-sm','placeholder'=>'Confirm Password',"maxlength"=>"15"));?>
		</div>
	</div>
	<div class="form-group">
		<div class="form-group col-lg-6 col-md-6 col-sm-6">
		<?php echo form_error('date_of_birth'); ?>
			<?php echo form_input('date_of_birth',set_value('date_of_birth'),array('class'=>'form-control input-sm','placeholder'=>'DOB'));?>
			<!-- <input type="text" class="form-control input-sm " name="date_of_birth" placeholder="DOB"> -->
		</div>
		<!-- <div class="form-group col-lg-6 col-md-6 col-sm-6" id="choose_loc">
			<label class="b-submit__main-file-label btn m-btn">
			     <span class="ch1-img">CHOOSE YOUR LOCATION</span>
				<span class="fa fa-map-marker choose-img"></span> 
			</label>
		</div>  -->
		<div class="form-group col-lg-6 col-md-6 col-sm-6">
			<?php echo form_error('location'); ?>
			<?=form_input('location',set_value('location'),array('class'=>'form-control input-sm','placeholder'=>'Location'));?>
		</div>
	</div>			
	<div class="form-group">
		<div class="form-group col-lg-6 col-md-6 col-sm-6">		
			<?php echo form_error('highest_qualification'); ?>	
            <?php $option = array(""=>"Select Highest Qualification","B.A"=>"B.A","M.A"=>"M.A","B.E"=>"B.E","M.E"=>"M.E","B.Tech"=>"B.Tech","M.Tech"=>"M.Tech","B.Sc"=>"B.Sc","M.Sc"=>"M.Sc","BBA"=>"BBA",
            "MBA"=>"MBA","BCA"=>"BCA","MCA"=>"MCA","P.hd"=>"P.hd","M.Phil"=>"M.Phil","B.Arch"=>"B.Arch","MBBS"=>"MBBS","MD"=>"MD","BDS"=>"BDS",
            "MDS"=>"MDS","BPT"=>"BPT","B.Pharm"=>"B.Pharm","M.Pharm"=>"M.Pharm","B.Com"=>"B.Com","M.Com"=>"M.Com","C.A"=>"C.A",
            "ICWA"=>"ICWA","B.Cs"=>"B.Cs","12th"=>"12th","11th"=>"11th","LLB"=>"LLB");?>
            <?=form_dropdown('highest_qualification', $option, set_value('highest_qualification'),array('class'=>'form-control country-select input-sm','id'=>'count'));?>                          	
		</div>
		<div class="form-group col-lg-6 col-md-6 col-sm-6">		
			<?php echo form_error('teacher_experience'); ?>			
            <?php $option = array(""=>"Total 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 ");?>
             <?=form_dropdown('teacher_experience', $option, set_value('teacher_experience'),array('class'=>'form-control  country-select input-sm'));?>
        </div>
	</div>	
	<div class="form-group">
		<?php echo form_error('primary_subject'); ?>	
		<div class="form-group col-lg-6 col-md-6 col-sm-6">
			<?php $option = array(""=>"Primary Subject","Mathematics"=>"Mathematics","Physics"=>"Physics","Chemistry"=>"Chemistry","Biology"=>"Biology",
            "Computer"=>"Computer","Science"=>"Science","English"=>"English","Hindi"=>"Hindi",
            "Sanskrit"=>"Sanskrit","German"=>"German","French"=>"French","Social"=>"Social",
            "Studies"=>"Studies","EVS"=>"EVS","Arabic"=>"Arabic","Other"=>"Other");?>
			<?=form_dropdown('primary_subject', $option, set_value('primary_subject'),array('class'=>'form-control country-select input-sm'));?>
         </div>
		<div class="form-group col-lg-6 col-md-6 col-sm-6">		
		    <?php echo form_error('secondary_subject'); ?>			
            <?php $option = array(""=>"Secondary Subject","Mathematics"=>"Mathematics","Physics"=>"Physics","Chemistry"=>"Chemistry","Biology"=>"Biology",
            "Computer"=>"Computer","Science"=>"Science","English"=>"English","Hindi"=>"Hindi",
            "Sanskrit"=>"Sanskrit","German"=>"German","French"=>"French","Social"=>"Social",
            "Studies"=>"Studies","EVS"=>"EVS","Arabic"=>"Arabic","Other"=>"Other");?>
             <?=form_dropdown('secondary_subject', $option, set_value('secondary_subject'),array('class'=>'form-control country-select input-sm'));?>            		
		</div>
	</div>					
	<div class="form-group">
		<div class="form-group col-lg-6 col-md-6 col-sm-6">	
			<?php echo form_error('love_to_teach_grade[]'); ?>
			<?php $option = array(""=>"Grade Love To teach","8 to 9"=>"8 to 9","9 to 10"=>"9 to 10","11 to 12 (Regular Curriculum)"=>"11 to 12 (Regular Curriculum)",
                "11 to 12 (JEE Mains Level)"=>"11 to 12 (JEE Mains Level)","other"=>"other");?>
			<?=form_dropdown('love_to_teach_grade[]', $option, set_value('love_to_teach_grade[]'),array('class'=>'form-control input-sm country-select','multiple'=>'multiple','id'=>'love_to_teach_grade1'));?>
        </div>		
		<div class="form-group col-lg-6 col-md-6 col-sm-6">		
		 	<?php echo form_error('boards_you_can_handle[]'); ?>
		 	<?php $option = array(""=>"Boards you can handle","cbse"=>"CBSE","icse"=>"ICSE","igse"=>"IGCSE","ib"=>"IB","other"=>"other");?>
         	<?=form_dropdown('boards_you_can_handle[]', $option, set_value('boards_you_can_handle[]'),array('class'=>'form-control country-select  input-sm ','multiple'=>'multiple','id'=>'boards_you_can_handle1'));?>  	
			</div>
		</div>	
	</div>
</div>
						
<div class="col-xs-12 col-sm-6 custom_right" style="padding: 4px 40px 0px;">
	<div class="form-area1"> 
		<br style="clear:both">
      <!-- <div class="row clearfix row-spec">
          <div class="col-xs-12">
            <div class="aboutTitle">
              <h2 class="what-offer offer-spec register-stu">Provide your account details and your choices
    		  <span class="what-offer-span register-stu1">Already have a  Account? <a href="teacher-login.html" class="popup-with-zoom-anim hvr-underline-from-left register-pops">Sign in</a></span>
    		  <div class="reg agileits w3layouts">
    		</div>
    		  </h2>
            </div>
          </div>
      </div>--->
	<div class="arrow-right"></div>
	<div class="form-group">
		<div class="form-group col-lg-6 col-md-6 col-sm-6">	
			<?php echo form_error('hours_week_ends_available'); ?>	
       	 	<?php $option = array(""=>"Available Time Weekdays","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");?>
             <?=form_dropdown('hours_week_ends_available', $option,set_value('hours_week_ends_available'),array('class'=>'form-control country-select  input-sm'));?>                                	
		</div>		
		<div class="form-group col-lg-6 col-md-6 col-sm-6">	
			<?php echo form_error('available_timings[]'); ?>
        	<?php $option1 = array(""=>"Available Timings","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");?>
        	<?=form_dropdown('available_timings[]', $option1, set_value('available_timings[]'),array('class'=>'form-control country-select input-sm','multiple'=>'multiple','id'=>'available_timings1'));?>
		</div>
	</div>	
	<div class="form-group">
		<div class="form-group col-lg-6 col-md-6 col-sm-6">	
			<?php echo form_error('current_occupation'); ?>
			<?php $option = array(""=>"Current Occupation","Full-Time Teacher"=>"Full time teacher",
			    "Freelancer"=>"Freelancer","Working Professional"=>"Working Professional",
			    "College Student"=>"College Student","Not Working"=>"Not Working","Other"=>"Other");?>
        	<?=form_dropdown('current_occupation', $option, set_value('current_occupation'),array('class'=>'form-control country-select  input-sm','id'=>'example-getting-started1-timing'));?>	
		</div>		
		<div class="form-group col-lg-6 col-md-6 col-sm-6">	
			<?php echo form_error('type_of_connection'); ?>
        	<?php $option = array(""=>"Type of Connection","Broadband"=>"Broadband","Wifi"=>"Wifi",
            "Dongle"=>"Dongle","Mobile"=>"Mobile","Cable"=>"Cable"," Other"=>" Other");?>	
        	<?=form_dropdown('type_of_connection', $option,set_value('type_of_connection'),array('class'=>'form-control input-sm'));?>     
        </div>
	</div>		
	<div class="form-group">
		<div class="form-group col-lg-6 col-md-6 col-sm-6">	
			<?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");?>
			<?=form_dropdown('down_internet_conn_speed', $option, set_value('down_internet_conn_speed'),array('class'=>'form-control country-select input-sm'));?>	
        </div>	
		<div class="form-group col-lg-6 col-md-6 col-sm-6">		
			<?php echo form_error('up_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");?>	
			<?=form_dropdown('up_internet_conn_speed', $option,  set_value('up_internet_conn_speed'),array('class'=>'form-control country-select input-sm'));?>	
        </div>
	</div>		
		<!-- -->
	<div class="form-group">
		<div class="form-group col-lg-6 col-md-6 col-sm-6">
			<label class="b-submit__main-file-label btn m-btn">
			 	<?php echo form_error('screenshot_speed'); ?>
			 	<?=form_upload(['name'=>'screenshot_speed','class'=>' form-control input-sm']);?>
<!-- 				<input type="file" class="" name="screenshot_speed"> -->
				<span class="ch1-img">Net Speed Screenshot</span>
				<span class="fa fa-angle-right choose-img"></span>
			</label>
		</div>
		<div class="form-group col-lg-6 col-md-6 col-sm-6">
			<?php echo form_error('come_to_know_tog'); ?>
			 <?=form_input('come_to_know_tog',set_value('come_to_know_tog'),array('class'=>'form-control input-sm','placeholder'=>'How you come to know TOG','autocomplete'=>'off'));?>
                                          
		</div>
	</div>
	<div class="form-group">
		<div class="form-group col-lg-6 col-md-6 col-sm-6">
			<?php echo form_error('association_with_gurukul'); ?>
			<?=form_dropdown('association_with_gurukul', $option, set_value('association_with_gurukul'),array('class'=>'form-control input-sm'));?>
                                           
		</div>
		<div class="form-group col-lg-6 col-md-6 col-sm-6">
			<label class="b-submit__main-file-label btn m-btn">
				<?php echo form_error('upload_resume'); ?>
				<?=form_upload(['name'=>'upload_resume','class'=>' form-control input-sm']);?>
<!-- 				<input type="file" class="" name="upload_resume"> -->
				<span class="ch1-img">CHOOSE UR RESUME</span>
				<span class="fa fa-angle-right choose-img"></span>
			</label>
			<?php //echo form_upload(['name'=>'upload_resume','class'=>' form-control input-sm']);?>
		</div>
	</div>
  </div>
    <div class="form-group">
    	<div class="form-group col-lg-6 col-md-6 col-sm-6">
    		<?php echo form_error('tell_me_more'); ?>
<!--         	<textarea class="form-control input-sm" name="tell_me_more" type="textarea" id="Tell us more about yourself" placeholder="Tell us more about yourself" maxlength="100" rows="2"></textarea> -->
        	<?php //form_textarea('tell_me_more',set_value('tell_me_more'),array('class'=>'form-control input-sm','placeholder'=>'Tell us more about yourself',"maxlength"=>"100","rows"=>"2"));?>
      		<?php  	 $data = array('name'=> 'tell_me_more','id'=> 'tell_me_more','placeholder' => 'Tell me More',
      		    'rows'=> '2','cols'=> '10','maxlength'=> '100','class'=> 'form-control input-sm','value'=>set_value('tell_me_more'));
                echo form_textarea($data);
            ?>
<!--             <span class="help-block"><p id="characterLeft" class="help-block ">You have reached the limit</p></span>    -->
            <!-- <button type="button" id="submit" name="submit" class="btn btn-primary btn btn-default  send-btns btn-last">Submit</button>	 -->					
       		 <?=form_submit(['name'=>'fileSubmit','value'=>'Register with us','class'=>'btn btn-primary btn btn-default  send-btns btn-last',]); ?>            
        
        
        </div>
     </div>
	<!--end single content left-->
</div>
	</div>
		</div>
			</div>
<?php echo form_close();?>
<!-- Qualification -->
<?php /*?>
	<div class="modal fade login-register-form animated center zoomIn" role="dialog" id="select-popup" style="display:none;">
        <div class="modal-dialog modal-sm modal-sm-callback">
            <div class="modal-content">
                <div class="modal-header  modal-loaction">
                    <button type="button" class="close loc-close" data-dismiss="modal">
                        <span class="glyphicon glyphicon-remove"></span>
                    </button>
                    <ul class="nav nav-tabs tabs-reg">
                        <li class="active"><a data-toggle="tab" href="#registration-form" class="fill-header">Fill the highest Qualification Form<span class="glyphicon glyphicon-user"></span></a></li>
                    </ul>
                </div>
                <div class="modal-body padding-form">
                    <div class="tab-content">
                        <div id="registration-form" class="tab-pane fade in active tab-select">
                            <form  method="post" id="high_qualification">	
                            <?php //echo "Location form open";?>						
							  <div class="form-group form-group-university">
							  <div class="form-group form-group-university col-lg-12 col-md-12 col-sm-12">
            						<input type="text" class="form-control input-sm" id="university" name="university" placeholder="University/Institution" required="">
            					</div>
            					<div class="form-group form-group-university col-lg-12 col-md-12 col-sm-12">
            						<select name="year_of_passing" id="year_of_passing" class="form-control country-select input-sm">
                                        <option value="0" selected="selected">Year of Passing</option>
                                        <option value="2018">2018</option>
                                        <option value="2017">2017</option>
                                        <option value="2016">2018</option>
                                        <option value="2015">2017</option>
                                    </select>
            					</div>
            					<div class="form-group form-group-university col-lg-12 col-md-12 col-sm-12">
            						<select name="result_type" id="selectgp" class="form-control country-select input-sm" id="selectgp">
                                        <option value="0" selected="selected">Select the Grade and Percentage</option>
                                        <option value="grade-select">grade</option>
                                        <option value="percentage-select">percentage<option>
            						</select>
            					</div>
            					 <div class="form-group form-group-university col-lg-12 col-md-12 col-sm-12 boxes grade-select percentage-select">
            						<input type="text" class="form-control input-sm" id="marks_grade_obtained" name="marks_grade_obtained" placeholder="Marks/Grade obtained" required="">
            					</div>
            					<div class="form-group form-group-university col-lg-12 col-md-12 col-sm-12 boxes percentage-select grade-select">
            						<input type="text" class="form-control input-sm" id="total_marks_grade" name="total_marks_grade" placeholder="Total Marks/Grade" required="">
            					</div>
            					<div class="form-group form-group-university col-lg-12 col-md-12 col-sm-12 boxes percentage-select" id="total-p">
            						<input type="text" class="form-control input-sm" id="percentage" name="percentage" placeholder="Total Percentage" required="">
            					</div>
            					
            					</div>
							<!-- <button type="button" id="submit" name="submit" class="btn btn-primary btn btn-default  send-btns submit-select" onclick="validate_other_qualification();">Submit</button>-->
							<button type="button" id="submit" name="submit" class="btn btn-primary btn btn-default send-btns submit-select">Submit</button>
                            </form>
                            <?php //echo "Location form close";?>
                        </div>

                    </div>
                </div>
<!--                                    <div class="modal-footer">-->
<!--                                        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>-->
<!--                                    </div>-->
            </div>
        </div>
    </div>
    <?php */ ?>
<!-- Qualification -->
<?php /* ?>
<div class="modal fade login-register-form animated center zoomIn" role="dialog" id="select-popup1"style="display:none;">
    <div class="modal-dialog modal-sm modal-sm-callback">
        <div class="modal-content">
            <div class="modal-header modal-loaction">
                <button type="button" class="close loc-close" data-dismiss="modal">
                    <span class="glyphicon glyphicon-remove"></span>
                </button>
                <ul class="nav nav-tabs tabs-reg">
                  
                    <li class="active"><a data-toggle="tab" href="#registration-form" class="fill-header">Fill the highest Qualification Form<span class="glyphicon glyphicon-user"></span></a></li>
                </ul>
            </div>
            <div class="modal-body padding-form">
                <div class="tab-content">
                  
                    <div id="registration-form" class="tab-pane fade in active tab-select">
                        <form action="/">
						  <div class="form-group form-group-university">
						    <div class="form-group form-group-university col-lg-12 col-md-12 col-sm-12">
        						<input type="text" class="form-control input-sm" id="university1" name="university1" placeholder="University/Institution" required="">
        					</div>
        					<div class="form-group form-group-university col-lg-12 col-md-12 col-sm-12">
        						<select name="category" class="form-control country-select input-sm">
                                    <option value="0" selected="selected">Year of Passing</option>
                                    <option value="2018">2018</option>
                                    <option value="2017">2017</option>
                                    <option value="2016">2018</option>
                                    <option value="2015">2017</option>
                                </select>
        					  </div>
							</div>
							<button type="button" id="submit1" name="submit1" class="btn btn-primary btn btn-default  send-btns submit-select">Submit</button>
                        </form>
                    </div>
                </div>
            </div>
<!--                                    <div class="modal-footer">-->
<!--                                        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>-->
<!--                                    </div>-->
        </div>
    </div>
</div>

<div class="modal fade login-register-form animated center zoomIn" role="dialog" id="select-popup-location"style="display:none;">
    <div class="modal-dialog modal-sm modal-sm-callback">
        <div class="modal-content">
            <div class="modal-header modal-loaction">
                <button type="button" class="close loc-close" data-dismiss="modal">
                    <span class="glyphicon glyphicon-remove"></span>
                </button>
                <ul class="nav nav-tabs tabs-reg">
                  
                    <li class="active"><a data-toggle="tab" href="#registration-form" class="fill-header">Fill the Location Form<span class="glyphicon glyphicon-user"></span></a></li>
                </ul>
            </div>
            <div class="modal-body padding-form">
                <div class="tab-content">
                    <div id="registration-form" class="tab-pane fade in active tab-select">
                        <form name="location_form" id="location_form">
						  <div class="form-group form-group-university">					 
        					<div class="form-group form-group-university col-lg-12 col-md-12 col-sm-12">
        						<select name="country-slects" class="form-control country-select  input-sm">
    								<option value="" selected="selected">Country</option>
    								<option value="india">India</option>
    								<option value="india">Japan</option>
    							</select>
        					</div>
        					<div class="form-group form-group-university col-lg-12 col-md-12 col-sm-12">
        						<select name="highest_qualification" class="form-control country-select  input-sm">
    								<option value="" selected="selected">State</option>
    								<option value="india">Bihar</option>
    								<option value="india">Japan</option>
    							</select>
        					</div>
        					<div class="form-group form-group-university col-lg-12 col-md-12 col-sm-12">
    							<select name="highest_qualification" class="form-control country-select  input-sm">
    								<option value="" selected="selected">City</option>
    								<option value="delhi">Delhi</option>
    								<option value="india">Japan</option>
    							</select>
        					</div>
        					 <div class="form-group form-group-university col-lg-12 col-md-12 col-sm-12">
        						<input type="text" class="form-control input-sm" id="zip-code" name="zip-code" placeholder="zip-Code" required="">
        					</div>
        					<div class="form-group form-group-university col-lg-12 col-md-12 col-sm-12">
        					<textarea class="form-control input-sm" type="textarea" id="address" placeholder="Address" maxlength="100" rows="3"></textarea>
        					</div>
        						</div>		                 
        					     <button type="submit" id="location_submit" name="location_submit" class="btn btn-primary btn btn-default  send-btns submit-select">Submit</button>                           
                           </form>
                           </div>
                </div>
            </div>
<!--        <div class="modal-footer">-->
<!--            <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>-->
<!--        </div>-->
        </div>
    </div>
</div>			
<?php */ ?>							
<!-- JQUERY SCRIPTS -->

<script type="text/javascript">
  /*   function validate_other_qualification() {
        var university1 				= document.getElementById("university").value;
        var year_of_passing1 		    = document.getElementById("year_of_passing").value;
        var selectgp1				    = document.getElementById("selectgp").value;
        var marks_grade_obtained1	    = document.getElementById("marks_grade_obtained").value;
        var total_marks_grade1		    = document.getElementById("total_marks_grade").value;
        var percentage1 				= document.getElementById("percentage").value;
        alert('success');
        //university,year_of_passing,result_type,marks_grade_obtained,total_marks_grade,percentage,
        $.ajax({
            type: "POST",
            url: "http://localhost/narender/theonlinegurukul/index.php/Web/reg_teacher_other_qualification",
            contentType: "application/json",
            dataType: 'json',
            data:JSON.stringify({
            uname  :   university,
            year   :   year_of_passing1,
            selectp:   selectgp1,
            mg     :   marks_grade_obtained1,
            tm     :   total_marks_grade1,
            percentages:percentage1
       }),
       success: function() {
         alert('success');
       }
    });
        console.log(university1, year_of_passing1, selectgp1, marks_grade_obtained1, total_marks_grade1, percentage1)
    } */
</script>
<script>

</script>
<script>

/* function customRequest(postype, url, data, formid, callback) {

    $(formid).on('submit', function(e) {
        $.ajax({
            //crossDomain: true,
            type: postype,
            url: url,
            data: data, // serializes the form's elements.
            success: function(data) {
                return callback(data);
            }
        });
        e.preventDefault(); // avoid 
    })
} */
/* function sendAJax1() {
    var type = "POST";
    var url = "https://api.sample.com/V2.0/ajax1.php";
    var data = $("#form1").serialize();
    var formid = "#form1";

    customRequest(type, url, data, formid, function(data) {
        // do something with your ajax callback
    } );
}

function sendAJax2() {
    var type = "POST";
    var url = "https://api.sample.com/V2.0/ajax2.php";
    var data = $("#form2").serialize();
    var formid = "#form2";

    customRequest(type, url, data, formid, function(data) {
        // do something with your ajax callback
    } );

    e.preventDefault(); // avoid 
} */
</script>
<style>
 p{
    color:red;
  } 
</style>
