| [ Index ] |
PHP Cross Reference of Drupal 6 (yi-drupal) |
[Summary view] [Print] [Text view]
1 <?php 2 // $Id: calendar-mini.tpl.php,v 1.1.2.1 2010/11/28 23:31:28 karens Exp $ 3 /** 4 * @file 5 * Template to display a view as a mini calendar month. 6 * 7 * @see template_preprocess_calendar_mini. 8 * 9 * $day_names: An array of the day of week names for the table header. 10 * $rows: An array of data for each day of the week. 11 * $view: The view. 12 * $min_date_formatted: The minimum date for this calendar in the format YYYY-MM-DD HH:MM:SS. 13 * $max_date_formatted: The maximum date for this calendar in the format YYYY-MM-DD HH:MM:SS. 14 * 15 * $show_title: If the title should be displayed. Normally false since the title is incorporated 16 * into the navigation, but sometimes needed, like in the year view of mini calendars. 17 * 18 */ 19 //dsm('Display: '. $display_type .': '. $min_date_formatted .' to '. $max_date_formatted); 20 ?> 21 <div class="calendar-calendar"><div class="month-view"> 22 <?php if ($view->date_info->show_title): ?> 23 <?php print theme('date_navigation', $view); ?> 24 <?php endif; ?> 25 <table class="mini"> 26 <thead> 27 <tr> 28 <?php foreach ($day_names as $cell): ?> 29 <th class="<?php print $cell['class']; ?>"> 30 <?php print $cell['data']; ?> 31 </th> 32 <?php endforeach; ?> 33 </tr> 34 </thead> 35 <tbody> 36 <?php foreach ((array) $rows as $row): ?> 37 <tr> 38 <?php foreach ($row as $cell): ?> 39 <td id="<?php print $cell['id']; ?>" class="<?php print $cell['class']; ?>"> 40 <?php print $cell['data']; ?> 41 </td> 42 <?php endforeach; ?> 43 </tr> 44 <?php endforeach; ?> 45 </tbody> 46 </table> 47 </div></div>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Mon Jul 9 18:01:44 2012 | Cross-referenced by PHPXref 0.7 |