Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //while ($stamp <= $endstamp) {
- for ($y = 0; $y < 4; $y++) {
- for ($x = 0; $x < 7; $x++) {
- $year = gmdate('Y', $stamp);
- $month = gmdate('m', $stamp);
- $cur_day = gmdate('j', $stamp);
- $month_name = gmdate('M', $stamp);
- $dow = _event_day_of_week($stamp);
- $weekdays = event_week_days();
- $row[$x] = array('colspan' => 1,
- 'class' => strtolower("$month_name ". $weekdays[$dow]['day'] . ($stamp == $today ? ' today' : '') . ($cur_day == $day ? ' selected' : '').$theclear),
- 'id' => strtolower($month_name . $cur_day),
- 'data' => event_render_day($year, $month, $cur_day, 'table', $types, $terms));
- $stamp += 86400;
- }
- $tbody[$y] = $row;
- }
- return array($thead, $tbody);
- ?>
Add Comment
Please, Sign In to add comment