echo HTML::getMonthName($month) . " " . $year; ?> </option> <?php } ?> <?php } ?> </select> </form> </div> </div> <?php $report->showReportGeneralDepartments($intYearMonth); ?> <div><a class="btn" href="#content"><i class="icon-arrow-up"></i> Back to top</a></div> </div> <!-- end #box --> </div> <!-- end #content --> </div> <!-- end #content-wrapper --> <script> $(document).ready(function() { $('#frm_year_month').change(function() { window.location = '?frm_year_month=' + $('#frm_year_month option:selected').val(); }); });