?
Current Path : /home1/savoy/www/oscarerp.com/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/oscarerp.com/application/views/hr/add_leave_allocation.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); $leave_type=$this->mastermodel->getdatas('leave_type','leave_type_id'); $this->load->view('documentreadyfunctions'); $this->load->view('hr/hrfunctions'); $employee=$this->mastermodel->getdatas('employee','employee_id','asc','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_allocation','view_leave_allocation','<?=$_SESSION['pagenum'];?>')" alt="Back" /> </div> <div class="icons_caption"> <h4>Creating Leave Allocation</h4> </div> </div> <?php $attributes=array('id'=>'validateform','class'=>'validate'); echo form_open('hr/addinhr/insert_leave_allocation/view_leave_allocation/1',$attributes); ?> <div class="clean"></div> <div class="grid_6"> <div class="box"> <div class="header"> <h3>Leave Allocation</h3> <span></span> </div> <div class="content no-padding"> <div class="section _100"> <label>Employee Name</label> <div style="margin:10px 1px;"> <div> <select name="employee_id" id="employee_id" class="required" onchange="load_employee_details(this.value)"> <option>Select Employee</option> <?php foreach($employee as $list) { ?> <option value="<?=$list['employee_id']?>"><?=$list['employee_name']?></option> <?php } ?> </select> </div> </div> </div> <div id="employee"> </div> <div style="display: none" id="detail1"> <div class="section _100" > <label>emp No:</label> <div id="emp" class="single_page"> </div> </div> <div class="section _100" > <label> Designation</label> <div id="designation" class="single_page"> </div> </div> <div class="section _100" > <label> Department</label> <div id="department" class="single_page"> </div> </div> </div> <div class="section _100"> <label>Year</label> <div> <select name="leave_allocation_year" id="leave_allocation_year" class="required chzn-done"> <option value="">--Select--</option> <?php for($i=date("Y");$i<=date("Y")+3 || $i<=date("Y");$i++) { ?> <option value="<?=$i;?>"><?=$i;?></option> <?php } ?> </select> </div> </div> <?php ?> <div class="content"> <table id="table-example_noHeader" class="table"> <thead> <tr> <th>Leave Type</th> <th>No.of Days</th> </tr> </thead> <tbody> <?php $i=1; foreach($leave_type as $leave) { ?> <tr> <td> <input type="hidden" name="leave_type_id<?=$i;?>" value="<?=$leave['leave_type_id'];?>"/> <?=$leave['leave_type_name'];?> </td> <td> <input style="width:75px;" type="text" name="leave_allocation_days<?=$i;?>" class="required number" /> </td> </tr> <?php $i++; } ?> </tbody> </table> </div> <div class="actions"> <div class="actions-left"> <input type="reset"> </div> <div class="actions-right"> <button type="submit" class="clickimage" onclick="addformdata('validateform')">Save</button> </div> </div> <?php echo form_close();?> </div> </div> </div>