?
Current Path : /home1/savoy/www/savoyglobal.net/sgms/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/savoyglobal.net/sgms/application/views/HR/monthly_attendance_report.php |
<?php $this->load->view('documentreadyfunctions'); ?> <script type="text/javascript"> suggestemployee('employee'); </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="viewdata('report','viewinreportsearch','search_report','view_report','1');" alt="Back" align = "center" width="25" height="25" /> </label> <span class="heading">Monthly Attendance Report</span> </div> <fieldset> <?php $attributes=array('id'=>'validateform','class'=>'customForm'); echo form_open('hr/getreport/get_monthly_attendance_report/_report_monthly_attendance/',$attributes); $department=$this->mastermodel->getdatas('department','department_id'); $designation=$this->mastermodel->getdatas('designation','designation_id'); ?> <ul> <li> <table class="sortnew"> <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"> <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['department_id'];?>"><?=$list['department_name'];?></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['designation_id'];?>"><?=$list['designation_name'];?></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> <li> <label for="submit"> </label> <button type="submit" class="clickimage" >Generate</button> </li> </ul> <?php echo form_close();?> </fieldset>