| [ Index ] |
PHP Cross Reference of Drupal 6 (yi-drupal) |
[Summary view] [Print] [Text view]
1 <?php 2 // $Id: calendar-week.tpl.php,v 1.5.2.6 2009/02/16 23:46:22 karens Exp $ 3 /** 4 * @file 5 * Template to display a view as a calendar week. 6 * 7 * @see template_preprocess_calendar_week. 8 * 9 * $day_names: An array of the day of week names for the table header. 10 * $rows: The rendered data for this week. 11 * 12 * For each day of the week, you have: 13 * $rows['date'] - the date for this day, formatted as YYYY-MM-DD. 14 * $rows['datebox'] - the formatted datebox for this day. 15 * $rows['empty'] - empty text for this day, if no items were found. 16 * $rows['all_day'] - an array of formatted all day items. 17 * $rows['items'] - an array of timed items for the day. 18 * $rows['items'][$time_period]['hour'] - the formatted hour for a time period. 19 * $rows['items'][$time_period]['ampm'] - the formatted ampm value, if any for a time period. 20 * $rows['items'][$time_period]['values'] - An array of formatted items for a time period. 21 * 22 * $view: The view. 23 * $min_date_formatted: The minimum date for this calendar in the format YYYY-MM-DD HH:MM:SS. 24 * $max_date_formatted: The maximum date for this calendar in the format YYYY-MM-DD HH:MM:SS. 25 * 26 */ 27 //dsm('Display: '. $display_type .': '. $min_date_formatted .' to '. $max_date_formatted); 28 //dsm($rows); 29 //dsm($items); 30 ?> 31 32 <div class="calendar-calendar"><div class="week-view"> 33 <table> 34 <thead> 35 <tr> 36 <th class="calendar-agenda-hour"><?php print $by_hour_count > 0 ? t('Time') : ''; ?></th> 37 <?php foreach ($day_names as $cell): ?> 38 <th class="<?php print $cell['class']; ?>"> 39 <?php print $cell['data']; ?> 40 </th> 41 <?php endforeach; ?> 42 </tr> 43 </thead> 44 <tbody> 45 <tr> 46 <td class="<?php print $agenda_hour_class ?>"> 47 <span class="calendar-hour"><?php print $by_hour_count > 0 ? date_t('All day', 'datetime') : ''; ?></span> 48 </td> 49 <?php foreach ($rows as $day): ?> 50 <td class="calendar-agenda-items"> 51 <?php print $day['datebox']; ?> 52 <div class="calendar"> 53 <div class="inner"> 54 <?php print array_key_exists('all_day', $day) && count($day['all_day']) ? implode($day['all_day']) : ' ';?> 55 </div> 56 </div> 57 </td> 58 <?php endforeach; ?> 59 </tr> 60 <?php foreach ($items as $time): ?> 61 <tr> 62 <td class="calendar-agenda-hour"> 63 <span class="calendar-hour"><?php print $time['hour']; ?></span> 64 <span class="calendar-ampm"><?php print $time['ampm']; ?></span> 65 </td> 66 <?php foreach ($columns as $column): ?> 67 <td class="calendar-agenda-items"> 68 <div class="calendar"> 69 <div class="inner"> 70 <?php print isset($time['values'][$column]) ? implode($time['values'][$column]) : ' '; ?> 71 </div> 72 </div> 73 </td> 74 <?php endforeach; ?> 75 </tr> 76 <?php endforeach; ?> 77 78 </tbody> 79 </table> 80 </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 |