webform-submission-information.tpl.php 1.1 KB

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * @file
  4. * Customize the header information shown when editing or viewing submissions.
  5. *
  6. * Available variables:
  7. * - $node: The node object for this webform.
  8. * - $mode: Either "form" or "display". May be other modes provided by other
  9. * modules, such as "print" or "pdf".
  10. * - $submission: The contents of the webform submission.
  11. * - $account: The user that submitted the form.
  12. */
  13. ?>
  14. <fieldset class="webform-submission-info clearfix">
  15. <legend><?php print t('Submission information'); ?></legend>
  16. <?php print theme('user_picture', array('account' => $account)); ?>
  17. <div class="webform-submission-info-text">
  18. <div><?php print t('Form: !form', array('!form' => l($node->title, 'node/' . $node->nid))); ?></div>
  19. <div><?php print t('Submitted by !name', array('!name' => theme('username', array('account' => $account)))); ?></div>
  20. <div><?php print check_plain(format_date($submission->submitted, webform_variable_get('webform_date_type'))); ?></div>
  21. <div><?php print check_plain($submission->remote_addr); ?></div>
  22. </div>
  23. </fieldset>