?
Current Path : /home1/savoy/www/savoyglobal.net/horeitia/application/views/Employee/ |
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/horeitia/application/views/Employee/single_leave_office.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('employee','viewinemployeesearch','search_leave_office','view_leave_office','<?=$_SESSION['pagenum'];?>')" alt="Back" align = "center" width="25" height="25" /> </label> <span class="heading">Employee Leave Details</span> </div> <link href="<?=base_url()?>assets/css/tablesortnew.css" rel="stylesheet" type="text/css"> <fieldset> <?php $attributes=array('id'=>'validateform','class'=>'customForm'); echo form_open('',$attributes); $leave_list=$this->mastermodel->getdatas('leave_type','leave_type_name'); $office_employee_name = $this->mastermodel->getSingleFieldValue('office_employee','office_employee_name','office_employee_id',$viewinfo->office_leave_employee_id); ?> <ul> <li> <label for="data">Employee Name</label> <?php echo $office_employee_name; ?> <input type="hidden" name="office_leave_id" value="<?=$viewinfo->office_leave_id;?>" </li> <li> <label for="data">Leave Type</label> <select name="office_leave_type_id" id="office_leave_type_id" class="required" disabled> <option value="">Select</option> <?php foreach($leave_list as $leave) { echo "<option value='". $leave['leave_type_id'] . "'";if($viewinfo->office_leave_type_id == $leave['leave_type_id'] ){echo "selected";} echo ">" . $leave['leave_type_name'] . "</option>"; } ?> </select> </li> <li> <label for="data">Reason of leave</label> <select name="office_leave_reason" id="office_leave_reason" class="required" disabled> <option value="">Select</option> <option value="Relative sick" <?php if($viewinfo->office_leave_reason == "Relative sick" ) {echo "selected";} ?> >Relative sick</option> <option value="Personal problems" <?php if($viewinfo->office_leave_reason == "Personal problems" ) {echo "selected";} ?> >Personal problems</option> <option value="Completion of contract" <?php if($viewinfo->office_leave_reason == "Completion of contract" ) {echo "selected";} ?> >Completion of contract</option> <option value="Disciplinary Ground" <?php if($viewinfo->office_leave_reason == "Disciplinary Ground" ) {echo "selected";} ?> >Disciplinary Ground</option> <option value="Any other reason" <?php if($viewinfo->office_leave_reason == "Any other reason" ) {echo "selected";} ?> >Any other reason</option> </select> </li> <li> <table class="sort"> <caption>Leave Dates</caption> <tr> <th align="center">Start Date</th> <th align="center">End Date</th> </tr> <tr> <td> <?=$this->mastermodel->convertdatenormalformat($viewinfo->office_leave_starting_date);?> </td> <td> <?=$this->mastermodel->convertdatenormalformat($viewinfo->office_leave_ending_date);?> </td> </tr> </table> </li> <li> <label for="data">Remarks</label> <?php echo $viewinfo->office_leave_remarks; ?> </li> <li> <label for="data">Leave Status</label> <select name="office_leave_status" id="office_leave_status" class="required" disabled> <option value="">Select</option> <option value="Not Approved" <?php if($viewinfo->office_leave_status == "Not Approved" ) {echo "selected";} ?> >Not Approved</option> <option value="Approved" <?php if($viewinfo->office_leave_status == "Approved" ) {echo "selected";} ?> >Approved</option> </select> </li> <li> <input type="hidden" name="tab_name" value="office_leave"/> <input type="hidden" name="resfunction" value="search_leave_office"/> </li> </ul> <?php echo form_close();?> </fieldset>