?
Current Path : /home1/savoy/public_html/savoyglobal.net/cocorico/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/cocorico/application/views/student/edit_parent.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); ?> <script src="<?= base_url() ?>assets/scripts/jquery.autocomplete.js"></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 Parents Details</div> <div class="tools"> <a href="#" onclick="viewdata('student','viewinstudentsearch','search_parents','view_parents','<?=$_SESSION['pagenum'];?>')" class="remove"></a> </div> </div> <div class="portlet-body form"> <!-- BEGIN FORM--> <?php $attributes = array('id' => 'validateform', 'class' => 'form-horizontal validate'); echo form_open('student/addinstudent/update_parent/view_parents/1',$attributes); ?> <h3 class="form-section">Father's Details </h3> <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="required span12" value="<?= $viewinfo->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" value="<?= $viewinfo->father_qatar_id_no ?>" class="span12"/> </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" value="<?= $viewinfo->father_occupation ?>" class="span12" /> </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="<?= $viewinfo->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="<?= $viewinfo->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" value="<?= $viewinfo->father_residence_no ?>" class="span12" /> </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" value="<?= $viewinfo->father_email ?>" class="span12" /> </div> </div> </div> </div> <h3 class="form-section">Mother's Details </h3> <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="required span12" value="<?= $viewinfo->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" value="<?= $viewinfo->mother_qatar_id_no ?>" class="span12"/> </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="<?= $viewinfo->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" value="<?= $viewinfo->mother_mobile_no ?>" class="span12" /> </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" value="<?= $viewinfo->mother_ofc_no ?>" class="span12" /> </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" value="<?= $viewinfo->mother_residence_no ?>" class="span12" /> </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" value="<?= $viewinfo->mother_email ?>" class="span12" /> </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" value="<?= $viewinfo->emergency_contact_no ?>" class="span12"/> </div> </div> </div> </div> <h3 class="form-section">Student Details </h3> <table class="table table-striped table-hover table-bordered" id="sample_3" style="background-color: white;"> <tr> <th>Student Name</th> <th>Student Reg No</th> <th>Gender</th> <th>Nationality</th> <th>Batch</th> </tr> <?php $i=1; $student_list=$this->mastermodel->get_data('parent_student',$viewinfo->parent_id,'parent_id'); foreach($student_list as $row) { ?> <tr> <td> <?php $student=$this->mastermodel->get_data_srow_joined('student', 'nationality', 'nationality_id', 'nationality_id',$row['student_id'], 'student_id'); ?> <?=$student->first_name." ".$student->last_name.'-'.$student->reg_no ?> <!-- <input type="hidden" name="student_id<?=$i?>" id="student_id<?=$i?>" value="<?=$row['student_id']?>" /> --> </td> <td><?=$student->reg_no?></td> <td><?=$student->gender?></td> <td><?=$student->nationality_name?></td> <td> <?=$this->mastermodel->get_single_joined_value('class_name_code','class_name','student_class','class_name_id','class_name_id','student_id',$row['student_id']);?> </td> </tr> <?php } ?> </table> <div class="form-actions"> <input type="hidden" name="tab_name" value="parents"/> <input type="hidden" name="resfunction" value="search_parents"/> <input type="hidden" name="parent_id" id="parent_id" class="" value="<?=$viewinfo->parent_id?>"/> <button type="submit" class="btn blue" onclick="addformdata('validateform')"><i class="icon-ok"></i> Save</button> <button type="button" onclick="viewdata('student','viewinstudentsearch','search_parents','view_parents','<?=$_SESSION['pagenum'];?>')" class="btn">Cancel</button> </div> <?php echo form_close(); ?> <!-- END FORM--> </div> </div> </div> </div>