?
Current Path : /home1/savoy/public_html/savoyglobal.net/sec/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/public_html/savoyglobal.net/sec/application/views/hr/edit_leave_application.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); $this->load->view('commonfunctions'); $leave_type=$this->hrmodel->search_leave_type(); ?> <div class="row-fluid"> <div class="tab-pane " id="tab_2"> <div class="portlet box blue"> <div class="portlet-title"> <div class="caption"><i class="icon-reorder"></i>Updating Leave Application</div> <div class="tools"> <a href="#" onclick="viewdata('hr','viewinhrsearch','search_leave_application','view_leave_application','<?=$_SESSION['pagenum'];?>')" class="remove"></a> </div> </div> <div class="portlet-body form"> <!-- BEGIN FORM--> <?php $attributes = array('id' => 'validateform', 'class' => 'form-horizontal validate'); echo form_open('hr/addinhr/update_leave_application/view_leave_application/1',$attributes) ?> <h3 class="form-section">Leave Application </h3> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Employee Name</label> <div class="controls"> <?=$this->mastermodel->get_single_field_value('employee','employee_name','employee_id',$viewinfo->employee_id);?> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">Leave Type</label> <div class="controls"> <select name="leave_type_id" id="leave_type_id" class="required chzn-done"> <option value="">Select</option> <?php foreach($leave_type['results']->result_array() as $list) { ?> <option value="<?=$list['leave_type_id'];?>" <?php if($viewinfo->leave_type_id == $list['leave_type_id']){ echo "selected" ;} ?> > <?=$list['leave_type_name'];?> </option> <?php } ?> </select> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">From Date </label> <div class="controls"> <input id="from_date" type="text" class="required calfocus" name="from_date" value="<?=$this->mastermodel->convertdatenormalformat($viewinfo->from_date);?>"> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">To Date </label> <div class="controls"> <input id="to_date" type="text" class="required calfocus" name="to_date" value="<?=$this->mastermodel->convertdatenormalformat($viewinfo->to_date);?>"> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Remarks </label> <div class="controls"> <?php $data = array( 'name' => 'remarks', 'id' => 'remarks', 'value' => $viewinfo->remarks ); echo form_textarea($data).form_error($data); ?> </div> </div> </div> </div> </div> <div class="form-actions"> <input type="hidden" name="tab_name" value="leave_application"/> <input type="hidden" name="resfunction" value="search_leave_application"/> <input type="hidden" name="leave_application_id" id="leave_application_id" value="<?= $viewinfo->leave_application_id;?>" /> <button type="submit" onclick="addformdata('validateform')" class="btn blue"><i class="icon-ok"></i> Save</button> <button type="button" onclick="viewdata('hr','viewinhrsearch','search_leave_application','view_leave_application','<?=$_SESSION['pagenum'];?>')" class="btn">Cancel</button> </div> <?php echo form_close(); ?> <!-- END FORM--> </div> </div> </div> </div>