?
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_application.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_application','view_leave_application','<?=$_SESSION['pagenum'];?>')" alt="Back" align = "center" width="25" height="25" /> </label> <span class="heading">Updating Leave Application</span> </div> <fieldset> <?php $attributes=array('id'=>'validateform','class'=>'customForm'); echo form_open('hr/addinhr/update_leave_application/view_leave_application/1',$attributes); $leave_type=$this->mastermodel->getdatas('leave_type','leave_type_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">Leave Type Name</label> <select name="leave_type_id" id="leave_type_id" class="required"> <option value="">Select</option> <?php foreach($leave_type as $list) { ?> <option value="<?=$list['leave_type_id'];?>" <?php if($list['leave_type_id']==$viewinfo->leave_type_id){echo "selected";} ?>><?=$list['leave_type_name'];?></option> <?php } ?> </select> </li> <li> <label for="data">From Date</label> <?php $data = array( 'name' => 'from_date', 'id' => 'from_date', 'class' => 'calfocus', 'value' => $this->mastermodel->convertdatenormalformat($viewinfo->from_date) ); echo form_input($data).form_error($data); ?> </li> <li> <label for="data">To Date</label> <?php $data = array( 'name' => 'to_date', 'id' => 'to_date', 'class' => 'calfocus', 'value' => $this->mastermodel->convertdatenormalformat($viewinfo->to_date) ); echo form_input($data).form_error($data); ?> </li> <li> <label for="data">Remarks</label> <?php $data = array( 'name' => 'remarks', 'id' => 'remarks', 'value' => $viewinfo->remarks ); echo form_textarea($data).form_error($data); ?> </li> <input type="hidden" name="leave_application_id" value="<?=$viewinfo->leave_application_id;?>"/> <input type="hidden" name="tab_name" value="leave_application"/> <li> <label for="submit"> </label> <button type="submit" class="clickimage" onclick="addformdata('validateform')">Save</button> </li> </ul> <?php echo form_close();?> </fieldset>