| [ Index ] |
PHP Cross Reference of Drupal 6 (yi-drupal) |
[Summary view] [Print] [Text view]
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; ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Mon Jul 9 18:01:44 2012 | Cross-referenced by PHPXref 0.7 |