Projet

Général

Profil

Paste
Télécharger (1,24 ko) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / modules / webform / templates / webform-results-submissions.tpl.php @ 7b2d1845

1
<?php
2

    
3
/**
4
 * @file
5
 * Result submissions page.
6
 *
7
 * Available variables:
8
 * - $node: The node object for this webform.
9
 * - $submissions: The Webform submissions array.
10
 * - $total_count: The total number of submissions to this webform.
11
 * - $pager_count: The number of results to be shown per page.
12
 * - is_submissions: The user is viewing the node/NID/submissions page.
13
 * - $table: The table[] array consists of three keys:
14
 * - $table['#header']: Table header.
15
 * - $table['#rows']: Table rows.
16
 * - $table['#operation_total']: Maximum number of operations in the operation
17
 *   column.
18
 */
19
?>
20

    
21
<?php if (count($table['#rows'])): ?>
22
  <?php print theme('webform_results_per_page', array('total_count' => $total_count, 'pager_count' => $pager_count)); ?>
23
  <?php print render($table); ?>
24
<?php else: ?>
25
  <?php print t('There are no submissions for this form. <a href="!url">View this form</a>.', array('!url' => url('node/' . $node->nid))); ?>
26
<?php endif; ?>
27

    
28

    
29
<?php if ($is_submissions): ?>
30
  <?php print theme('links', array('links' => array('webform' => array('title' => t('Go back to the form'), 'href' => 'node/' . $node->nid)))); ?>
31
<?php endif; ?>
32

    
33
<?php if ($pager_count): ?>
34
  <?php print theme('pager', array('limit' => $pager_count)); ?>
35
<?php endif; ?>