1421174e |
1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
2 | <html xmlns="http://www.w3.org/1999/xhtml"> |
3 | <head> |
4 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
5 | <title></title> |
6 | </head> |
7 | <body> |
8 | |
9 | {capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture} |
10 | {capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture} |
11 | {capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture} |
12 | |
13 | <center> |
14 | <table width="620" border="0" cellpadding="0" cellspacing="0" id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left;"> |
15 | |
16 | <!-- BEGIN HEADER --> |
17 | <!-- You can add table row(s) here with logo or other header elements --> |
18 | <!-- END HEADER --> |
19 | |
20 | <!-- BEGIN CONTENT --> |
21 | |
22 | <tr> |
23 | <td> |
24 | <p>{ts 1=$contact.display_name}dear %1{/ts},</p> |
25 | <p>{ts}thank you for your generous pledge. please print this acknowledgment for your records.{/ts}</p> |
26 | </td> |
27 | </tr> |
28 | <tr> |
29 | <td> |
30 | <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;"> |
31 | <tr> |
32 | <th {$headerStyle}> |
33 | {ts}Pledge Information{/ts} |
34 | </th> |
35 | </tr> |
36 | <tr> |
37 | <td {$labelStyle}> |
38 | {ts}Pledge Received{/ts} |
39 | </td> |
40 | <td {$valueStyle}> |
41 | {$create_date|truncate:10:''|crmDate} |
42 | </td> |
43 | </tr> |
44 | <tr> |
45 | <td {$labelStyle}> |
46 | {ts}Total Pledge Amount{/ts} |
47 | </td> |
48 | <td {$valueStyle}> |
49 | {$total_pledge_amount|crmMoney:$currency} |
50 | </td> |
51 | </tr> |
52 | <tr> |
53 | <th {$headerStyle}> |
54 | {ts}Payment Schedule{/ts} |
55 | </th> |
56 | </tr> |
57 | <tr> |
58 | <td colspan="2" {$valueStyle}> |
59 | <p>{ts 1=$scheduled_amount|crmMoney:$currency 2=$frequency_interval 3=$frequency_unit 4=$installments}%1 every %2 %3 for %4 installments.{/ts}</p> |
60 | |
61 | {if $frequency_day} |
62 | <p>{ts 1=$frequency_day 2=$frequency_unit}Payments are due on day %1 of the %2.{/ts}</p> |
63 | {/if} |
64 | </td> |
65 | </tr> |
66 | |
67 | {if $payments} |
68 | {assign var="count" value="1"} |
69 | {foreach from=$payments item=payment} |
70 | <tr> |
71 | <td {$labelStyle}> |
72 | {ts 1=$count}Payment %1{/ts} |
73 | </td> |
74 | <td {$valueStyle}> |
75 | {$payment.amount|crmMoney:$currency} {if $payment.status eq 1}{ts}paid{/ts} {$payment.receive_date|truncate:10:''|crmDate}{else}{ts}due{/ts} {$payment.due_date|truncate:10:''|crmDate}{/if} |
76 | </td> |
77 | </tr> |
78 | {assign var="count" value=`$count+1`} |
79 | {/foreach} |
80 | {/if} |
81 | |
82 | <tr> |
83 | <td colspan="2" {$valueStyle}> |
84 | <p>{ts 1=$domain.phone 2=$domain.email}Please contact us at %1 or send email to %2 if you have questions |
85 | or need to modify your payment schedule.{/ts}</p> |
86 | </td> |
87 | </tr> |
88 | |
89 | {if $customGroup} |
90 | {foreach from=$customGroup item=value key=customName} |
91 | <tr> |
92 | <th {$headerStyle}> |
93 | {$customName} |
94 | </th> |
95 | </tr> |
96 | {foreach from=$value item=v key=n} |
97 | <tr> |
98 | <td {$labelStyle}> |
99 | {$n} |
100 | </td> |
101 | <td {$valueStyle}> |
102 | {$v} |
103 | </td> |
104 | </tr> |
105 | {/foreach} |
106 | {/foreach} |
107 | {/if} |
108 | |
109 | </table> |
110 | </td> |
111 | </tr> |
112 | |
113 | </table> |
114 | </center> |
115 | |
116 | </body> |
117 | </html> |