?
Current Path : /home1/savoy/public_html/savoyglobal.net/drafthr/system/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/drafthr/system/application/views/HR/addleaveallocation.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <script type="text/javascript"> jQuery(document).ready(function () { $('.one').datepick({dateFormat: 'dd-mm-yyyy'}); $('.two').datepick({dateFormat: 'dd-mm-yyyy'}); suggestemployee(); }); </script> <div class="select-bar"> <label> <img src="<?=base_url()?>/assets/images/backbutton.png" title="Back" class="clickimage" onclick="loadleaveallocation('<?=$_SESSION['pagenum']?>','<?=$_SESSION['searchoption']?>','<?=$_SESSION['searchtxt']?>')" alt="Back" align = "center" width="25" height="25"/></label> </div> <fieldset> <legend>Leave Allocation</legend> <?php $attributes = array('id' => 'customForm'); echo form_open('hr/addleaveallocation',$attributes); ?> <ul> <li> </li> <li> <label for="date">Employee Name</label> <input type="text" id="employee" size="35"> <input type="hidden" name="employee_id" id="employee_id"> <!-- <input type="text" id="staffname" size="20"> <input type="hidden" name="staffid" id="staffid"> <img id="inliexample1" src="<?=base_url()?>/assets/images/button-search.png" title="Search" class="clickimage" onclick="showstaffdiv()" >--> <span id="staffnameInfo" class="red_bold">*</span> </li> <li id="stfinfodet"></li> <li> <label for="date">Year</label><select name="year"><?php for ($i=date("Y"); $i>2008; $i--) { echo "<option value='$i'>$i</option>\n"; }?> </select> <li> <table class="sort" cellpadding="0" cellspacing="0" align="left" > <thead><tr> <th>Leave Type</th> <th>No. of Days</th> </tr> <?php $i=1; $allowded=$this->mastermodel->getdatas('leavetype'); foreach($allowded as $alde) { $data = array( 'name' => 'noofdays_'.$i, 'id' => 'noofdays_'.$i, 'style' => 'width:80%', ); ?> <tr> <td width="200px"><?=$alde['leavename'];?><input type="hidden" value ="<?= $alde['id'];?>" name="leavetypeid_<?=$i;?>"> </td><td width="100px"> <?php echo form_input($data).form_error($data); ?></td> </tr> <?php $i++; } ?> </table> <li><label for="submit"> </label> <button type="submit" class="clickimage" id="submit" onclick="return validateform('employee');">Save</button> </li> </ul> <?php echo form_close();?> </fieldset>