root / drupal7 / sites / all / modules / webform / templates / webform-results-submissions.tpl.php @ e9f59ce0
1 | 85ad3d82 | Assos Assos | <?php
|
---|---|---|---|
2 | // $Id:
|
||
3 | |||
4 | /**
|
||
5 | * @file
|
||
6 | * Result submissions page.
|
||
7 | *
|
||
8 | * Available variables:
|
||
9 | * - $node: The node object for this webform.
|
||
10 | * - $submissions: The Webform submissions 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 | ?>
|
||
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; ?> |