?
Current Path : /home1/savoy/public_html/savoyglobal.net/horeitia/application/views/Payroll/ |
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/horeitia/application/views/Payroll/payroll_report.php |
<?php $this->load->view('documentreadyfunctions'); ?> <script type="text/javascript"> function check_validity() { if($("#payroll_generation_month").val()=="") { alert("Please select payroll month"); return false; } if($("#payroll_generation_year").val()=="") { alert("Please select to payroll year"); return false; } return true; } </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">Payroll Report </span> </div> <fieldset> <?php $attributes=array('id'=>'validateform','class'=>'customForm'); echo form_open('payroll/get_payroll_report/',$attributes); $camp_list=$this->mastermodel->getdatas('camp','camp_name'); $trade_list=$this->mastermodel->getdatas('trade','trade_name'); ?> <ul> <li> <table class="sortnew"> <tr><th colspan='2' style="text-align: center">Search by Camp</th></tr> <tr> <td> Camp Name </td> <td style="width:65%"> <select name="camp_id" id="camp_id"> <option value="">All</option> <?php foreach($camp_list as $camp) { echo "<option value='". $camp['camp_id'] . "'>" . $camp['camp_name'] . "</option>"; } ?> </select> </td> </tr> <tr><th colspan='2' style="text-align: center">Search by Trade</th></tr> <tr> <td> Trade Name </td> <td style="width:65%"> <select name="trade_id" id="trade_id"> <option value="">All</option> <?php foreach($trade_list as $trade) { echo "<option value='". $trade['trade_id'] . "'>" . $trade['trade_name'] . "</option>"; } ?> </select> </td> </tr> </table> <table class="sortnew"> <tr> <th colspan="2" style="text-align: center">Payroll Date</th> </tr> <tr> <td>Month and Year</td> <td> <?php // lowest year wanted $cutoff = 2004; // current year $now = date('Y'); // build months menu echo '<select name="payroll_generation_month" id="payroll_generation_month" class="required">' ; $date_array = array('January','February','March','April','May','June','July','August','September','October','November','December'); foreach($date_array as $dates) { echo ' <option value="' . $dates . '"';if(date("F")==$dates){echo "selected";} echo '>' . $dates . '</option>' ; } echo '</select> ' ; // build years menu echo '<select name="payroll_generation_year" id="payroll_generation_year" class="required">' ; for ($y=$now; $y>=$cutoff; $y--) { echo ' <option value="' . $y . '">' . $y . '</option>' ; } echo '</select>' ; ?> </td> </tr> </table> <input type="hidden" name="report_type" value="xls"/> </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" onclick="return check_validity();">Generate</button> </li> </ul> <?php echo form_close();?> </fieldset>