?
Current Path : /home1/savoy/public_html/savoyglobal.net/sec/draft/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/draft/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> <script type="text/javascript"> $(document).ready(function() { $(".addRow_parent").btnAddRow({inputBoxAutoNumber: true}, function(row) { suggest_student('.parent_student'); }); suggest_student('.parent_student'); }); </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" class="span12" id="father_residence_no" value="<?= $viewinfo->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" 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" value="<?= $viewinfo->mother_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="mother_mobile_no" class="span12" id="mother_mobile_no" value="<?= $viewinfo->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" class="span12" name="mother_ofc_no" id="mother_ofc_no" value="<?= $viewinfo->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" 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" class="span12" name="mother_email" id="mother_email" value="<?= $viewinfo->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="<?= $viewinfo->emergency_contact_no ?>" /> </div> </div> </div> </div> <div class="portlet box blue"> <div class="portlet-title"> <div class="caption"><i class="icon-check"></i> Student Details</div> </div> <div class="portlet-body"> <div class="row-fluid"> <div class="control-group"> <table class="table table-striped table-hover table-bordered" id="sample_3" style="background-color: white;"> <tr> <th>Student Name</th> <th>Student No</th> <th>Gender</th> <th>Nationality</th> <th>Batch</th> <th><input type="button" id="button2" value="Add More" class="addRow_parent" title="Add Row" style="width:75px;"/></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('student', $row['student_id'], 'student_id'); ?> <input type="text" name="student<?= $i ?>" id="student<?= $i ?>" data-id='student_id<?= $i ?>' value=' <?= $student->first_name . $student->last_name . '-' . $student->reg_no ?>' class="required parent_student" /> <input type="hidden" name="student_id<?= $i ?>" id="student_id<?= $i ?>" value="<?= $student->student_id ?>" /> </td> <td> <input type="text" name="reg_no<?= $i ?>" id="reg_no<?= $i ?>" value="<?= $student->reg_no ?> " class="span6"/> </td> <td> <input type="text" name="gender<?= $i ?>" id="gender<?= $i ?>" value="<?= $student->gender ?>" class="span6"/></td> <td> <input type="text" name="nationality<?= $i ?>" id="nationality<?= $i ?>" value="<?= $student->nationality ?> " class="span6"/></td> <td> <input type="text" name="batch<?= $i ?>" id="batch<?= $i ?>" value="<?= $this->mastermodel->get_single_joined_value('batch_no', 'batch', 'student_batch', 'batch_id', 'current_batch_id', 'student_id', $row['student_id']); ?>" class="span6" /> </td> <td> <img style="float: right; vertical-align: top;"src="<?= base_url() ?>assets/img/close.png" alt="Delete Row" class="delRow clickimage" title="Delete Row"/> </td> </tr> <?php $i++; } ?> <tr> <td> <input type="text" name="student<?= $i ?>" id="student<?= $i ?>" data-id='student_id<?= $i ?>' value='' class="required parent_student" /> <input type="hidden" name="student_id<?= $i ?>" id="student_id<?= $i ?>" /> </td> <td> <input type="text" name="reg_no<?= $i ?>" id="reg_no<?= $i ?>" readonly class="span6"/> </td> <td> <input type="text" name="gender<?= $i ?>" id="gender<?= $i ?>" readonly class="span6"/> </td> <td> <input type="text" name="nationality<?= $i ?>" id="nationality<?= $i ?>" readonly class="span6"/> </td> <td> <input type="text" name="batch<?= $i ?>" id="batch<?= $i ?>" readonly class="span6" /> </td> <td> <img style="float: right; vertical-align: top;"src="<?= base_url() ?>assets/img/close.png" alt="Delete Row" class="delRow clickimage" title="Delete Row"/> </td> </tr> </table> </div> </div> </div> </div> <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>