?
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/leave_approval.php |
<?php /* * To change this template, choose Tools | Templates * and open the template in the editor. */ ?> <?php $attributes = array('id' => 'customForm','class'=>'endform'); echo form_open_multipart('',$attributes); ?> <fieldset> <legend>Update Leave Status</legend> <?php $leavedet=$this->mastermodel->get_data_srow('leave_application',$leave_id,'leave_application_id'); $staffid=$leavedet->employee_id; $fromdate=$leavedet->from_date; $todate=$leavedet->to_date; $noofdays=(strtotime($todate) - strtotime($fromdate)) / (60 * 60 * 24)+1; $stfper=$this->mastermodel->get_data_srow('employee',$staffid,'employee_id'); $desg = $this->mastermodel->get_data_srow('designation',$stfper->employee_designation_id,'designation_id'); $dept= $this->mastermodel->get_data_srow('department',$stfper->employee_department_id,'department_id'); if(empty ($desg)) $designation=""; else $designation=$desg->designation_name; if(empty ($dept)) $department=""; else $department=$dept->department_name; ?> <ul> <li> <table class="sort"> <tr> <th>Employee Name</th> <th>Employee No</th> <th>Designation</th> <th>Department</th> </tr> <tr> <td><?=$stfper->employee_name;?></td> <td><?=$stfper->employee_no;?></td> <td><?=$designation?></td> <td><?=$department?></td> </tr> </table> </li> <li> <label>No of days</label> <input type="text" readonly value="<?=$noofdays?>"/> <input type="hidden" readonly value="<?=$leave_id?>" name="leave_application_id" id="leave_application_id"/> </li> <li> <label>Leave Duration</label> <?=$this->mastermodel->convdatformat($fromdate)?> To <?=$this->mastermodel->convdatformat($todate)?> </li> <li><label for="country">Leave Status</label> <select name="leave_status" id="leave_status"> <option value="Approved">Approved</option> <option value="Pending" selected>Pending</option> <option value="Denied">Denied</option> </select> </li> <li><label for="submit"> </label> <button type="button" id="button1" class="clickimage" onclick="updateleavestatus()">Save</button> </li> </ul> </fieldset> <?php echo form_close();?>