Update copyright
[squirrelmail.git] / templates / default / read_handle_receipt.tpl
1 <?php
2 /**
3 * read_handle_receipt.tpl
4 *
5 * Template to generate output for handling read receipts.
6 *
7 * The following variables are available in this template:
8 *
9 * $read_receipt_sent - boolean TRUE if the read receipt has already been sent
10 * $first_time_reading - boolean TRUE if this is the first time this message
11 * has been seen
12 * $send_receipt_href - URL to send a read receipt now.
13 *
14 * @copyright 1999-2013 The SquirrelMail Project Team
15 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
16 * @version $Id$
17 * @package squirrelmail
18 * @subpackage templates
19 */
20
21 /** add required includes **/
22
23 /** extract template variables **/
24 extract($t);
25
26 /** Begin template **/
27 if ($read_receipt_sent) {
28 echo _("Sent");
29 } else {
30 ?>
31 <?php echo _("Requested"); ?>&nbsp;
32 <small>[ <a href="<?php echo $send_receipt_href; ?>"><?php echo _("Send Read Receipt Now"); ?></a> ]</small>
33 <?php
34 if ($first_time_reading && $javascript_on) {
35 ?>
36 <script type="text/javascript">
37 <!--
38 if (confirm("<?php echo _("The message sender has requested a response to indicate that you have read this message. Would you like to send a receipt?"); ?>")) {
39 sendMDN();
40 }
41 // -->
42 </script>
43 <?php
44 }
45 }
46 ?>