?
Current Path : /home1/savoy/www/savoyglobal.net/sec_old/application/views/hr/ |
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/www/savoyglobal.net/sec_old/application/views/hr/edit_teacher.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); $subject=$this->mastermodel->getdatas('subject','subject_id','asc','subject_id'); ?> <script type="text/javascript"> function get_course_subject(course_id,divid) { var tr_index= $('#'+divid).closest('tr').index(); $('#subject_id'+tr_index).load("<?= site_url() ?>/hr/get_course_subject/"+course_id); } </script> <div class="icons_main"> <div class="icons"> <img src="<?=base_url()?>assets/images/back.png" title="Back" class="clickimage" onclick="viewdata('hr','viewinhrsearch','search_teachers','view_teacher','<?=$_SESSION['pagenum'];?>')" alt="Back" align = "center" width="32" height="32" /> </div> <div class="icons_caption"> <h4>Updating Teachers Details</h4> </div> </div> <?php $department=$this->mastermodel->getdatas('department','department_id','asc','department_id'); $designation=$this->mastermodel->getdatas('designation','designation_id','asc','designation_id'); $grade=$this->mastermodel->getdatas('grade','grade_id','asc','grade_id'); $status=$this->mastermodel->getdatas('status','status_id'); $branch=$this->mastermodel->getdatas('branch','branch_id'); $emploee=$this->mastermodel->getdatas('employee','employee_id','asc','employee_id'); $course=$this->mastermodel->getdatas('course','course_id','course_id'); $attributes=array('id'=>'validateform','class'=>'validate'); echo form_open('hr/addinhr/update_teacher/view_teacher/1',$attributes); ?> <div class="grid_6"> <div class="box"> <div class="header main">Personal Details </div> <div class="content no-padding"> <div class="section _100"> <label>Teacher No</label> <div class="single_page"> <?=$viewinfo->employee_no;?> </div> </div> <div class="section _100"> <label>Teacher Name</label> <div> <input name="employee_name" id="first_name" class="required" type="text" value="<?=$viewinfo->employee_name?>" /> </div> </div> <div class="section _100"> <label>Gender</label> <div> <select name="gender" id="employee_gender" class="required chzn-done" > <option value="">--Select--</option> <option value="Male" <?php if($viewinfo->employee_gender=="Male"){echo "selected";}?>>Male</option> <option value="Female" <?php if($viewinfo->employee_gender=="Female"){echo "selected";}?>>Female</option> </select> </div> </div> <div class="section _100"> <label>Date of Birth </label> <div> <input id="dob" type="dateonly" class="required" name="dob" value="<?=$this->mastermodel->convertdatenormalformat($viewinfo->employee_dob)?>"/> </div> </div> <div class="section _100"> <label>Passport No</label> <div> <input name="passport_no" id="passport_no" type="text" class="required" value="<?=$viewinfo->employee_passport_no?>"/> </div> </div> <div class="section _100"> <label>Employee Device No</label> <div> <?php $data = array( 'name' => 'device_no', 'id' => 'device_no', 'onchange' => "checkexistence('employee','device_no',this.value)", 'value' => "$viewinfo->device_no" ); echo form_input($data).form_error($data); ?> </div> </div> <div class="section _100"> <label> Qatar ID No</label> <div> <input type="text" name="employee_qatar_id_no" id="employee_qatar_id_no" class="required" value="<?=$viewinfo->employee_qatar_id_no?>"> </div> </div> <div class="section _100"> <label>Date of Joining </label> <div> <input id="date_of_join" type="dateonly" class="required" name="date_of_join" value="<?=$this->mastermodel->convertdatenormalformat($viewinfo->date_of_join)?>" /> </div> </div> <div class="section _100"> <label>Date of Relieving </label> <div> <input id="relieving_date" type="dateonly" name="relieving_date" value="<?=$this->mastermodel->convertdatenormalformat($viewinfo->relieving_date)?>"/> </div> </div> </div> </div> </div> <div class="grid_6"> <div class="box"> <div class="header main">Employee Details</div> <div class="content no-padding"> <div class="section _100"> <label>Branch</label> <div style="margin:10px 1px;"> <select name="employee_branch_id" id="employee_branch_id" class="required"> <option value="">Select</option> <?php foreach($branch as $list) { ?> <option value="<?=$list['branch_id'];?>"<?php if($list['branch_id']==$viewinfo->employee_branch_id){echo "selected";} ?>><?=$list['branch_name'];?></option> <?php } ?> </select> </div> </div> <div class="section _100"> <label>Designation</label> <div> <select name="employee_designation_id" id="employee_designation_id" class="required chzn-done" > <option value="">--Select--</option> <?php foreach($designation as $list) { ?> <option value="<?=$list['designation_id'];?>"<?php if($list['designation_id']==$viewinfo->employee_designation_id){echo "selected";} ?>><?=$list['designation_name'];?></option> <?php } ?> </select> </div> </div> <div class="section _100"> <label>Department</label> <div> <select name="employee_department_id" id="employee_department_id" class="required chzn-done" > <option value="">--Select--</option> <?php foreach($department as $list) { ?> <option value="<?=$list['department_id'];?>"<?php if($list['department_id']==$viewinfo->employee_department_id){echo "selected";} ?>><?=$list['department_name'];?></option> <?php } ?> </select> </div> </div> <div class="section _100"> <label>Grade</label> <div> <select name="employee_grade_id" id="employee_grade_id" class="required chzn-done" > <option value="">--Select--</option> <?php foreach($grade as $list) { ?> <option value="<?=$list['grade_id'];?>" <?php if($list['grade_id']==$viewinfo->employee_grade_id){echo "selected";} ?> ><?=$list['grade_name'];?></option> <?php } ?> </select> </div> </div> <div class="section _100"> <label>Status</label> <div> <select name="employee_status_id" id="employee_status_id" class="required chzn-done" > <option value="">--Select--</option> <?php foreach($status as $list) { ?> <option value="<?=$list['status_id'];?>" <?php if($list['status_id']==$viewinfo->employee_status_id){echo "selected";} ?> ><?=$list['status_name'];?></option> <?php } ?> </select> </div> </div> <div class="section _100"> <label>Reporting To</label> <div style="margin:10px 1px;"> <select name="employee_reporting_to" id="employee_reporting_to" > <option value="">Select</option> <?php foreach($emploee as $emp) { ?> <option value="<?=$emp['employee_id']?>" <?php if($emp['employee_id']==$viewinfo->employee_reporting_to){ echo 'selected'; } ?>><?=$emp['employee_name']?></option> <?php } ?> </select> </div> </div> </div> </div> </div> <div class="grid_6"> <div class="box"> <div class="header main">Address Details</div> <div class="content no-padding"> <div class="section _100"> <label>Contact No</label> <div> <input type="text" name="contact_no" id="contact_no" class="required" value="<?=$viewinfo->employee_contact_no?>" /> </div> </div> <div class="section _100"> <label>Mobile No</label> <div> <input type="text" name="mobile_no" id="mobile_no" class="" value="<?=$viewinfo->employee_mobile_no?>" /> </div> </div> <div class="section _100"> <label>Email ID</label> <div> <input type="text" name="email" id="email" value="<?=$viewinfo->employee_email?>" /> </div> </div> </div> </div> </div> <div class="grid_12"> <div class="box"> <div class="content no-padding"> <div class="header main"> Teacher Subjects</div> <table class="table"> <tr> <th>Course</th> <th>subject</th> <th><input type="button" id="button2" value="Add More" class="addRow" title="Add Row" style="width:75px;"/></th> </tr> <?php $teacher_subject=$this->mastermodel->get_data('teacher_subject',$viewinfo->employee_id,'teacher_id'); foreach ($teacher_subject as $value) { $cours_sub= $this->mastermodel->get_data_srow('course_subject',$value['course_subject_id'],'id'); if(!empty($cours_sub)){ ?> <tr> <td> <select name="course_id" id="course_id" class="chzn-done" onchange="get_course_subject(this.value,this.id)"> <option value=''>Select</option> <?php foreach($course as $list) { ?> <option value="<?=$list['course_id']?>" <?php if($list['course_id']==$cours_sub->course_id) { echo "selected"; } ?>><?=$list['course_name']?></option> <?php } ?> </select> </td> <td> <select class=" chzn-done" name="subject_id" id="subject_id" > <?php $sub_id=$this->mastermodel->get_data('course_subject',$cours_sub->course_id,'course_id'); echo "<option value=''>Select</option>"; foreach ($sub_id as $row) { $sub=$this->mastermodel->get_data('subject',$row['subject_id'],'subject_id'); foreach ($sub as $list) { echo "<option value='" . $list['subject_id'] . "'";if($list['subject_id']==$cours_sub->subject_id){echo 'selected';} echo ">" . $list['subject_name'] . "</option>"; } } ?> </select> </td> <td> <img style="float: right; vertical-align: top;"src="<?=base_url()?>assets/images/icons/close.png" alt="Delete Row" class="delRow clickimage" title="Delete Row"/> </td> </tr> <?php } } ?> <tr> <td> <select name="course_id" id="course_id" class="chzn-done" onchange="get_course_subject(this.value,this.id)"> <option value=''>Select</option> <?php foreach($course as $list) { ?> <option value="<?=$list['course_id']?>"><?=$list['course_name']?></option> <?php } ?> </select> </td> <td> <select name="subject_id" id="subject_id" class="chzn-done" > <option>Select</option> </select> </td> <td> <img style="float: right; vertical-align: top;"src="<?=base_url()?>assets/images/icons/close.png" alt="Delete Row" class="delRow clickimage" title="Delete Row"/> </td> </tr> </table> </div> </div> </div> <div class="grid_12"> <div class="box"> <div class="content no-padding"> <div class="header main"> Educational Qualification</div> <table class="table"> <tr> <th>Course</th> <th>University</th> <th>Year of Passing</th> <th><input type="button" id="button2" value="Add More" class="addRow" title="Add Row" style="width:75px;"/></th> </tr> <?php $i=1; $professional=$this->mastermodel->get_data('employee_educational_qualification',$viewinfo->employee_id,'employee_id'); foreach($professional as $list) { ?> <tr> <td><input class="w_90" value="<?=$list['course'];?>" type="text" name="course<?=$i;?>" id="course<?=$i;?>"/></td> <td><input class="w_90" value="<?=$list['university'];?>" type="text" name="university<?=$i;?>" id="university<?=$i;?>"/></td> <td><input class="w_90" value="<?=$list['yearofpassing'];?>" type="text" name="passing_year"<?=$i;?> id="passing_year<?=$i;?>"/></td> <td> <img style="float: right; vertical-align: top;"src="<?=base_url()?>assets/images/icons/close.png" alt="Delete Row" class="delRow clickimage" title="Delete Row"/> </td> </tr> <?php $i++; } ?> <tr> <td><input class="w_90" type="text" name="course" id="course"/></td> <td><input class="w_90" type="text" name="university" id="university"/></td> <td> <input class="w_90" type="text" name="passing_year" id="passing_year"/> </td> <td> <img style="float: right; vertical-align: top;"src="<?=base_url()?>assets/images/icons/close.png" alt="Delete Row" class="delRow clickimage" title="Delete Row"/> </td> </tr> </table> </div> </div> </div> <div class="grid_12"> <div class="box"> <div class="content no-padding"> <div class="header main">Work Experiance Details</div> <table class="table"> <tr> <th>Employer</th> <th>Designation</th> <th>Period</th> <th><input type="button" id="button2" value="Add More" class="addRow" title="Add Row" style="width:75px;"/></th> </tr> <?php $i=1; $professional=$this->mastermodel->get_data('employee_professional_experience',$viewinfo->employee_id,'employee_id'); foreach($professional as $list) { ?> <tr> <td><input class="w_90" value="<?=$list['employer'];?>" type="text" name="employer<?=$i;?>" id="employer<?=$i;?>"/></td> <td><input class="w_90" value="<?=$list['designation'];?>" type="text" name="designation<?=$i;?>" id="designation<?=$i;?>"/></td> <td> <input class="w_90" value="<?=$list['period'];?>" type="text" name="period"<?=$i;?> id="period<?=$i;?>"/> </td> <td> <img style="float: right; vertical-align: top;"src="<?=base_url()?>assets/images/icons/close.png" alt="Delete Row" class="delRow clickimage" title="Delete Row"/> </td> </tr> <?php $i++; } ?> <tr> <td><input class="w_90" type="text" name="employer" id="employer"/></td> <td><input class="w_90" type="text" name="designation" id="designation"/></td> <td><input class="w_90" type="text" name="period" id="period"/></td> <td> <img style="float: right; vertical-align: top;"src="<?=base_url()?>assets/images/icons/close.png" alt="Delete Row" class="delRow clickimage" title="Delete Row"/> </td> </tr> </table> </div> </div> </div> <input type="hidden" name="employee_id" value="<?=$viewinfo->employee_id?>"/> <input type="hidden" name="employee_no" value="<?=$viewinfo->employee_no;?>"/> <div class="grid_12"> <div class="box"> <div class="actions"> <div class="actions-left"> <input type="reset" /> </div> <div class="actions-right"> <button type="submit" id="submit" class="clickimage" onclick="addformdata('validateform')">Save</button> </div> </div> </div> </div> <?php echo form_close();?>