Révision a45e4bc1
Ajouté par Assos Assos il y a environ 9 ans
drupal7/sites/all/modules/webform/templates/webform-mail.tpl.php | ||
---|---|---|
12 | 12 |
* - $node: The node object for this webform. |
13 | 13 |
* - $submission: The webform submission. |
14 | 14 |
* - $email: The entire e-mail configuration settings. |
15 |
* - $user: The current user submitting the form. |
|
16 |
* - $ip_address: The IP address of the user submitting the form. |
|
15 |
* - $user: The current user submitting the form. Always the Anonymous user |
|
16 |
* (uid 0) for confidential submissions. |
|
17 |
* - $ip_address: The IP address of the user submitting the form or '(unknown)' |
|
18 |
* for confidential submissions. |
|
17 | 19 |
* |
18 | 20 |
* The $email['email'] variable can be used to send different e-mails to different users |
19 | 21 |
* when using the "default" e-mail template. |
20 | 22 |
*/ |
21 | 23 |
?> |
22 |
<?php print ($email['html'] ? '<p>' : '') . t('Submitted on %date'). ($email['html'] ? '</p>' : ''); ?>
|
|
24 |
<?php print ($email['html'] ? '<p>' : '') . t('Submitted on [submission:date:long]'). ($email['html'] ? '</p>' : ''); ?>
|
|
23 | 25 |
|
24 | 26 |
<?php if ($user->uid): ?> |
25 |
<?php print ($email['html'] ? '<p>' : '') . t('Submitted by user: %username') . ($email['html'] ? '</p>' : ''); ?>
|
|
27 |
<?php print ($email['html'] ? '<p>' : '') . t('Submitted by user: [submission:user]') . ($email['html'] ? '</p>' : ''); ?>
|
|
26 | 28 |
<?php else: ?> |
27 |
<?php print ($email['html'] ? '<p>' : '') . t('Submitted by anonymous user: [%ip_address]') . ($email['html'] ? '</p>' : ''); ?>
|
|
29 |
<?php print ($email['html'] ? '<p>' : '') . t('Submitted by anonymous user: [submission:ip-address]') . ($email['html'] ? '</p>' : ''); ?>
|
|
28 | 30 |
<?php endif; ?> |
29 | 31 |
|
30 | 32 |
<?php print ($email['html'] ? '<p>' : '') . t('Submitted values are') . ':' . ($email['html'] ? '</p>' : ''); ?> |
31 | 33 |
|
32 |
%email_values
|
|
34 |
[submission:values]
|
|
33 | 35 |
|
34 | 36 |
<?php print ($email['html'] ? '<p>' : '') . t('The results of this submission may be viewed at:') . ($email['html'] ? '</p>' : '') ?> |
35 | 37 |
|
36 |
<?php print ($email['html'] ? '<p>' : ''); ?>%submission_url<?php print ($email['html'] ? '</p>' : ''); ?> |
|
38 |
<?php print ($email['html'] ? '<p>' : ''); ?>[submission:url]<?php print ($email['html'] ? '</p>' : ''); ?> |
Formats disponibles : Unified diff
Update webform to 4.10