<style type="text/css"> .prev { text-align: left; } .next { text-align: right; } .day, .month, .weekday { text-align: center; } .today { background: yellow; } .blank { } </style> <?php // print the calendar for the current month if a month // or year isn't in the query string $month = isset($_GET['month']) ? intval($_GET['month']) : date('m'); $year = isset($_GET['year']) ? intval($_GET['year']) : date('Y'); $cal = new LittleCalendar($month, $year); print $cal->html();
<?php $cal = new LittleCalendar(8, 2016); print $cal->text();