?
Current Path : /home1/savoy/public_html/savoyglobal.net/rms/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/rms/application/views/hr/add_leave_application.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); $this->load->view('commonfunctions'); $leave_type=$this->mastermodel->getdatas('leave_type','leave_type_id','','leave_type_id'); $employee=$this->mastermodel->getdatas('employee','employee_id','','employee_id'); ?> <div class="icons_main"> <div class="icons"> <img src="<?=base_url()?>assets/images/back.png" title="Back" class="clickimage" onclick="viewdata('hr','viewinhrsearch','search_leave_application','view_leave_application','<?=$_SESSION['pagenum'];?>')" alt="Back" /> </div> <div class="icons_caption"> <h4>Creating Leave Application</h4> </div> </div> <?php $attributes=array('id'=>'validateform','class'=>'validate'); echo form_open('hr/addinhr/insert_leave_application/view_leave_application/1',$attributes); ?> <div class="clean"></div> <div class="grid_6"> <div class="box"> <div class="header"> <h3>Leave Application</h3> <span></span> </div> <div class="content no-padding"> <div class="section _100"> <label>Employee Name</label> <div> <select name="employee_id" id="employee_id" class="required" > <option value="">Select</option> <?php foreach($employee as $emp) { echo "<option value='". $emp['employee_id'] . "' >" . $emp['employee_name']. "</option>"; } ?> </select> </div> </div> <div class="section _100"> <label>Leave Type</label> <div style="margin-top: 6px;"> <select name="leave_type_id" class="required chzn-done"> <option value="">Select</option> <?php foreach($leave_type as $list) { ?> <option value="<?=$list['leave_type_id'];?>"><?=$list['leave_type_name'];?></option> <?php } ?> </select> </div> </div> <div class="section _100"> <label>From Date</label> <div> <input id="from_date" type="dateonly" class="required" name="from_date"> </div> </div> <div class="section _100"> <label>To Date</label> <div> <input id="to_date" type="dateonly" class="required" name="to_date"> </div> </div> <div class="section _100"> <label>Remarks</label> <div> <?php $data = array( 'name' => 'remarks', 'id' => 'remarks', ); echo form_textarea($data).form_error($data); ?> </div> </div> <input type="hidden" name="leave_application_id" id="leave_application_id" /> <input type="hidden" name="tab_name" value="leave_application"/> <div class="actions"> <div class="actions-left"> <input type="reset"> </div> <div class="actions-right"> <button style="margin-left: 130px;" type="submit" id="submit" class="clickimage" onclick="addformdata('validateform')">save</button> </div> </div> </div> <?php echo form_close();?> </div> </div>