[ Index ]

PHP Cross Reference of Drupal 6 (gatewave)

title

Body

[close]

/sites/all/modules/webform/templates/ -> webform-results-submissions.tpl.php (source)

   1  <?php
   2  // $Id:
   3  
   4  /**
   5   * @file
   6   * Result submissions page.
   7   *
   8   * Available variables:
   9   * - $node: The node object for this webform.
  10   * - $submission: The Webform submission array.
  11   * - $total_count: The total number of submissions to this webform.
  12   * - $pager_count: The number of results to be shown per page.
  13   * - is_submissions: The user is viewing the node/NID/submissions page.
  14   * - $table: The table[] array consists of three keys:
  15   * - $table['#header']: Table header.
  16   * - $table['#rows']: Table rows.
  17   * - $table['#operation_total']: Maximum number of operations in the operation column.
  18   */
  19  drupal_add_css(drupal_get_path('module', 'webform') . '/css/webform-admin.css', 'theme', 'all', FALSE);
  20  ?>
  21  
  22  <?php if (count($table['#rows'])): ?>
  23    <?php print theme('webform_results_per_page', $total_count, $pager_count); ?>
  24    <?php print theme('table', $table['#header'], $table['#rows']); ?>
  25  <?php else: ?>
  26    <?php print t('There are no submissions for this form. <a href="!url">View this form</a>.', array('!url' => url('node/' . $node->nid))); ?>
  27  <?php endif; ?>
  28  
  29  
  30  <?php if ($is_submissions): ?>
  31    <?php print theme('links', array('webform' => array('title' => t('Go back to the form'), 'href' => 'node/' . $node->nid))); ?>
  32  <?php endif; ?>
  33  
  34  <?php if ($pager_count): ?>
  35    <?php print theme('pager', NULL, $pager_count, 0); ?>
  36  <?php endif; ?>


Generated: Thu Mar 24 11:18:33 2011 Cross-referenced by PHPXref 0.7