?
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/late_report.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); $department=$this->mastermodel->getdatas('department','id'); $designation=$this->mastermodel->getdatas('designation','id'); ?> <script type="text/javascript"> jQuery(document).ready(function () { suggestemployeeattendance(); }); </script> <link href="<?=base_url()?>/assets/css/tablesortnew.css" rel="stylesheet" type="text/css" /> <div class="select-bar"> <label> <img src="<?=base_url()?>/assets/images/backbutton.png" title="Back" class="clickimage" onclick="loadattendance()" alt="Back" align = "center" width="25" height="25" /></label> </div> <!--<form id="customForm" name="customForm">--> <fieldset> <?php $attributes = array('id' => 'customForm'); echo form_open('hr/latereport',$attributes); ?> <ul> <li> <table class="sortnew" cellpadding="0" cellspacing="0"> <tr> <th colspan="2" style="text-align: center">Search by Employee</th> </tr> <tr> <td>Employee Name</td> <td> <input type="text" name="employee" id="employee" /> <input type="hidden" name="employee_id" id="employee_id" /> </td> </tr> <tr> <th colspan="2" style="text-align: center">Attendance Month</th> </tr> <tr> <td>Choose Month and Year</td> <td> <?php // lowest year wanted $cutoff = 2004; // current year $now = date('Y'); // build years menu echo '<select name="year">' ; for ($y=$now; $y>=$cutoff; $y--) { echo ' <option value="' . $y . '">' . $y . '</option>' ; } echo '</select> ' ; // build months menu echo '<select name="month">' ; $date_array = array('Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'); foreach($date_array as $dates) { echo ' <option value="' . $dates . '"';if(date("M")==$dates){echo "selected";} echo '>' . $dates . '</option>' ; } echo '</select>' ; ?> </td> </tr> </table> <table class="sortnew" cellpadding="0" cellspacing="0"> <tr> <th colspan="2" style="text-align: center">Search by Department</th> </tr> <tr> <td>Department</td> <td> <select name="department_id" id="department_id" > <option value="">Select</option> <?php foreach($department as $list) { ?> <option value="<?=$list['id'];?>"><?=$list['departmentname'];?></option> <?php } ?> </select> </td> </tr> <tr> <th colspan="2" style="text-align: center">Search by Designation</th> </tr> <tr> <td>Designation</td> <td> <select name="designation_id" id="designation_id" > <option value="">Select</option> <?php foreach($designation as $list) { ?> <option value="<?=$list['id'];?>"><?=$list['designation'];?></option> <?php } ?> </select> </td> </tr> </table> </li> <li> <label>Report Format</label> <select name="report_type" id="report_type"> <option value="xls">Xls</option> <option value="pdf">Pdf</option> </select> </li> <div class="centeralign"> <li><label><input type="submit" value="Generate Report"/></label></li> </div> </ul> <?php echo form_close();?> </fieldset>