Changeset 3184 for trunk/system/views
- Timestamp:
- 07/21/2008 11:40:48 PM (4 months ago)
- Files:
-
- 1 modified
-
trunk/system/views/kohana_calendar.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/views/kohana_calendar.php
r2350 r3184 1 1 <?php 2 2 3 /** 4 * @todo This needs to be moved to an i18n file, or be configured in the library. 5 */ 6 $headings = array('Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'); 3 // Get the day names 4 $days = Calendar::days(TRUE); 7 5 8 6 // Previous and next month timestamps … … 26 24 </tr> 27 25 <tr> 28 <?php 29 30 foreach ($headings as $day): 31 32 ?> 26 <?php foreach ($days as $day): ?> 33 27 <th><?php echo $day ?></th> 34 <?php 35 36 endforeach 37 38 ?> 28 <?php endforeach ?> 39 29 </tr> 40 <?php 41 42 foreach ($weeks as $week): 43 44 ?> 30 <?php foreach ($weeks as $week): ?> 45 31 <tr> 46 <?php 47 48 foreach ($week as $day): 32 <?php foreach ($week as $day): 49 33 50 34 list ($number, $current, $data) = $day; … … 63 47 ?> 64 48 <td class="<?php echo implode(' ', $classes) ?>"><span class="day"><?php echo $day[0] ?></span><?php echo $output ?></td> 65 <?php 66 67 endforeach 68 69 ?> 49 <?php endforeach ?> 70 50 </tr> 71 <?php 72 73 endforeach 74 75 ?> 51 <?php endforeach ?> 76 52 </table>
