[ Index ]

PHP Cross Reference of Drupal 6 (gatewave)

title

Body

[close]

/sites/all/modules/webform/templates/ -> webform-submission-navigation.tpl.php (source)

   1  <?php
   2  // $Id: webform-submission-navigation.tpl.php,v 1.1 2010/01/14 06:12:47 quicksketch Exp $
   3  
   4  /**
   5   * @file
   6   * Customize the navigation shown when editing or viewing submissions.
   7   *
   8   * Available variables:
   9   * - $node: The node object for this webform.
  10   * - $submission: The contents of the webform submission.
  11   * - $previous: The previous submission ID.
  12   * - $next: The next submission ID.
  13   * - $previous_url: The URL of the previous submission.
  14   * - $next_url: The URL of the next submission.
  15   * - $mode: Either "form" or "display". As the navigation is shown in both uses.
  16   */
  17  ?>
  18  <div class="webform-submission-navigation">
  19    <?php if ($previous): ?>
  20      <?php print l(t('Previous submission'), $previous_url, array('attributes' => array('class' => 'webform-submission-previous'), 'query' => ($mode == 'form' ? 'destination=' . $previous_url : NULL))); ?>
  21    <?php else: ?>
  22      <span class="webform-submission-previous"><?php print t('Previous submission'); ?></span>
  23    <?php endif; ?>
  24  
  25    <?php if ($next): ?>
  26      <?php print l(t('Next submission'), $next_url, array('attributes' => array('class' => 'webform-submission-next'), 'query' => ($mode == 'form' ? 'destination=' . $next_url : NULL))); ?>
  27    <?php else: ?>
  28      <span class="webform-submission-next"><?php print t('Next submission'); ?></span>
  29    <?php endif; ?>
  30  </div>


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