File "testimonial_others_form-20260225114227.php"

Full Path: /home/ichhrkpd/public_html/idcm_old/application/views/testimonial_others_form-20260225114227.php
File size: 19.18 KB
MIME-type: text/html
Charset: utf-8

 <?php 
	 $sl =1;
	 
     $msg = isset($msg)?$msg:'';
	 $msg_type = isset($msg_type)?$msg_type:'';
	 $this->session->UnsetFlashData();	 
	 
	 
	 if ($std_class=='0'){
	     $std_class2='HSC';
	     $sub1='Bangla';
	     $sub2='English';
	     $sub7='Information & Communication Technology';
	 }
	 else{
	     $std_class2='Degree (Pass)';
	     $sub1='HISTORY OF THE EMERGENCE OF INDEPENDENT BANGLADESH';
	     $sub2='BANGLA NATIONAL LANGUAGE';
	     $sub7=' ';
	 }
	 
	 $subArray='';
     if ($std_group=='Science'){
     $subArray = array("Physics","Chemistry","Biology","Higher Math","Psychology","Geography");
     }else if($std_group=='Arts'){
         $subArray=array("Economics","Sociology","Logic","Psychology","Geography","Islamic History & Culture","Civics & Good Governance");
     }else if($std_group=='Commerce'){
         $subArray=array("Economics","Psychology","Geography","Accounting","Business Organisation & Management","Production Management & Marketing");
     }else if($std_group=='BA'){
         $subArray=array("ISLAMIC HISTORY & CULTURE","ECONOMICS","POLITICAL SCIENCE","PHILOSOPHY","GEOGRAPHY AND ENVIRONMENT");
     }else if($std_group=='BSc'){
         $subArray=array("BOTANY","PHYSICS","CHEMISTRY","ZOOLOGY","GEOGRAPHY AND ENVIRONMENT","Mathematics");
     }else if($std_group=='BBS'){
         $subArray=array("ACCOUNTING","ECONOMICS","MANAGEMENT");
     }else if($std_group=='BSS'){
         $subArray=array("ISLAMIC HISTORY & CULTURE","ECONOMICS","POLITICAL SCIENCE","PHILOSOPHY","GEOGRAPHY AND ENVIRONMENT");
     }
     

	 
 ?>
 

 
       <div class="content-wrapper">
        <section class="content-header">
          <h1>
            <?php 
                echo "Testimonial Add (Others) Form"; 
                
            ?>
          </h1>
          
        </section>
 
        <section class="content">
          <div class="row">
            <div class="col-xs-12">
              <div class="box">
                <div class="box-header">
                    <a href="<?php echo base_url().'admin/testimonial_others';?>" class="btn-sm btn-info pull-right"><i class="fa fa-arrow-left" aria-hidden="true"></i> Back</a> 
                </div>
                <div class="box-body">
                   <div class="row"> 
                   <form id="contactForm" action="<?php echo base_url()."admin/testimonial_add_others"?>" class="contact-form" method="post" role="form" >
                       
                        <div class="col-md-6">
                       		<div class="controls">
                            	<div class="row">
							        <div class="col-md-12">  
							        
							     
							        
							                  <div class="form-group">
		                                    	<label class="control-label" for="test_sl"><?php _e("Testimonial Serial Number"); ?></label>
		                                        <input id="test_sl" name="test_sl" type="text" maxlength="20" class="form-control" placeholder="Testimonial Serial No. *" required="required" data-error="Testimonial Serial No is required.">
		                                        <div  class="help-block with-errors"></div>
		                                      </div>
		                                      
		                                      <div class="form-group">
    					                          <label class="control-label" for="dois"><?php _e("Date of Issue"); ?></label>
    					                          <input id="dois" type="text" maxlength="200" autocomplete="off" name="dois" class="form-control" placeholder="Date of Issue *" required="required" data-error="Date of Issue is required.">
    					                          <div class="help-block with-errors"></div>
    					                      </div>
							        
							            
							        
	                                    <div class="form-group">
	                                    	<label class="control-label" for="std_reg"><?php _e("Registration No."); ?></label>
	                                    	<input tabindex="2" id="std_reg" type="text" maxlength="80" name="std_reg" class="form-control" placeholder="Registration No. *" required="required" data-error="Registration No. is required.">
	                                        <div class="help-block with-errors"></div>
	                                    </div>
	                                    
	                                    <div class="form-group">
									      	<label class="control-label" for="std_session"><?php _e("Session"); ?></label>
									      	<input tabindex="2" id="std_session" type="text" maxlength="80" name="std_session" class="form-control" placeholder="Session *" required="required" data-error="Session is required.">
								      		<div class="help-block with-errors"></div>	   	
									     </div>	
	                                    
	                                    
	                                    <div class="form-group">
	                                    	<label class="control-label" for="std_roll"><?php _e("Roll No."); ?></label>
	                                        <input  tabindex="2" id="std_roll" type="text" maxlength="80" name="std_roll" class="form-control" placeholder="Roll *" required="required" data-error="Roll is required.">
	                                        <div  class="help-block with-errors"></div>
	                                    </div>
	                                    
	                                    <div class="form-group">
	                                    	<label class="control-label" for="name"><?php _e("Name"); ?></label>
	                                        <input tabindex="2" id="name" type="text" maxlength="80" name="name" class="form-control" placeholder="Name *" required="required" data-error="Name is required.">
	                                        <div  class="help-block with-errors"></div>
	                                    </div>
	                                    
	                           
				                    	
		                                 <div class="form-group">
	                                    	<label class="control-label" for="fname"><?php _e("Father Name"); ?></label>
	                                        <input  tabindex="5" autocomplete="off" style="margin-bottom: 0px !important;" id="fname"  maxlength="80" name="fname" class="form-control" placeholder="Father Name *" required="required" data-error="Father Name is required.">
		                                 	<div  class="help-block with-errors"></div>
		                                 </div>
		                                 
		                                 <div class="form-group">
	                                    	<label class="control-label" for="fname"><?php _e("Mother Name"); ?></label>
	                                        <input tabindex="5" autocomplete="off" style="margin-bottom: 0px !important;" id="mname"  maxlength="80" name="mname" class="form-control" placeholder="Mother Name *" required="required" data-error="Father Name is required.">
		                                 	<div  class="help-block with-errors"></div>
		                                 </div>
		                                 
		                                 
					                  
					                    
					                    <div class="form-group">
					                          <label class="control-label" for="present_address"><?php _e("Present Address"); ?></label>
					                          <input  tabindex="7" id="present_address" type="text" maxlength="200" autocomplete="off" name="present_address" class="form-control" placeholder="Present Address *" required="required" data-error="Present Address is required.">
					                          <div class="help-block with-errors"></div>
					                    </div>
					                    
					                    <div class="form-group">
					                          <label class="control-label" for="dob"><?php _e("DoB"); ?></label>
					                          <input   tabindex="7" id="dob" type="text" maxlength="200" autocomplete="off" name="dob" class="form-control" placeholder="DoB *" required="required" data-error="DoB is required.">
					                          <div class="help-block with-errors"></div>
					                    </div>	
					                    
					                  
									     
									     <div class="form-group">
		                                    	<label class="control-label" for="passing_year">Passing Year</label>
		                                    	<select name="passing_year" id="passing_year" class="form-control" style="width: 100%;" required="required" data-error="Passing Year is required.">
													<option value="">Select Year</option>
													<option value="2013">2013</option>
													<option value="2014">2014</option>
													<option value="2015">2015</option>
													<option value="2016">2016</option>
													<option value="2017">2017</option>
													<option value="2018">2018</option>
													<option value="2019">2019</option>
													<option value="2020">2020</option>
													<option value="2021">2021</option>
													<option value="2022">2022</option>
													<option value="2023">2023</option>
													<option value="2024">2024</option>
													<option value="2025">2025</option>
													<option value="2026">2026</option>
													<option value="2027">2027</option>
													<option value="2028">2028</option>
													<option value="2029">2029</option>
													<option value="2030">2030</option>	
													<option value="2031">2031</option>
													<option value="2032">2032</option>
													<option value="2033">2033</option>
													
												</select>
												
											
												
		                                        <div  class="help-block with-errors"></div>
		                                    </div>
									     
									     <div class="form-group">
					                          <label class="control-label" for="gpa"><?php _e("GPA"); ?></label>
					                          <input tabindex="7" id="gpa" type="text" maxlength="200" autocomplete="off" name="gpa" class="form-control" placeholder="GPA *" required="required" data-error="GPA is required.">
					                          <div class="help-block with-errors"></div>
					                    </div>
					                    
					                 
									     
							        
						            </div>
						        </div>
						    </div>
						</div>
                   
                   
                   
                   
                   
                        <div class="col-md-6">
                            
                             <div class="form-group">
						      	<label class="control-label" for="std_class"><?php _e("Class"); ?></label>
						      	<input type="text" name="std_class" id="std_class"class="form-control" style="width: 100%;" maxlength="200" value="<?php echo $std_class2;?>" readonly>
					      		
						     </div>	
						     
						     <div class="form-group">
						      	<label class="control-label" for="std_class"><?php _e("Group"); ?></label>
						      		<input type="text" name="std_division" class="form-control" style="width: 100%;" id="std_division"  maxlength="200" value="<?php echo $std_group;?>" readonly>
					      			
						     </div>	
                            
               			    <label class="control-label"><?php _e("Subject Selection"); ?></label>
                            
                         
                            <table id="example" class="table table-bordered table-hover">
                            <thead>
                              <tr>
                              	<th class="text-center">Sl</th>
                              	<th class="text-center">Sub Title</th>
                                <th>Type</th>
                              </tr>
                            </thead>
                            <tbody>
                              <tr>
                                <td>1.</td>
                              	<td><input type="text" maxlength="200" class="form-control" style="width: 100%;" id="sub1" name="sub1" value="<?php echo $sub1;?>" readonly></td>
                              	<td>
                              	    <select name="oc1" id="oc1" class="form-control" > 
										<option  value="">Compulsory</option>
									</select>
								</td> 
                              </tr> 
                              <tr>
                                <td>2.</td>
                              	<td><input type="text" maxlength="300" id="sub2" class="form-control" style="width: 100%;" name="sub2" value="<?php echo $sub2;?>" readonly></td>
                              	<td>
                              	    <select name="oc1" id="oc1" class="form-control" > 
										<option  value="">Compulsory</option>
									</select>    
                              	</td>
                              </tr> 
                              <tr>
                                <td>3.</td>
                              	<td>
                              	
                              	<?php if ($std_class=='1'){?>
                              	      <input type="text" maxlength="300" width="100%" class="form-control" style="width: 100%;" id="sub3" name="sub3" value="English (Compulsory)" readonly></td>
                              	<td>
                              	    <select name="oc3" id="oc3" class="form-control" > 
										<option  value="">Compulsory</option>
									</select>
								</td> 
                              	<?php }else{?>
                              	    <select id="sub3" name="sub3" required>
                              	    <option value=''>--Select--</option>
                              	    <?php
                              	foreach($subArray as $sa){
                                    echo "<option value='$sa'>$sa</option>";
                              	}?>
                              	</select>
                              	</td>
                              	
                              	<td><select name="oc3" id="oc3" class="form-control" > 
											<option  value="">Compulsory</option>
										<option  value=" (Optional)">Optional</option>
									</select></td>
								<?php } ?>	
                              	</td>
                              
                              </tr> 
                              <tr>
                                <td>4.</td>
                              	<td><select id="sub4" name="sub4" required>
                              	    <option value=''>--Select--</option>
                              	    <?php
                              	foreach($subArray as $sa){
                                    echo "<option value='$sa'>$sa</option>";
                              	}?>
                              	</select>
                              	 </td>
                              	<td><select name="oc4" id="oc4" class="form-control" > 
											<option  value="">Compulsory</option>
										<option  value=" (Optional)">Optional</option>
									</select></td>
                              </tr> 
                              <tr>
                                <td>5.</td>
                              	<td>
                              	    <select id="sub5" name="sub5" required>
                              	    <option value=''>--Select--</option>
                              	  <?php
                              	     foreach($subArray as $sa){
                                    echo "<option value='$sa'>$sa</option>";
                              	  }?>
                              	  </select>
                              	</td>
                              	<td><select name="oc5" id="oc5" class="form-control" > 
											<option  value="">Compulsory</option>
										<option  value=" (Optional)">Optional</option>
									</select></td>
                              </tr> 
                              <tr>
                                <td>6.</td>
                              	<td><select id="sub6" name="sub6" required>
                              	    <option value=''>--Select--</option>
                              	  <?php
                              	     foreach($subArray as $sa){
                                    echo "<option value='$sa'>$sa</option>";
                              	  }?>
                              	  </select></td>
                              	<td><select name="oc6" id="oc6" class="form-control" > 
										<option  value="">Compulsory</option>
										<option  value=" (Optional)">Optional</option>
									</select></td>
                              </tr> 
                              <?php if($std_class=='0'){?>
                              <tr>
                                <td>7.</td>
                              	<td><input type="text" maxlength="200" class="form-control" style="width: 100%;" id="sub7" name="sub7" value="<?php echo $sub7;?>" readonly></td>
                              	<td>
                              	    <select name="oc7" id="oc7" class="form-control" > 
										<option  value="">Compulsory</option>
									</select>
								</td> 
                              </tr> 
                              <?php }else{ }?>
                              
                            </tbody>
                          </table>
                          
                          	
								
                   
                          
                          <div class="text-center"> <button type="submit" name="submit" id="submit" class="btn btn-success" id="confirm">Submit</button></div>
                         
                          
                         
                          
                          
					 </div> 
					 
					 </form>
					
                </div>	                    
              </div>

             </div>
            </div>
          </div>
        </section>
      </div>  
      
<link rel="stylesheet" href="<?php echo base_url();?>/lib/datepicker/datepicker3.css">
<script src="<?php echo base_url();?>/lib/datepicker/bootstrap-datepicker.js"></script>      
   
 <script>
  $("#dois").datepicker({'format':'yyyy-mm-dd'}).on("changeDate",function(ev){ $("#dois").datepicker("hide");  });
 $("#dob").datepicker({'format':'yyyy-mm-dd'}).on("changeDate",function(ev){ $("#dob").datepicker("hide");  });
	$(document).ready(function() {
	    
	     $('#contactForm').validator();
	    
	    
		var toast_msg = '<?php echo $msg;?>';
		var msg_type = '<?php echo $msg_type;?>';
		if(toast_msg !== null && toast_msg !== '') {
            var shortCutFunction = msg_type;
            toastr.options = {
                positionClass: 'toast-bottom-right'
            };
            var $toast = toastr[shortCutFunction](toast_msg);
	    }	    
	    
	} );
	


	
</script>