?
Current Path : /home1/savoy/public_html/savoyglobal.net/sgms/application/views/Exits/ |
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/sgms/application/views/Exits/single_leave.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); $salary = $this->mastermodel->get_employee_current_salary($viewinfo->employee_id); $camp = $this->mastermodel->get_employee_current_camp($viewinfo->employee_id); $site = $this->mastermodel->get_employee_current_site($viewinfo->employee_id); $leave_list=$this->mastermodel->getdatas('leave_type','leave_type_name'); ?> <div class="select-bar"> <label><img src="<?=base_url()?>assets/images/backbutton.png" title="Back" class="clickimage" onclick="viewdata('exits','viewinexitssearch','search_leave','view_leave','<?=$_SESSION['pagenum'];?>')" alt="Back" align = "center" width="25" height="25" /> </label> <span class="heading">Employee Leave Details</span> </div> <fieldset> <?php $attributes=array('id'=>'validateform','class'=>'customForm'); echo form_open('',$attributes); $employee = $this->administrationmodel->get_emp_info($viewinfo->employee_id); if($employee->emp_non_no[0]==',') { $employee->emp_non_no=substr($employee->emp_non_no, 1); } $emp_non_no = str_replace(',',', ', $employee->emp_non_no); ?> <ul> <li> <label for="data">Employee Name</label> <div class="record_entry"> <?php echo $employee->emp_non_full_name; ?> </div> <input type="hidden" name="employee_id" id="employee_id" value="<?=$viewinfo->employee_id;?>"/> <input type="hidden" name="leave_id" id="leave_id" value="<?=$viewinfo->leave_id;?>"/> </li> <li> <label for="data">Employee No</label> <div class="record_entry"> <?php echo $emp_non_no; ?> </div> </li> <li> <label for="data">Joining Date</label> <div class="record_entry"> <?php echo $this->mastermodel->convertdatenormalformat($employee->emp_non_date_joining); ?> </div> </li> <li> <label for="data">Trade</label> <div class="record_entry"> <?php echo $employee->trade_name; ?> </div> </li> <li> <label for="data">Camp</label> <div class="record_entry"> <?php echo $camp; ?> </div> </li> <li> <label for="data">Current Basic Salary</label> <div class="record_entry"> <?php echo $salary; ?> </div> </li> <li> <label for="data">Site</label> <div class="record_entry"> <?php echo $site; ?> </div> </li> <li> <label for="data">Leave Type</label> <div class="record_entry"> <?php echo $this->mastermodel->getSingleFieldValue('leave_type','leave_type_name','leave_type_id',$viewinfo->leave_type_id); ?> </div> </li> <li> <label for="data">Reason of leave</label> <div class="record_entry"> <?php echo $viewinfo->leave_reason ;?> </div> </li> <li> <label for="data">Remarks</label> <div class="record_entry"> <?php echo $viewinfo->remarks; ?> </div> </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->leave_starting_date);?> </td> <td> <?=$this->mastermodel->convertdatenormalformat($viewinfo->leave_ending_date);?> </td> </tr> </table> </li> <li> <label for="data">Tickets</label> <select name="leave_ticket" id="leave_ticket" class="required" disabled> <option value="">Select</option> <option value="Company provided" <?php if($viewinfo->leave_ticket == "Company provided" ) {echo "selected";} ?> >Company provided</option> <option value="Self Arrangement" <?php if($viewinfo->leave_ticket == "Self Arrangement" ) {echo "selected";} ?> >Self Arrangement</option> </select> </li> <li> <table class="sort"> <caption>Destination</caption> <tr> <th align="center">From</th> <th align="center">To</th> </tr> <tr> <td> <?=$viewinfo->leave_from;?> </td> <td> <?=$viewinfo->leave_to;?> </td> </tr> </table> </li> <li> <label for="data">Leave Application Form</label> <?php echo $viewinfo->leave_application_form_name; ?> <?php if($viewinfo->leave_application_form_doc != "") { ?> <a href="<?=base_url()?>assets/uploads/<?=$viewinfo->leave_application_form_doc;?>">Download</a> <?php } ?> </li> <li> <label for="data">Documentary Proof of emergency</label> <?php echo $viewinfo->proof_emergency_name; ?> <?php if($viewinfo->proof_emergency_doc != "") { ?> <a href="<?=base_url()?>assets/uploads/<?=$viewinfo->proof_emergency_doc;?>">Download</a> <?php } ?> </li> <li> <label for="data">Clearance form</label> <?php echo $viewinfo->clearence_form_name; ?> <?php if($viewinfo->clearence_form_doc != "") { ?> <a href="<?=base_url()?>assets/uploads/<?=$viewinfo->clearence_form_doc;?>">Download</a> <?php } ?> </li> <li> <label for="data">Self declaration</label> <?php echo $viewinfo->self_declaration_name; ?> <?php if($viewinfo->self_declaration_doc != "") { ?> <a href="<?=base_url()?>assets/uploads/<?=$viewinfo->self_declaration_doc;?>">Download</a> <?php } ?> </li> <li> <label for="data">Settlement sheet</label> <?php echo $viewinfo->settlement_sheet_name; ?> <?php if($viewinfo->settlement_sheet_doc != "") { ?> <a href="<?=base_url()?>assets/uploads/<?=$viewinfo->settlement_sheet_doc;?>">Download</a> <?php } ?> </li> </ul> <?php echo form_close();?> </fieldset>