?
Current Path : /home1/savoy/public_html/savoyglobal.net/sec/application/views/student/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : /home1/savoy/public_html/savoyglobal.net/sec/application/views/student/edit_student.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('student/studentfunctions'); $this->load->view('documentreadyfunctions'); ?> <script type="text/javascript"> $(document).ready(function() { $("#bg").mouseover(function(){ $("#bg").css("background-color","rgb(54,111,172)"); $("#bg").css("color","#ffffff"); }); $("#bg").mouseout(function(){ $("#bg").css("background-color","white"); $("#bg").css("color","gray"); }); }); function loadparentsdetails(val) { if(val==1) { $('#existparent').css('display','block'); $('#mother_name').removeClass('required'); $('#father_name').removeClass('required'); $('#newparent,#newparent1,#parent_box,#sub').css('display','none'); } if(val==0) { $('#parent_id').removeClass(); $('#mother_name').addClass('required'); $('#father_name').addClass('required'); $('#newparent,#newparent1,#sub').css('display','block'); $('#existparent,#parent_box_main').css('display','none'); } } function load_parents_details() { var father = $('#father').val(); var mother = $('#mother').val(); var qatar_id = $('#father_qatar_id').val(); $('#sub').css('display','block'); document.getElementById("parent_box").style.display="block"; $("#parent_box").empty().html('<CENTER><img src="<?= base_url() ?>assets/img/loading.gif" class="loading"/></CENTER>'); father=encodeURIComponent(father); mother=encodeURIComponent(mother); qatar_id=encodeURIComponent(qatar_id); $.ajax({ type: "POST", url: "<?= site_url() ?>/student/load_parents/"+father+"/"+mother+"/"+qatar_id, success: function(data) { $("#parent_box").html(data); $('#parent_box_main').show(); }}); } function Checkfiles() { // return false; var fup = document.getElementById('attach_photo'); var fileName = fup.value; var ext = fileName.substring(fileName.lastIndexOf('.') + 1); if(ext == "gif" || ext == "GIF" || ext == "JPEG" || ext == "jpeg" || ext == "jpg" || ext == "JPG" || ext =='') { return addformdata1('validateform'); } else { alert("Upload Valid Image Only"); fup.focus(); return false; } } </script> <div class="row-fluid"> <div class="tab-pane " id="tab_2"> <div class="portlet box blue"> <div class="portlet-title"> <div class="caption"><i class="icon-reorder"></i>Update Student Details</div> <div class="tools"> <a href="#" onclick="viewdata('student','viewinstudentsearch','search_student','view_student','<?=$_SESSION['pagenum'];?>')" class="remove"></a> </div> </div> <div class="portlet-body form"> <!-- BEGIN FORM--> <?php $attributes = array('id' => 'validateform', 'class' => 'form-horizontal validate'); $parents=$this->studentmodel->parent($student->student_id); $school = $this->mastermodel->search_school(); echo form_open_multipart('student/student_add/update_student/view_student/1',$attributes); ?> <h3 class="form-section">Personal Details </h3> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Student No</label> <div class="controls"> <?=$student->reg_no;?> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">First Name</label> <div class="controls"> <input name="first_name" id="first_name" class="required m-wrap span12" value="<?=$student->first_name;?>" type="text" /> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Last Name</label> <div class="controls"> <input name="last_name" id="last_name" class="required m-wrap span12" type="text" value="<?=$student->last_name;?>" /> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">Gender</label> <div class="controls"> <select name="gender" class="required chosen m-wrap span12" > <option value="">--Select--</option> <option value="Male" <?php if($student->gender=="Male"){echo "selected";}?>>Male</option> <option value="Female" <?php if($student->gender=="Female"){echo "selected";}?>>Female</option> </select> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Date of Birth </label> <div class="controls"> <input id="dob" type="text" class=" calfocus required m-wrap span12" value="<?=$this->mastermodel->convertdatenormalformat($student->dob)?>" name="dob" /> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">Admission Date </label> <div class="controls"> <input id="admission_date" type="text" class="calfocus m-wrap span12" name="admission_date" value="<?=$this->mastermodel->convertdatenormalformat($student->admission_date)?>" /> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Nationality</label> <div class="controls"> <input id="nationality" type="text" class="required m-wrap span12" name="nationality" value="<?=$student->nationality?>"/> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">Email Id</label> <div class="controls"> <input id="email" type="text" class="m-wrap span12" name="email" value="<?=$student->email?>"/> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">School Name</label> <div class="controls"> <select name="school_name" class="required chosen" id="school_name" > <option value="">Select</option> <?php foreach($school['results']->result_array() as $row) { ?> <option value="<?= $row['school_name'] ?>" <?php if($row['school_name'] == $student->school_name) { echo "selected"; } ?>><?=$row['school_name'] ?></option> <?php } ?> </select> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">Grade</label> <div class="controls"> <input type="text" name="grade_name" id="grade_name" class="m-wrap span12" value="<?=$student->grade_name;?>" /> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Qatar ID NO</label> <div class="controls"> <input type="text" name="qatar_id" id="qatar_id" class="m-wrap span12" value="<?=$student->qatar_id?>"/> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">Blood Group</label> <div class="controls"> <input type="text" name="blood_group" id="blood_group" class="m-wrap span12" value="<?=$student->blood_group?>" /> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Previous medical illness / Allergy</label> <div class="controls"> <input type="text" name="previous_medical_illness" id="previous_medical_illness" class="m-wrap span12" value="<?=$student->previous_medical_illness?>"/> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">Address</label> <div class="controls"> <input type="text" name="address" id="address" class="m-wrap span12" value="<?=$student->address?>"/> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Upload Photo</label> <div class="controls"> <input type="file" name="attach_photo" id="attach_photo" class=""/> <?php if($student->photo!='') { ?> <img width="130" height="120" src="<?=base_url()?>assets/uploads/student_photo/<?=$student->photo;?>" alt="" /> <?php } ?> </div> </div> </div> </div> <div class="row-fluid portlet box blue" > <div class="portlet-title"> <div class="caption"><i class="icon-reorder"></i>Father's Details</div> </div> <div class="portlet-body form" > <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Father Name</label> <div class="controls"> <input type="text" name="father_name" id="father_name" class="span12" value="<?=$parents->father_name?>"/> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">Qatar ID NO</label> <div class="controls"> <input type="text" name="father_qatar_id_no" id="father_qatar_id_no" class="span12" value="<?=$parents->father_qatar_id_no?>" /> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Occupation</label> <div class="controls"> <input type="text" name="father_occupation" id="father_occupation" class="span12" value="<?=$parents->father_occupation?>" /> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">Mobile No</label> <div class="controls"> <input type="text" name="father_mobile_no" id="father_mobile_no" class="span12" value="<?=$parents->father_mobile_no?>"/> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Office No</label> <div class="controls"> <input type="text" name="father_ofc_no" id="father_ofc_no" class="span12" value="<?=$parents->father_ofc_no?>" /> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">Residence No</label> <div class="controls"> <input type="text" name="father_residence_no" id="father_residence_no" class="span12" value="<?=$parents->father_residence_no?>" /> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Email ID</label> <div class="controls"> <input type="text" name="father_email" id="father_email" class="span12" value="<?=$parents->father_email?>"/> </div> </div> </div> </div> </div> </div> <div class="row-fluid portlet box blue" > <div class="portlet-title"> <div class="caption"><i class="icon-reorder"></i>Mother's Details</div></span> </div> <div class="portlet-body form" > <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Mother's name</label> <div class="controls"> <input type="text" name="mother_name" id="mother_name" class="span12" value="<?=$parents->mother_name?>" /> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">Qatar ID NO</label> <div class="controls"> <input type="text" name="mother_qatar_id_no" id="mother_qatar_id_no" class="span12" value="<?=$parents->mother_qatar_id_no?>" /> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Occupation</label> <div class="controls"> <input type="text" name="mother_occupation" id="mother_occupation" class="span12" value="<?=$parents->mother_occupation?>" /> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">Mobile No</label> <div class="controls"> <input type="text" name="mother_mobile_no" id="mother_mobile_no" class="span12" value="<?=$parents->mother_mobile_no?>" /> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Office No</label> <div class="controls"> <input type="text" name="mother_ofc_no" id="mother_ofc_no" class="span12" value="<?=$parents->mother_ofc_no?>" /> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">Residence No</label> <div class="controls"> <input type="text" name="mother_residence_no" id="mother_residence_no" class="span12" value="<?=$parents->mother_residence_no?>" /> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Email ID</label> <div class="controls"> <input type="text" name="mother_email" id="mother_email" class="span12" value="<?=$parents->mother_email?>" /> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">Emergency Contact No</label> <div class="controls"> <input type="text" name="emergency_contact_no" id="emergency_contact_no" class="span12" value="<?=$parents->emergency_contact_no?>" /> </div> </div> </div> </div> </div> </div> <div class="form-actions"> <input type="hidden" name="tab_name" value="student"/> <input type="hidden" name="resfunction" value="search_student"/> <input name="student_id" id="student_id" value="<?=$student->student_id;?>" type="hidden" /> <input name="reg_no" id="reg_no" value="<?=$student->reg_no;?>" type="hidden" /> <input type="hidden" name="parent_id" id="parent_id" value="<?=$parents->parent_id?>"/> <button type="submit" class="btn blue"><i class="icon-ok"></i> Save</button> <button type="button" onclick="viewdata('student','viewinstudentsearch','search_student','view_student','<?=$_SESSION['pagenum'];?>')" class="btn">Cancel</button> </div> <?php echo form_close(); ?> <!-- END FORM--> </div> </div> </div> </div>