?
Current Path : /home1/savoy/www/savoyglobal.net/sgms/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/sgms/application/views/HR/edit_leave_allocation.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); ?> <div class="select-bar"> <label><img src="<?=base_url()?>assets/images/backbutton.png" title="Back" class="clickimage" onclick="viewdata('hr','viewinhrsearch','search_leave_allocation','view_leave_allocation','<?=$_SESSION['pagenum'];?>')" alt="Back" align = "center" width="25" height="25" /> </label> <span class="heading">Updating Leave Allocation</span> </div> <fieldset> <?php $attributes=array('id'=>'validateform','class'=>'customForm'); echo form_open('hr/addinhr/update_leave_allocation/view_leave_allocation/1',$attributes); $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'); ?> <ul> <li> <label for="data">Employee Name</label> <div class="record_entry"> <?=$this->mastermodel->getSingleFieldValue('employee','employee_name','employee_id',$viewinfo->employee_id);?> </div> </li> <li> <label for="data">Year</label> <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> </li> <li> <table class="sort"> <tr> <th align="center">Leave Type</th> <th align="center">No.of Days</th> </tr> <?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="input-medium" value="<?=$leave['leave_allocation_days'];?>"/></td> </tr> <?php $i++; } ?> </table> </li> <input type="hidden" name="leave_allocation_id" value="<?=$viewinfo->leave_allocation_id;?>"/> <input type="hidden" name="tab_name" value="leave_allocation"/> <li> <label for="submit"> </label> <button type="submit" class="clickimage" onclick="addformdata('validateform')">Save</button> </li> </ul> <?php echo form_close();?> </fieldset>