?
Current Path : /home1/savoy/public_html/savoyglobal.net/hr/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/public_html/savoyglobal.net/hr/application/views/Employee/edit_exit_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_exit_office','view_exit_office','<?=$_SESSION['pagenum'];?>')" alt="Back" align = "center" width="25" height="25" /> </label> <span class="heading">Update Employee Exit 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('employee/addinemployee/update_exit_office/view_exit_office/1',$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); $exit = $this->mastermodel->get_data_srow('office_exit',$viewinfo->office_leave_id,'office_exit_leave_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;?>"/> <input type="hidden" name="office_exit_id" value="<?=$exit->office_exit_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> <label for="data">Date of Resignation</label> <div id="multi"> <?php $data = array( 'name' => 'office_exit_resignation_date', 'id' => 'office_exit_resignation_date', 'class' => 'required', 'value' => $this->mastermodel->convertdatenormalformat($exit->office_exit_resignation_date) ); echo form_input($data).form_error($data); ?> <img src="<?=base_url()?>assets/images/icons/calendar.png" alt="Click to popup the clendar!" /> </div> </li> <li> <label for="data">Relieving Date</label> <div id="multi"> <?php $data = array( 'name' => 'office_exit_relieving_date', 'id' => 'office_exit_relieving_date', 'class' => 'required', 'value' => $this->mastermodel->convertdatenormalformat($exit->office_exit_relieving_date) ); echo form_input($data).form_error($data); ?> <img src="<?=base_url()?>assets/images/icons/calendar.png" alt="Click to popup the clendar!" /> </div> </li> <li> <label for="data">Exit Status</label> <select name="office_exit_status" id="office_exit_status" class="required"> <option value="">Select</option> <option value="Not Approved" <?php if($exit->office_exit_status == "Not Approved" ) {echo "selected";} ?> >Not Approved</option> <option value="Approved" <?php if($exit->office_exit_status == "Approved" ) {echo "selected";} ?> >Settled</option> </select> </li> <li> <label for="data">Clearence Form</label> <?php $data = array( 'name' => 'office_exit_clearence_form_name', 'id' => 'office_exit_clearence_form_name', 'value' => $viewinfo->office_exit_clearence_form_name ); $data1 = array( 'name' => 'office_exit_clearence_form_doc', 'id' => 'office_exit_clearence_form_doc' ); echo form_input($data).form_error($data); echo form_upload($data1).form_error($data1); ?> <?php if($viewinfo->office_exit_clearence_form_doc != "") { ?> <a href="<?=base_url()?>assets/uploads/<?=$viewinfo->office_exit_clearence_form_doc;?>">Download</a> <?php } ?> </li> <li> <label for="data">Resignation Letter</label> <?php $data = array( 'name' => 'office_exit_resignation_letter_name', 'id' => 'office_exit_resignation_letter_name', 'value' => $viewinfo->office_exit_resignation_letter_name ); $data1 = array( 'name' => 'office_exit_resignation_letter_doc', 'id' => 'office_exit_resignation_letter_doc' ); echo form_input($data).form_error($data); echo form_upload($data1).form_error($data1); ?> <?php if($viewinfo->office_exit_resignation_letter_doc != "") { ?> <a href="<?=base_url()?>assets/uploads/<?=$viewinfo->office_exit_resignation_letter_doc;?>">Download</a> <?php } ?> </li> <li> <label for="data">Relieving Letter</label> <?php $data = array( 'name' => 'office_exit_relieving_letter_name', 'id' => 'office_exit_relieving_letter_name', 'value' => $viewinfo->office_exit_relieving_letter_name ); $data1 = array( 'name' => 'office_exit_relieving_letter_doc', 'id' => 'office_exit_relieving_letter_doc' ); echo form_input($data).form_error($data); echo form_upload($data1).form_error($data1); ?> <?php if($viewinfo->office_exit_relieving_letter_name != "") { ?> <a href="<?=base_url()?>assets/uploads/<?=$viewinfo->office_exit_relieving_letter_name;?>">Download</a> <?php } ?> </li> <li> <input type="hidden" name="tab_name" value="office_exit"/> <input type="hidden" name="resfunction" value="search_exit_office"/> </li> <li> <label for="submit"> </label> <button type="submit" class="clickimage" onclick="addformdata('validateform')">Save</button> </li> </ul> <?php echo form_close();?> </fieldset>