[ Index ]

PHP Cross Reference of Drupal 6 (yi-drupal)

title

Body

[close]

/sites/all/modules/calendar/theme/ -> calendar-month.tpl.php (source)

   1  <?php
   2  // $Id: calendar-month.tpl.php,v 1.6.2.3 2008/06/19 22:55:56 karens Exp $
   3  /**
   4   * @file
   5   * Template to display a view as a calendar month.
   6   * 
   7   * @see template_preprocess_calendar_month.
   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   * $calendar_links: Array of formatted links to other calendar displays - year, month, week, day.
  13   * $display_type: year, month, day, or week.
  14   * $block: Whether or not this calendar is in a block.
  15   * $min_date_formatted: The minimum date for this calendar in the format YYYY-MM-DD HH:MM:SS.
  16   * $max_date_formatted: The maximum date for this calendar in the format YYYY-MM-DD HH:MM:SS.
  17   * $date_id: a css id that is unique for this date, 
  18   *   it is in the form: calendar-nid-field_name-delta
  19   * 
  20   */
  21  //dsm('Display: '. $display_type .': '. $min_date_formatted .' to '. $max_date_formatted);
  22  ?>
  23  <div class="calendar-calendar"><div class="month-view">
  24  <table>
  25    <thead>
  26      <tr>
  27        <?php foreach ($day_names as $cell): ?>
  28          <th class="<?php print $cell['class']; ?>">
  29            <?php print $cell['data']; ?>
  30          </th>
  31        <?php endforeach; ?>
  32      </tr>
  33    </thead>
  34    <tbody>
  35      <?php foreach ((array) $rows as $row): ?>
  36        <tr>
  37          <?php foreach ($row as $cell): ?>
  38            <td id="<?php print $cell['id']; ?>" class="<?php print $cell['class']; ?>">
  39              <?php print $cell['data']; ?>
  40            </td>
  41          <?php endforeach; ?>
  42        </tr>
  43      <?php endforeach; ?>
  44    </tbody>
  45  </table>
  46  </div></div>


Generated: Mon Jul 9 18:01:44 2012 Cross-referenced by PHPXref 0.7