?
Current Path : /home1/savoy/public_html/savoyglobal.net/busybees/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/public_html/savoyglobal.net/busybees/application/views/hr/edit_leave_allocation.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); $leave_type=$this->mastermodel->get_data_joined('leave_allocation_detail','leave_type','leave_type_id','leave_type_id',$viewinfo->leave_allocation_id,'leave_allocation_id'); ?> <div class="icons_main"> <div class="icons"> <img src="<?=base_url()?>assets/images/back.png" title="Back" class="clickimage" onclick="viewdata('hr','viewinhrsearch','search_leave_allocation','view_leave_allocation','<?=$_SESSION['pagenum'];?>')" alt="Back" /> </div> <div class="icons_caption"> <h4>Updating Leave Allocation</h4> </div> </div> <?php $attributes=array('id'=>'validateform','class'=>'validate'); echo form_open('hr/addinhr/update_leave_allocation/view_leave_allocation/1',$attributes); $emp=$this->mastermodel->get_data_srow('employee',$viewinfo->employee_id,'employee_id'); ?> <div class="clean"></div> <div class="grid_6"> <div class="box"> <div class="header"> <span></span> </div> <div class="content no-padding"> <div class="section _100"> <label>Employee</label> <div class="single_page"> <?=$emp->employee_name;?> </div> </div> <div class="section _100"> <label>Employee No</label> <div class="single_page"> <?=$emp->employee_no;?> </div> </div> <div class="section _100"> <label>Designation</label> <div class="single_page"> <?=$this->mastermodel->get_single_field_value('designation','designation_name','designation_id',$emp->employee_designation_id);?> </div> </div> <div class="section _100"> <label>Designation</label> <div class="single_page"> <?=$this->mastermodel->get_single_field_value('department','department_name','department_id',$emp->employee_department_id);?> </div> </div> <div class="section _100"> <label>Year</label> <div> <select name="leave_allocation_year" id="leave_allocation_year" class="required"> <?php for($i=date("Y");$i<=date("Y")+3 || $i<=date("Y");$i++) { ?> <option value="<?=$i;?>"<?php if($i==$viewinfo->leave_allocation_year){echo 'selected';}?>><?=$i;?></option> <?php } ?> </select> </div> </div> <div class="content"> <table id="table-example_noHeader" class="table"> <thead> <tr> <td><label>Leave Type</label></td> <td><label>No.of Days</label></td> </tr> </thead> <tbody> <?php $i=1; foreach($leave_type as $leave) { ?> <tr> <td> <input type="hidden" name="leave_type_id<?=$i;?>" value="<?=$leave['leave_type_id'];?>"/> <?=$leave['leave_type_name'];?> </td> <td> <input style="width:75px;" type="text" name="leave_allocation_days<?=$i;?>" class="required number" value="<?=$leave['leave_allocation_days'];?>"/> </td> </tr> </tbody> <?php $i++; } ?> </table> </div> <div class="actions"> <div class="actions-left"> <input type="hidden" name="leave_allocation_id" id="leave_allocation_id" value="<?= $viewinfo->leave_allocation_id;?>" /> <input type="reset"> </div> <div class="actions-right"> <button style="margin-left: 130px;" type="submit" id="submit" class="clickimage" onclick="addformdata('validateform')">Update</button> </div> </div> <?php echo form_close();?> </div> </div> </div>