{ts}PAYMENT ADVICE{/ts}
{ts}To:{/ts}
{$domain_organization}
{$domain_street_address} {$domain_supplemental_address_1}
{$domain_supplemental_address_2} {$domain_state}
{$domain_city} {$domain_postal_code}
{$domain_country}
{$domain_email}
{$domain_phone}
{$notes}
|
{ts}Customer:{/ts} |
{$display_name} |
{ts}Invoice Number:{/ts} |
{$invoice_number} |
|
{if $is_pay_later == 1}
{ts}Amount Due:{/ts} |
{$amount|crmMoney:$currency} |
{else}
{ts}Amount Due:{/ts} |
{$amountDue|crmMoney:$currency} |
{/if}
{ts}Due Date:{/ts} |
{$dueDate} |
|
{/if}
{if $contribution_status_id == $refundedStatusId || $contribution_status_id == $cancelledStatusId}
{if $config->empoweredBy}
|
{/if}
{ts}CREDIT NOTE{/ts} |
{ts}Date:{/ts} |
{$domain_organization} |
{if $organization_name}
{$display_name} ({$organization_name}) |
{else}
{$display_name} |
{/if}
{$invoice_date} |
{if $domain_street_address }{$domain_street_address}{/if}
{if $domain_supplemental_address_1 }{$domain_supplemental_address_1}{/if}
|
{$street_address} {$supplemental_address_1} |
{ts}Credit Note Number:{/ts} |
{if $domain_supplemental_address_2 }{$domain_supplemental_address_2}{/if}
{if $domain_state }{$domain_state}{/if}
|
{$supplemental_address_2} {$stateProvinceAbbreviation} |
{$creditnote_id} |
{if $domain_city}{$domain_city}{/if}
{if $domain_postal_code }{$domain_postal_code}{/if}
|
{$city} {$postal_code} |
{ts}Reference:{/ts} |
{if $domain_country}{$domain_country}{/if}
|
|
{$source} |
{if $domain_email}{$domain_email}{/if}
|
|
|
{if $domain_phone}{$domain_phone}{/if}
|
{* FIXME: style this table so that it looks like the text version (justification, etc.) *}
{ts}Description{/ts} |
{ts}Quantity{/ts} |
{ts}Unit Price{/ts} |
{$taxTerm} |
{ts 1=$defaultCurrency}Amount %1{/ts} |
{foreach from=$lineItem item=value key=priceset name=pricevalue}
{if $smarty.foreach.pricevalue.index eq 0}
|
{else}
|
{/if}
{if $value.html_type eq \'Text\'}
{$value.label}
{else}
{$value.field_title} - {$value.label}
{/if}
{if $value.description}
{$value.description|truncate:30:"..."}
{/if}
|
{$value.qty} |
{$value.unit_price|crmMoney:$currency} |
{if $value.tax_amount != \'\'}
{$value.tax_rate}% |
{else}
{ts 1=$taxTerm}No %1{/ts} |
{/if}
{$value.subTotal|crmMoney:$currency} |
{/foreach}
|
|
{ts}Sub Total{/ts} |
{$subTotal|crmMoney:$currency} |
{foreach from=$dataArray item=value key=priceset}
|
{if $priceset}
{ts 1=$taxTerm 2=$priceset}TOTAL %1 %2%{/ts} |
{$value|crmMoney:$currency} |
{elseif $priceset == 0}
{ts 1=$taxTerm}TOTAL NO %1{/ts} |
{$value|crmMoney:$currency} |
{/if}
{/foreach}
|
|
|
{ts 1=$defaultCurrency}TOTAL %1{/ts} |
{$amount|crmMoney:$currency} |
{if $is_pay_later == 0}
|
{ts}LESS Credit to invoice(s){/ts} |
{$amount|crmMoney:$currency} |
|
|
|
{ts}REMAINING CREDIT{/ts} |
{$amountDue|crmMoney:$currency} |
|
{/if}
|
|
|
|
|
{ts}CREDIT ADVICE{/ts}
{ts}Please do not pay on this advice. Deduct the amount of this Credit Note from your next payment to us{/ts}
|
|
{ts}Customer:{/ts} |
{$display_name} |
|
{ts}Credit Note#:{/ts} |
{$creditnote_id} |
|
|
{ts}Credit Amount:{/ts} |
{$amount|crmMoney:$currency} |
|
{/if}
', @tpl_ovid_contribution_invoice_receipt, 0, 1) ,
('Contributions - Recurring Start and End Notification', '{ts}Recurring Contribution Notification{/ts} - {contact.display_name}
', '{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}{$greeting},{/if}
{if $recur_txnType eq \'START\'}
{if $auto_renew_membership}
{ts}Thanks for your auto renew membership sign-up.{/ts}
{ts 1=$recur_frequency_interval 2=$recur_frequency_unit}This membership will be automatically renewed every %1 %2(s).{/ts}
{if $cancelSubscriptionUrl}
{ts 1=$cancelSubscriptionUrl}You can cancel the auto-renewal option by visiting this web page.{/ts}
{/if}
{if $updateSubscriptionBillingUrl}
{ts 1=$updateSubscriptionBillingUrl}You can update billing details for this automatically renewed membership by visiting this web page.{/ts}
{/if}
{else}
{ts}Thanks for your recurring contribution sign-up.{/ts}
{ts 1=$recur_frequency_interval 2=$recur_frequency_unit 3=$recur_installments}This recurring contribution will be automatically processed every %1 %2(s){/ts}{if $recur_installments } {ts 1=$recur_installments} for a total of %1 installment(s){/ts}{/if}.
{ts}Start Date{/ts}: {$recur_start_date|crmDate}
{if $cancelSubscriptionUrl}
{ts 1=$cancelSubscriptionUrl}You can cancel the recurring contribution option by visiting this web page.{/ts}
{/if}
{if $updateSubscriptionBillingUrl}
{ts 1=$updateSubscriptionBillingUrl}You can update billing details for this recurring contribution by visiting this web page.{/ts}
{/if}
{if $updateSubscriptionUrl}
{ts 1=$updateSubscriptionUrl}You can update recurring contribution amount or change the number of installments for this recurring contribution by visiting this web page.{/ts}
{/if}
{/if}
{elseif $recur_txnType eq \'END\'}
{if $auto_renew_membership}
{ts}Your auto renew membership sign-up has ended and your membership will not be automatically renewed.{/ts}
{else}
{ts}Your recurring contribution term has ended.{/ts}
{ts 1=$recur_installments}You have successfully completed %1 recurring contributions. Thank you.{/ts}
==================================================
{ts 1=$recur_installments}Interval of Subscription for %1 installment(s){/ts}
==================================================
{ts}Start Date{/ts}: {$recur_start_date|crmDate}
{ts}End Date{/ts}: {$recur_end_date|crmDate}
{/if}
{/if}
', '
{capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture}
{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture}
{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture}
{assign var="greeting" value="{contact.email_greeting}"}{if $greeting} {$greeting}, {/if}
|
|
{if $recur_txnType eq \'START\'}
{if $auto_renew_membership}
{ts}Thanks for your auto renew membership sign-up.{/ts}
{ts 1=$recur_frequency_interval 2=$recur_frequency_unit}This membership will be automatically renewed every %1 %2(s). {/ts}
|
{if $cancelSubscriptionUrl}
{ts 1=$cancelSubscriptionUrl}You can cancel the auto-renewal option by visiting this web page.{/ts}
|
{/if}
{if $updateSubscriptionBillingUrl}
{ts 1=$updateSubscriptionBillingUrl}You can update billing details for this automatically renewed membership by visiting this web page.{/ts}
|
{/if}
{else}
{ts}Thanks for your recurring contribution sign-up.{/ts}
{ts 1=$recur_frequency_interval 2=$recur_frequency_unit}This recurring contribution will be automatically processed every %1 %2(s){/ts}{if $recur_installments }{ts 1=$recur_installments} for a total of %1 installment(s){/ts}{/if}.
{ts}Start Date{/ts}: {$recur_start_date|crmDate}
|
{if $cancelSubscriptionUrl}
{ts 1=$cancelSubscriptionUrl} You can cancel the recurring contribution option by visiting this web page.{/ts}
|
{/if}
{if $updateSubscriptionBillingUrl}
{ts 1=$updateSubscriptionBillingUrl}You can update billing details for this recurring contribution by visiting this web page.{/ts}
|
{/if}
{if $updateSubscriptionUrl}
{ts 1=$updateSubscriptionUrl}You can update recurring contribution amount or change the number of installments details for this recurring contribution by visiting this web page.{/ts}
|
{/if}
{/if}
{elseif $recur_txnType eq \'END\'}
{if $auto_renew_membership}
{ts}Your auto renew membership sign-up has ended and your membership will not be automatically renewed.{/ts}
|
{else}
{ts}Your recurring contribution term has ended.{/ts}
{ts 1=$recur_installments}You have successfully completed %1 recurring contributions. Thank you.{/ts}
|
{ts 1=$recur_installments}Interval of Subscription for %1 installment(s){/ts}
|
{ts}Start Date{/ts}
|
{$recur_start_date|crmDate}
|
{ts}End Date{/ts}
|
{$recur_end_date|crmDate}
|
|
{/if}
{/if}
', @tpl_ovid_contribution_recurring_notify, 1, 0),
('Contributions - Recurring Start and End Notification', '{ts}Recurring Contribution Notification{/ts} - {contact.display_name}
', '{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}{$greeting},{/if}
{if $recur_txnType eq \'START\'}
{if $auto_renew_membership}
{ts}Thanks for your auto renew membership sign-up.{/ts}
{ts 1=$recur_frequency_interval 2=$recur_frequency_unit}This membership will be automatically renewed every %1 %2(s).{/ts}
{if $cancelSubscriptionUrl}
{ts 1=$cancelSubscriptionUrl}You can cancel the auto-renewal option by visiting this web page.{/ts}
{/if}
{if $updateSubscriptionBillingUrl}
{ts 1=$updateSubscriptionBillingUrl}You can update billing details for this automatically renewed membership by visiting this web page.{/ts}
{/if}
{else}
{ts}Thanks for your recurring contribution sign-up.{/ts}
{ts 1=$recur_frequency_interval 2=$recur_frequency_unit 3=$recur_installments}This recurring contribution will be automatically processed every %1 %2(s){/ts}{if $recur_installments } {ts 1=$recur_installments} for a total of %1 installment(s){/ts}{/if}.
{ts}Start Date{/ts}: {$recur_start_date|crmDate}
{if $cancelSubscriptionUrl}
{ts 1=$cancelSubscriptionUrl}You can cancel the recurring contribution option by visiting this web page.{/ts}
{/if}
{if $updateSubscriptionBillingUrl}
{ts 1=$updateSubscriptionBillingUrl}You can update billing details for this recurring contribution by visiting this web page.{/ts}
{/if}
{if $updateSubscriptionUrl}
{ts 1=$updateSubscriptionUrl}You can update recurring contribution amount or change the number of installments for this recurring contribution by visiting this web page.{/ts}
{/if}
{/if}
{elseif $recur_txnType eq \'END\'}
{if $auto_renew_membership}
{ts}Your auto renew membership sign-up has ended and your membership will not be automatically renewed.{/ts}
{else}
{ts}Your recurring contribution term has ended.{/ts}
{ts 1=$recur_installments}You have successfully completed %1 recurring contributions. Thank you.{/ts}
==================================================
{ts 1=$recur_installments}Interval of Subscription for %1 installment(s){/ts}
==================================================
{ts}Start Date{/ts}: {$recur_start_date|crmDate}
{ts}End Date{/ts}: {$recur_end_date|crmDate}
{/if}
{/if}
', '
{capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture}
{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture}
{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture}
{assign var="greeting" value="{contact.email_greeting}"}{if $greeting} {$greeting}, {/if}
|
|
{if $recur_txnType eq \'START\'}
{if $auto_renew_membership}
{ts}Thanks for your auto renew membership sign-up.{/ts}
{ts 1=$recur_frequency_interval 2=$recur_frequency_unit}This membership will be automatically renewed every %1 %2(s). {/ts}
|
{if $cancelSubscriptionUrl}
{ts 1=$cancelSubscriptionUrl}You can cancel the auto-renewal option by visiting this web page.{/ts}
|
{/if}
{if $updateSubscriptionBillingUrl}
{ts 1=$updateSubscriptionBillingUrl}You can update billing details for this automatically renewed membership by visiting this web page.{/ts}
|
{/if}
{else}
{ts}Thanks for your recurring contribution sign-up.{/ts}
{ts 1=$recur_frequency_interval 2=$recur_frequency_unit}This recurring contribution will be automatically processed every %1 %2(s){/ts}{if $recur_installments }{ts 1=$recur_installments} for a total of %1 installment(s){/ts}{/if}.
{ts}Start Date{/ts}: {$recur_start_date|crmDate}
|
{if $cancelSubscriptionUrl}
{ts 1=$cancelSubscriptionUrl} You can cancel the recurring contribution option by visiting this web page.{/ts}
|
{/if}
{if $updateSubscriptionBillingUrl}
{ts 1=$updateSubscriptionBillingUrl}You can update billing details for this recurring contribution by visiting this web page.{/ts}
|
{/if}
{if $updateSubscriptionUrl}
{ts 1=$updateSubscriptionUrl}You can update recurring contribution amount or change the number of installments details for this recurring contribution by visiting this web page.{/ts}
|
{/if}
{/if}
{elseif $recur_txnType eq \'END\'}
{if $auto_renew_membership}
{ts}Your auto renew membership sign-up has ended and your membership will not be automatically renewed.{/ts}
|
{else}
{ts}Your recurring contribution term has ended.{/ts}
{ts 1=$recur_installments}You have successfully completed %1 recurring contributions. Thank you.{/ts}
|
{ts 1=$recur_installments}Interval of Subscription for %1 installment(s){/ts}
|
{ts}Start Date{/ts}
|
{$recur_start_date|crmDate}
|
{ts}End Date{/ts}
|
{$recur_end_date|crmDate}
|
|
{/if}
{/if}
', @tpl_ovid_contribution_recurring_notify, 0, 1) ,
('Contributions - Recurring Cancellation Notification', '{ts}Recurring Contribution Cancellation Notification{/ts} - {contact.display_name}
', '{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}{$greeting},{/if}
{ts 1=$amount 2=$recur_frequency_interval 3=$recur_frequency_unit}Your recurring contribution of %1, every %2 %3 has been cancelled as requested.{/ts}
', '
{capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture}
{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture}
{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture}
{assign var="greeting" value="{contact.email_greeting}"}{if $greeting} {$greeting}, {/if}
{ts 1=$amount 2=$recur_frequency_interval 3=$recur_frequency_unit}Your recurring contribution of %1, every %2 %3 has been cancelled as requested.{/ts}
|
', @tpl_ovid_contribution_recurring_cancelled, 1, 0),
('Contributions - Recurring Cancellation Notification', '{ts}Recurring Contribution Cancellation Notification{/ts} - {contact.display_name}
', '{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}{$greeting},{/if}
{ts 1=$amount 2=$recur_frequency_interval 3=$recur_frequency_unit}Your recurring contribution of %1, every %2 %3 has been cancelled as requested.{/ts}
', '
{capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture}
{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture}
{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture}
{assign var="greeting" value="{contact.email_greeting}"}{if $greeting} {$greeting}, {/if}
{ts 1=$amount 2=$recur_frequency_interval 3=$recur_frequency_unit}Your recurring contribution of %1, every %2 %3 has been cancelled as requested.{/ts}
|
', @tpl_ovid_contribution_recurring_cancelled, 0, 1) ,
('Contributions - Recurring Billing Updates', '{ts}Recurring Contribution Billing Updates{/ts} - {contact.display_name}
', '{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}{$greeting},{/if}
{ts 1=$amount 2=$recur_frequency_interval 3=$recur_frequency_unit}Billing details for your recurring contribution of %1, every %2 %3 have been updated.{/ts}
===========================================================
{ts}Billing Name and Address{/ts}
===========================================================
{$billingName}
{$address}
{$email}
===========================================================
{ts}Credit Card Information{/ts}
===========================================================
{$credit_card_type}
{$credit_card_number}
{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}
{ts 1=$receipt_from_email}If you have questions please contact us at %1{/ts}
', '
{capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture}
{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture}
{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture}
{assign var="greeting" value="{contact.email_greeting}"}{if $greeting} {$greeting}, {/if}
{ts 1=$amount 2=$recur_frequency_interval 3=$recur_frequency_unit}Billing details for your recurring contribution of %1, every %2 %3 have been updated.{/ts}
|
{ts}Billing Name and Address{/ts}
|
{$billingName}
{$address|nl2br}
{$email}
|
{ts}Credit Card Information{/ts}
|
{$credit_card_type}
{$credit_card_number}
{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}
|
{ts 1=$receipt_from_email}If you have questions please contact us at %1{/ts}
|
', @tpl_ovid_contribution_recurring_billing, 1, 0),
('Contributions - Recurring Billing Updates', '{ts}Recurring Contribution Billing Updates{/ts} - {contact.display_name}
', '{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}{$greeting},{/if}
{ts 1=$amount 2=$recur_frequency_interval 3=$recur_frequency_unit}Billing details for your recurring contribution of %1, every %2 %3 have been updated.{/ts}
===========================================================
{ts}Billing Name and Address{/ts}
===========================================================
{$billingName}
{$address}
{$email}
===========================================================
{ts}Credit Card Information{/ts}
===========================================================
{$credit_card_type}
{$credit_card_number}
{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}
{ts 1=$receipt_from_email}If you have questions please contact us at %1{/ts}
', '
{capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture}
{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture}
{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture}
{assign var="greeting" value="{contact.email_greeting}"}{if $greeting} {$greeting}, {/if}
{ts 1=$amount 2=$recur_frequency_interval 3=$recur_frequency_unit}Billing details for your recurring contribution of %1, every %2 %3 have been updated.{/ts}
|
{ts}Billing Name and Address{/ts}
|
{$billingName}
{$address|nl2br}
{$email}
|
{ts}Credit Card Information{/ts}
|
{$credit_card_type}
{$credit_card_number}
{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}
|
{ts 1=$receipt_from_email}If you have questions please contact us at %1{/ts}
|
', @tpl_ovid_contribution_recurring_billing, 0, 1) ,
('Contributions - Recurring Updates', '{ts}Recurring Contribution Update Notification{/ts} - {contact.display_name}
', '{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}{$greeting},{/if}
{ts}Your recurring contribution has been updated as requested:{/ts}
{ts 1=$amount 2=$recur_frequency_interval 3=$recur_frequency_unit}Recurring contribution is for %1, every %2 %3(s){/ts}
{if $installments}{ts 1=$installments} for %1 installments.{/ts}{/if}
{ts 1=$receipt_from_email}If you have questions please contact us at %1.{/ts}
', '
{capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture}
{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture}
{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture}
{assign var="greeting" value="{contact.email_greeting}"}{if $greeting} {$greeting}, {/if}
{ts}Your recurring contribution has been updated as requested:{/ts}
{ts 1=$amount 2=$recur_frequency_interval 3=$recur_frequency_unit}Recurring contribution is for %1, every %2 %3(s){/ts}{if $installments}{ts 1=$installments} for %1 installments{/ts}{/if}.
{ts 1=$receipt_from_email}If you have questions please contact us at %1.{/ts}
|
', @tpl_ovid_contribution_recurring_edit, 1, 0),
('Contributions - Recurring Updates', '{ts}Recurring Contribution Update Notification{/ts} - {contact.display_name}
', '{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}{$greeting},{/if}
{ts}Your recurring contribution has been updated as requested:{/ts}
{ts 1=$amount 2=$recur_frequency_interval 3=$recur_frequency_unit}Recurring contribution is for %1, every %2 %3(s){/ts}
{if $installments}{ts 1=$installments} for %1 installments.{/ts}{/if}
{ts 1=$receipt_from_email}If you have questions please contact us at %1.{/ts}
', '
{capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture}
{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture}
{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture}
{assign var="greeting" value="{contact.email_greeting}"}{if $greeting} {$greeting}, {/if}
{ts}Your recurring contribution has been updated as requested:{/ts}
{ts 1=$amount 2=$recur_frequency_interval 3=$recur_frequency_unit}Recurring contribution is for %1, every %2 %3(s){/ts}{if $installments}{ts 1=$installments} for %1 installments{/ts}{/if}.
{ts 1=$receipt_from_email}If you have questions please contact us at %1.{/ts}
|
', @tpl_ovid_contribution_recurring_edit, 0, 1) ,
('Personal Campaign Pages - Admin Notification', '{ts}Personal Campaign Page Notification{/ts} - {contact.display_name}
', '===========================================================
{ts}Personal Campaign Page Notification{/ts}
===========================================================
{ts}Action{/ts}: {if $mode EQ \'Update\'}{ts}Updated personal campaign page{/ts}{else}{ts}New personal campaign page{/ts}{/if}
{ts}Personal Campaign Page Title{/ts}: {$pcpTitle}
{ts}Current Status{/ts}: {$pcpStatus}
{capture assign=pcpURL}{crmURL p="civicrm/pcp/info" q="reset=1&id=`$pcpId`" h=0 a=1}{/capture}
{ts}View Page{/ts}:
>> {$pcpURL}
{ts}Supporter{/ts}: {$supporterName}
>> {$supporterUrl}
{ts}Linked to Contribution Page{/ts}: {$contribPageTitle}
>> {$contribPageUrl}
{ts}Manage Personal Campaign Pages{/ts}:
>> {$managePCPUrl}
', '
{capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture}
{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture}
{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture}
{capture assign=pcpURL }{crmURL p="civicrm/pcp/info" q="reset=1&id=`$pcpId`" h=0 a=1}{/capture}
', @tpl_ovid_pcp_notify, 1, 0),
('Personal Campaign Pages - Admin Notification', '{ts}Personal Campaign Page Notification{/ts} - {contact.display_name}
', '===========================================================
{ts}Personal Campaign Page Notification{/ts}
===========================================================
{ts}Action{/ts}: {if $mode EQ \'Update\'}{ts}Updated personal campaign page{/ts}{else}{ts}New personal campaign page{/ts}{/if}
{ts}Personal Campaign Page Title{/ts}: {$pcpTitle}
{ts}Current Status{/ts}: {$pcpStatus}
{capture assign=pcpURL}{crmURL p="civicrm/pcp/info" q="reset=1&id=`$pcpId`" h=0 a=1}{/capture}
{ts}View Page{/ts}:
>> {$pcpURL}
{ts}Supporter{/ts}: {$supporterName}
>> {$supporterUrl}
{ts}Linked to Contribution Page{/ts}: {$contribPageTitle}
>> {$contribPageUrl}
{ts}Manage Personal Campaign Pages{/ts}:
>> {$managePCPUrl}
', '
{capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture}
{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture}
{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture}
{capture assign=pcpURL }{crmURL p="civicrm/pcp/info" q="reset=1&id=`$pcpId`" h=0 a=1}{/capture}
', @tpl_ovid_pcp_notify, 0, 1) ,
('Personal Campaign Pages - Supporter Status Change Notification', '{ts 1=$contribPageTitle}Your Personal Campaign Page for %1{/ts} - {contact.display_name}
', '{if $pcpStatus eq \'Approved\'}
============================
{ts}Your Personal Campaign Page{/ts}
============================
{ts}Your personal campaign page has been approved and is now live.{/ts}
{ts}Whenever you want to preview, update or promote your page{/ts}:
1. {ts}Login to your account at{/ts}:
{$loginUrl}
2. {ts}Click or paste this link into your browser to go to your page{/ts}:
{$pcpInfoURL}
{ts}When you view your campaign page WHILE LOGGED IN, the page includes links to edit your page, tell friends, and update your contact info.{/ts}
{if $isTellFriendEnabled}
{ts}After logging in, you can use this form to promote your fundraising page{/ts}:
{$pcpTellFriendURL}
{/if}
{if $pcpNotifyEmailAddress}
{ts}Questions? Send email to{/ts}:
{$pcpNotifyEmailAddress}
{/if}
{* Rejected message *}
{elseif $pcpStatus eq \'Not Approved\'}
============================
{ts}Your Personal Campaign Page{/ts}
============================
{ts}Your personal campaign page has been reviewed. There were some issues with the content which prevented us from approving the page. We are sorry for any inconvenience.{/ts}
{if $pcpNotifyEmailAddress}
{ts}Please contact our site administrator for more information{/ts}:
{$pcpNotifyEmailAddress}
{/if}
{/if}
', '
{ts}Your Personal Campaign Page{/ts}
{if $pcpStatus eq \'Approved\'}
{ts}Your personal campaign page has been approved and is now live.{/ts}
{ts}Whenever you want to preview, update or promote your page{/ts}:
- {ts}Login to your account{/ts}
- {ts}Go to your page{/ts}
{ts}When you view your campaign page WHILE LOGGED IN, the page includes links to edit your page, tell friends, and update your contact info.{/ts}
{if $isTellFriendEnabled}
{ts}After logging in, you can use this form to promote your fundraising page{/ts}
{/if}
{if $pcpNotifyEmailAddress}
{ts}Questions? Send email to{/ts}: {$pcpNotifyEmailAddress}
{/if}
{elseif $pcpStatus eq \'Not Approved\'}
{ts}Your personal campaign page has been reviewed. There were some issues with the content which prevented us from approving the page. We are sorry for any inconvenience.{/ts}
{if $pcpNotifyEmailAddress}
{ts}Please contact our site administrator for more information{/ts}: {$pcpNotifyEmailAddress}
{/if}
{/if}
|
', @tpl_ovid_pcp_status_change, 1, 0),
('Personal Campaign Pages - Supporter Status Change Notification', '{ts 1=$contribPageTitle}Your Personal Campaign Page for %1{/ts} - {contact.display_name}
', '{if $pcpStatus eq \'Approved\'}
============================
{ts}Your Personal Campaign Page{/ts}
============================
{ts}Your personal campaign page has been approved and is now live.{/ts}
{ts}Whenever you want to preview, update or promote your page{/ts}:
1. {ts}Login to your account at{/ts}:
{$loginUrl}
2. {ts}Click or paste this link into your browser to go to your page{/ts}:
{$pcpInfoURL}
{ts}When you view your campaign page WHILE LOGGED IN, the page includes links to edit your page, tell friends, and update your contact info.{/ts}
{if $isTellFriendEnabled}
{ts}After logging in, you can use this form to promote your fundraising page{/ts}:
{$pcpTellFriendURL}
{/if}
{if $pcpNotifyEmailAddress}
{ts}Questions? Send email to{/ts}:
{$pcpNotifyEmailAddress}
{/if}
{* Rejected message *}
{elseif $pcpStatus eq \'Not Approved\'}
============================
{ts}Your Personal Campaign Page{/ts}
============================
{ts}Your personal campaign page has been reviewed. There were some issues with the content which prevented us from approving the page. We are sorry for any inconvenience.{/ts}
{if $pcpNotifyEmailAddress}
{ts}Please contact our site administrator for more information{/ts}:
{$pcpNotifyEmailAddress}
{/if}
{/if}
', '
{ts}Your Personal Campaign Page{/ts}
{if $pcpStatus eq \'Approved\'}
{ts}Your personal campaign page has been approved and is now live.{/ts}
{ts}Whenever you want to preview, update or promote your page{/ts}:
- {ts}Login to your account{/ts}
- {ts}Go to your page{/ts}
{ts}When you view your campaign page WHILE LOGGED IN, the page includes links to edit your page, tell friends, and update your contact info.{/ts}
{if $isTellFriendEnabled}
{ts}After logging in, you can use this form to promote your fundraising page{/ts}
{/if}
{if $pcpNotifyEmailAddress}
{ts}Questions? Send email to{/ts}: {$pcpNotifyEmailAddress}
{/if}
{elseif $pcpStatus eq \'Not Approved\'}
{ts}Your personal campaign page has been reviewed. There were some issues with the content which prevented us from approving the page. We are sorry for any inconvenience.{/ts}
{if $pcpNotifyEmailAddress}
{ts}Please contact our site administrator for more information{/ts}: {$pcpNotifyEmailAddress}
{/if}
{/if}
|
', @tpl_ovid_pcp_status_change, 0, 1) ,
('Personal Campaign Pages - Supporter Welcome', '{ts 1=$contribPageTitle}Your Personal Campaign Page for %1{/ts} - {contact.display_name}
', '{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}{$greeting},{/if}
{ts 1="$contribPageTitle"}Thanks for creating a personal campaign page in support of %1.{/ts}
{if $pcpStatus eq \'Approved\'}
====================
{ts}Promoting Your Page{/ts}
====================
{if $isTellFriendEnabled}
{ts}You can begin your fundraising efforts using our "Tell a Friend" form{/ts}:
1. {ts}Login to your account at{/ts}:
{$loginUrl}
2. {ts}Click or paste this link into your browser and follow the prompts{/ts}:
{$pcpTellFriendURL}
{else}
{ts}Send email to family, friends and colleagues with a personal message about this campaign.{/ts}
{ts}Include this link to your fundraising page in your emails{/ts}:
{$pcpInfoURL}
{/if}
===================
{ts}Managing Your Page{/ts}
===================
{ts}Whenever you want to preview, update or promote your page{/ts}:
1. {ts}Login to your account at{/ts}:
{$loginUrl}
2. {ts}Click or paste this link into your browser to go to your page{/ts}:
{$pcpInfoURL}
{ts}When you view your campaign page WHILE LOGGED IN, the page includes links to edit your page, tell friends, and update your contact info.{/ts}
{elseif $pcpStatus EQ \'Waiting Review\'}
{ts}Your page requires administrator review before you can begin your fundraising efforts.{/ts}
{ts}A notification email has been sent to the site administrator, and you will receive another notification from them as soon as the review process is complete.{/ts}
{ts}You can still preview your page prior to approval{/ts}:
1. {ts}Login to your account at{/ts}:
{$loginUrl}
2. {ts}Click or paste this link into your browser{/ts}:
{$pcpInfoURL}
{/if}
{if $pcpNotifyEmailAddress}
{ts}Questions? Send email to{/ts}:
{$pcpNotifyEmailAddress}
{/if}
', '
{capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture}
{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture}
{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture}
{assign var="greeting" value="{contact.email_greeting}"}{if $greeting} {$greeting}, {/if}
{ts 1="$contribPageTitle"}Thanks for creating a personal campaign page in support of %1.{/ts}
|
{if $pcpStatus eq \'Approved\'}
{ts}Promoting Your Page{/ts}
|
{if $isTellFriendEnabled}
{ts}You can begin your fundraising efforts using our "Tell a Friend" form{/ts}:
- {ts}Login to your account{/ts}
- {ts}Click this link and follow the prompts{/ts}
{else}
{ts}Send email to family, friends and colleagues with a personal message about this campaign.{/ts} {ts}Include this link to your fundraising page in your emails{/ts}: {$pcpInfoURL}
{/if}
|
{ts}Managing Your Page{/ts}
|
{ts}Whenever you want to preview, update or promote your page{/ts}:
- {ts}Login to your account{/ts}
- {ts}Go to your page{/ts}
{ts}When you view your campaign page WHILE LOGGED IN, the page includes links to edit your page, tell friends, and update your contact info.{/ts}
|
|
{elseif $pcpStatus EQ \'Waiting Review\'}
{ts}Your page requires administrator review before you can begin your fundraising efforts.{/ts}
{ts}A notification email has been sent to the site administrator, and you will receive another notification from them as soon as the review process is complete.{/ts}
{ts}You can still preview your page prior to approval{/ts}:
- {ts}Login to your account{/ts}
- {ts}Click this link{/ts}
|
{/if}
{if $pcpNotifyEmailAddress}
{ts}Questions? Send email to{/ts}: {$pcpNotifyEmailAddress}
|
{/if}
', @tpl_ovid_pcp_supporter_notify, 1, 0),
('Personal Campaign Pages - Supporter Welcome', '{ts 1=$contribPageTitle}Your Personal Campaign Page for %1{/ts} - {contact.display_name}
', '{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}{$greeting},{/if}
{ts 1="$contribPageTitle"}Thanks for creating a personal campaign page in support of %1.{/ts}
{if $pcpStatus eq \'Approved\'}
====================
{ts}Promoting Your Page{/ts}
====================
{if $isTellFriendEnabled}
{ts}You can begin your fundraising efforts using our "Tell a Friend" form{/ts}:
1. {ts}Login to your account at{/ts}:
{$loginUrl}
2. {ts}Click or paste this link into your browser and follow the prompts{/ts}:
{$pcpTellFriendURL}
{else}
{ts}Send email to family, friends and colleagues with a personal message about this campaign.{/ts}
{ts}Include this link to your fundraising page in your emails{/ts}:
{$pcpInfoURL}
{/if}
===================
{ts}Managing Your Page{/ts}
===================
{ts}Whenever you want to preview, update or promote your page{/ts}:
1. {ts}Login to your account at{/ts}:
{$loginUrl}
2. {ts}Click or paste this link into your browser to go to your page{/ts}:
{$pcpInfoURL}
{ts}When you view your campaign page WHILE LOGGED IN, the page includes links to edit your page, tell friends, and update your contact info.{/ts}
{elseif $pcpStatus EQ \'Waiting Review\'}
{ts}Your page requires administrator review before you can begin your fundraising efforts.{/ts}
{ts}A notification email has been sent to the site administrator, and you will receive another notification from them as soon as the review process is complete.{/ts}
{ts}You can still preview your page prior to approval{/ts}:
1. {ts}Login to your account at{/ts}:
{$loginUrl}
2. {ts}Click or paste this link into your browser{/ts}:
{$pcpInfoURL}
{/if}
{if $pcpNotifyEmailAddress}
{ts}Questions? Send email to{/ts}:
{$pcpNotifyEmailAddress}
{/if}
', '
{capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture}
{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture}
{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture}
{assign var="greeting" value="{contact.email_greeting}"}{if $greeting} {$greeting}, {/if}
{ts 1="$contribPageTitle"}Thanks for creating a personal campaign page in support of %1.{/ts}
|
{if $pcpStatus eq \'Approved\'}
{ts}Promoting Your Page{/ts}
|
{if $isTellFriendEnabled}
{ts}You can begin your fundraising efforts using our "Tell a Friend" form{/ts}:
- {ts}Login to your account{/ts}
- {ts}Click this link and follow the prompts{/ts}
{else}
{ts}Send email to family, friends and colleagues with a personal message about this campaign.{/ts} {ts}Include this link to your fundraising page in your emails{/ts}: {$pcpInfoURL}
{/if}
|
{ts}Managing Your Page{/ts}
|
{ts}Whenever you want to preview, update or promote your page{/ts}:
- {ts}Login to your account{/ts}
- {ts}Go to your page{/ts}
{ts}When you view your campaign page WHILE LOGGED IN, the page includes links to edit your page, tell friends, and update your contact info.{/ts}
|
|
{elseif $pcpStatus EQ \'Waiting Review\'}
{ts}Your page requires administrator review before you can begin your fundraising efforts.{/ts}
{ts}A notification email has been sent to the site administrator, and you will receive another notification from them as soon as the review process is complete.{/ts}
{ts}You can still preview your page prior to approval{/ts}:
- {ts}Login to your account{/ts}
- {ts}Click this link{/ts}
|
{/if}
{if $pcpNotifyEmailAddress}
{ts}Questions? Send email to{/ts}: {$pcpNotifyEmailAddress}
|
{/if}
', @tpl_ovid_pcp_supporter_notify, 0, 1) ,
('Personal Campaign Pages - Owner Notification', '{ts}Someone has just donated to your personal campaign page{/ts} - {contact.display_name}
', '===========================================================
{ts}Personal Campaign Page Owner Notification{/ts}
===========================================================
{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}{$greeting},{/if}
{ts}You have received a donation at your personal page{/ts}: {$page_title}
>> {$pcpInfoURL}
{ts}Your fundraising total has been updated.{/ts}
{ts}The donor\'s information is listed below. You can choose to contact them and convey your thanks if you wish.{/ts}
{if $is_honor_roll_enabled}
{ts}The donor\'s name has been added to your honor roll unless they asked not to be included.{/ts}
{/if}
{ts}Received{/ts}: {$receive_date|crmDate}
{ts}Amount{/ts}: {$total_amount|crmMoney:$currency}
{ts}Name{/ts}: {$donors_display_name}
{ts}Email{/ts}: {$donors_email}
', '
{capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture}
{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture}
{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture}
{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}{$greeting}, {/if}
{ts}You have received a donation at your personal page{/ts}: {$page_title}
{ts}Your fundraising total has been updated.{/ts}
{ts}The donor\'s information is listed below. You can choose to contact them and convey your thanks if you wish.{/ts}
{if $is_honor_roll_enabled}
{ts}The donor\'s name has been added to your honor roll unless they asked not to be included.{/ts}
{/if}
{ts}Received{/ts}: | {$receive_date|crmDate} |
{ts}Amount{/ts}: | {$total_amount|crmMoney:$currency} |
{ts}Name{/ts}: | {$donors_display_name} |
{ts}Email{/ts}: | {$donors_email} |
', @tpl_ovid_pcp_owner_notify, 1, 0),
('Personal Campaign Pages - Owner Notification', '{ts}Someone has just donated to your personal campaign page{/ts} - {contact.display_name}
', '===========================================================
{ts}Personal Campaign Page Owner Notification{/ts}
===========================================================
{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}{$greeting},{/if}
{ts}You have received a donation at your personal page{/ts}: {$page_title}
>> {$pcpInfoURL}
{ts}Your fundraising total has been updated.{/ts}
{ts}The donor\'s information is listed below. You can choose to contact them and convey your thanks if you wish.{/ts}
{if $is_honor_roll_enabled}
{ts}The donor\'s name has been added to your honor roll unless they asked not to be included.{/ts}
{/if}
{ts}Received{/ts}: {$receive_date|crmDate}
{ts}Amount{/ts}: {$total_amount|crmMoney:$currency}
{ts}Name{/ts}: {$donors_display_name}
{ts}Email{/ts}: {$donors_email}
', '
{capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture}
{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture}
{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture}
{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}{$greeting}, {/if}
{ts}You have received a donation at your personal page{/ts}: {$page_title}
{ts}Your fundraising total has been updated.{/ts}
{ts}The donor\'s information is listed below. You can choose to contact them and convey your thanks if you wish.{/ts}
{if $is_honor_roll_enabled}
{ts}The donor\'s name has been added to your honor roll unless they asked not to be included.{/ts}
{/if}
{ts}Received{/ts}: | {$receive_date|crmDate} |
{ts}Amount{/ts}: | {$total_amount|crmMoney:$currency} |
{ts}Name{/ts}: | {$donors_display_name} |
{ts}Email{/ts}: | {$donors_email} |
', @tpl_ovid_pcp_owner_notify, 0, 1) ,
('Additional Payment Receipt or Refund Notification', '{if $isRefund}{ts}Refund Notification{/ts}{else}{ts}Payment Receipt{/ts}{/if}{if $component eq \'event\'} - {$event.title}{/if} - {contact.display_name}
', '{if $emailGreeting}{$emailGreeting},
{/if}
{if $isRefund}
{ts}A refund has been issued based on changes in your registration selections.{/ts}
{else}
{ts}Below you will find a receipt for this payment.{/ts}
{/if}
{if $paymentsComplete}
{ts}Thank you for completing this payment.{/ts}
{/if}
{if $isRefund}
===============================================================================
{ts}Refund Details{/ts}
===============================================================================
{ts}This Refund Amount{/ts}: {$refundAmount|crmMoney}
------------------------------------------------------------------------------------
{else}
===============================================================================
{ts}Payment Details{/ts}
===============================================================================
{ts}This Payment Amount{/ts}: {$paymentAmount|crmMoney}
------------------------------------------------------------------------------------
{/if}
{if $receive_date}
{ts}Transaction Date{/ts}: {$receive_date|crmDate}
{/if}
{if $trxn_id}
{ts}Transaction #{/ts}: {$trxn_id}
{/if}
{if $paidBy}
{ts}Paid By{/ts}: {$paidBy}
{/if}
{if $checkNumber}
{ts}Check Number{/ts}: {$checkNumber}
{/if}
===============================================================================
{ts}Contribution Details{/ts}
===============================================================================
{ts}Total Fee{/ts}: {$totalAmount|crmMoney}
{ts}Total Paid{/ts}: {$totalPaid|crmMoney}
{ts}Balance Owed{/ts}: {$amountOwed|crmMoney} {* This will be zero after final payment. *}
{if $billingName || $address}
===============================================================================
{ts}Billing Name and Address{/ts}
===============================================================================
{$billingName}
{$address}
{/if}
{if $credit_card_number}
===========================================================
{ts}Credit Card Information{/ts}
===============================================================================
{$credit_card_type}
{$credit_card_number}
{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}
{/if}
{if $component eq \'event\'}
===============================================================================
{ts}Event Information and Location{/ts}
===============================================================================
{$event.event_title}
{$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|date_format:"%Y%m%d" == $event.event_start_date|date_format:"%Y%m%d"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate}{/if}{/if}
{if $event.participant_role}
{ts}Participant Role{/ts}: {$event.participant_role}
{/if}
{if $isShowLocation}
{$location.address.1.display|strip_tags:false}
{/if}{*End of isShowLocation condition*}
{if $location.phone.1.phone || $location.email.1.email}
{ts}Event Contacts:{/ts}
{foreach from=$location.phone item=phone}
{if $phone.phone}
{if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}: {$phone.phone}{/if} {if $phone.phone_ext} {ts}ext.{/ts} {$phone.phone_ext}{/if}
{/foreach}
{foreach from=$location.email item=eventEmail}
{if $eventEmail.email}
{ts}Email{/ts}: {$eventEmail.email}{/if}{/foreach}
{/if}
{/if}
', '
{capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture}
{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture}
{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture}
{capture assign=emptyBlockStyle }style="padding: 10px; border-bottom: 1px solid #999;background-color: #f7f7f7;"{/capture}
{capture assign=emptyBlockValueStyle }style="padding: 10px; border-bottom: 1px solid #999;"{/capture}
{assign var="greeting" value="{contact.email_greeting}"}{if $greeting} {$greeting}, {/if}
{if $isRefund}
{ts}A refund has been issued based on changes in your registration selections.{/ts}
{else}
{ts}Below you will find a receipt for this payment.{/ts}
{if $paymentsComplete}
{ts}Thank you for completing this contribution.{/ts}
{/if}
{/if}
|
{if $isRefund}
{ts}Refund Details{/ts} |
{ts}This Refund Amount{/ts}
|
{$refundAmount|crmMoney}
|
{else}
{ts}Payment Details{/ts} |
{ts}This Payment Amount{/ts}
|
{$paymentAmount|crmMoney}
|
{/if}
{if $receive_date}
{ts}Transaction Date{/ts}
|
{$receive_date|crmDate}
|
{/if}
{if $trxn_id}
{ts}Transaction #{/ts}
|
{$trxn_id}
|
{/if}
{if $paidBy}
{ts}Paid By{/ts}
|
{$paidBy}
|
{/if}
{if $checkNumber}
{ts}Check Number{/ts}
|
{$checkNumber}
|
{/if}
{ts}Contribution Details{/ts} |
{ts}Total Fee{/ts}
|
{$totalAmount|crmMoney}
|
{ts}Total Paid{/ts}
|
{$totalPaid|crmMoney}
|
{ts}Balance Owed{/ts}
|
{$amountOwed|crmMoney}
| {* This will be zero after final payment. *}
|
{if $billingName || $address}
{ts}Billing Name and Address{/ts}
|
{$billingName}
{$address|nl2br}
|
{/if}
{if $credit_card_number}
{ts}Credit Card Information{/ts}
|
{$credit_card_type}
{$credit_card_number}
{ts}Expires:{/ts} {$credit_card_exp_date|truncate:7:\'\'|crmDate}
|
{/if}
{if $component eq \'event\'}
{ts}Event Information and Location{/ts}
|
{$event.event_title}
{$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|date_format:"%Y%m%d" == $event.event_start_date|date_format:"%Y%m%d"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate}{/if}{/if}
|
{if $event.participant_role}
{ts}Participant Role{/ts}
|
{$event.participant_role}
|
{/if}
{if $isShowLocation}
{$location.address.1.display|nl2br}
|
{/if}
{if $location.phone.1.phone || $location.email.1.email}
{ts}Event Contacts:{/ts}
|
{foreach from=$location.phone item=phone}
{if $phone.phone}
{if $phone.phone_type}
{$phone.phone_type_display}
{else}
{ts}Phone{/ts}
{/if}
|
{$phone.phone} {if $phone.phone_ext} {ts}ext.{/ts} {$phone.phone_ext}{/if}
|
{/if}
{/foreach}
{foreach from=$location.email item=eventEmail}
{if $eventEmail.email}
{ts}Email{/ts}
|
{$eventEmail.email}
|
{/if}
{/foreach}
{/if} {*phone block close*}
{/if}
|
', @tpl_ovid_payment_or_refund_notification, 1, 0),
('Additional Payment Receipt or Refund Notification', '{if $isRefund}{ts}Refund Notification{/ts}{else}{ts}Payment Receipt{/ts}{/if}{if $component eq \'event\'} - {$event.title}{/if} - {contact.display_name}
', '{if $emailGreeting}{$emailGreeting},
{/if}
{if $isRefund}
{ts}A refund has been issued based on changes in your registration selections.{/ts}
{else}
{ts}Below you will find a receipt for this payment.{/ts}
{/if}
{if $paymentsComplete}
{ts}Thank you for completing this payment.{/ts}
{/if}
{if $isRefund}
===============================================================================
{ts}Refund Details{/ts}
===============================================================================
{ts}This Refund Amount{/ts}: {$refundAmount|crmMoney}
------------------------------------------------------------------------------------
{else}
===============================================================================
{ts}Payment Details{/ts}
===============================================================================
{ts}This Payment Amount{/ts}: {$paymentAmount|crmMoney}
------------------------------------------------------------------------------------
{/if}
{if $receive_date}
{ts}Transaction Date{/ts}: {$receive_date|crmDate}
{/if}
{if $trxn_id}
{ts}Transaction #{/ts}: {$trxn_id}
{/if}
{if $paidBy}
{ts}Paid By{/ts}: {$paidBy}
{/if}
{if $checkNumber}
{ts}Check Number{/ts}: {$checkNumber}
{/if}
===============================================================================
{ts}Contribution Details{/ts}
===============================================================================
{ts}Total Fee{/ts}: {$totalAmount|crmMoney}
{ts}Total Paid{/ts}: {$totalPaid|crmMoney}
{ts}Balance Owed{/ts}: {$amountOwed|crmMoney} {* This will be zero after final payment. *}
{if $billingName || $address}
===============================================================================
{ts}Billing Name and Address{/ts}
===============================================================================
{$billingName}
{$address}
{/if}
{if $credit_card_number}
===========================================================
{ts}Credit Card Information{/ts}
===============================================================================
{$credit_card_type}
{$credit_card_number}
{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}
{/if}
{if $component eq \'event\'}
===============================================================================
{ts}Event Information and Location{/ts}
===============================================================================
{$event.event_title}
{$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|date_format:"%Y%m%d" == $event.event_start_date|date_format:"%Y%m%d"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate}{/if}{/if}
{if $event.participant_role}
{ts}Participant Role{/ts}: {$event.participant_role}
{/if}
{if $isShowLocation}
{$location.address.1.display|strip_tags:false}
{/if}{*End of isShowLocation condition*}
{if $location.phone.1.phone || $location.email.1.email}
{ts}Event Contacts:{/ts}
{foreach from=$location.phone item=phone}
{if $phone.phone}
{if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}: {$phone.phone}{/if} {if $phone.phone_ext} {ts}ext.{/ts} {$phone.phone_ext}{/if}
{/foreach}
{foreach from=$location.email item=eventEmail}
{if $eventEmail.email}
{ts}Email{/ts}: {$eventEmail.email}{/if}{/foreach}
{/if}
{/if}
', '
{capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture}
{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture}
{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture}
{capture assign=emptyBlockStyle }style="padding: 10px; border-bottom: 1px solid #999;background-color: #f7f7f7;"{/capture}
{capture assign=emptyBlockValueStyle }style="padding: 10px; border-bottom: 1px solid #999;"{/capture}
{assign var="greeting" value="{contact.email_greeting}"}{if $greeting} {$greeting}, {/if}
{if $isRefund}
{ts}A refund has been issued based on changes in your registration selections.{/ts}
{else}
{ts}Below you will find a receipt for this payment.{/ts}
{if $paymentsComplete}
{ts}Thank you for completing this contribution.{/ts}
{/if}
{/if}
|
{if $isRefund}
{ts}Refund Details{/ts} |
{ts}This Refund Amount{/ts}
|
{$refundAmount|crmMoney}
|
{else}
{ts}Payment Details{/ts} |
{ts}This Payment Amount{/ts}
|
{$paymentAmount|crmMoney}
|
{/if}
{if $receive_date}
{ts}Transaction Date{/ts}
|
{$receive_date|crmDate}
|
{/if}
{if $trxn_id}
{ts}Transaction #{/ts}
|
{$trxn_id}
|
{/if}
{if $paidBy}
{ts}Paid By{/ts}
|
{$paidBy}
|
{/if}
{if $checkNumber}
{ts}Check Number{/ts}
|
{$checkNumber}
|
{/if}
{ts}Contribution Details{/ts} |
{ts}Total Fee{/ts}
|
{$totalAmount|crmMoney}
|
{ts}Total Paid{/ts}
|
{$totalPaid|crmMoney}
|
{ts}Balance Owed{/ts}
|
{$amountOwed|crmMoney}
| {* This will be zero after final payment. *}
|
{if $billingName || $address}
{ts}Billing Name and Address{/ts}
|
{$billingName}
{$address|nl2br}
|
{/if}
{if $credit_card_number}
{ts}Credit Card Information{/ts}
|
{$credit_card_type}
{$credit_card_number}
{ts}Expires:{/ts} {$credit_card_exp_date|truncate:7:\'\'|crmDate}
|
{/if}
{if $component eq \'event\'}
{ts}Event Information and Location{/ts}
|
{$event.event_title}
{$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|date_format:"%Y%m%d" == $event.event_start_date|date_format:"%Y%m%d"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate}{/if}{/if}
|
{if $event.participant_role}
{ts}Participant Role{/ts}
|
{$event.participant_role}
|
{/if}
{if $isShowLocation}
{$location.address.1.display|nl2br}
|
{/if}
{if $location.phone.1.phone || $location.email.1.email}
{ts}Event Contacts:{/ts}
|
{foreach from=$location.phone item=phone}
{if $phone.phone}
{if $phone.phone_type}
{$phone.phone_type_display}
{else}
{ts}Phone{/ts}
{/if}
|
{$phone.phone} {if $phone.phone_ext} {ts}ext.{/ts} {$phone.phone_ext}{/if}
|
{/if}
{/foreach}
{foreach from=$location.email item=eventEmail}
{if $eventEmail.email}
{ts}Email{/ts}
|
{$eventEmail.email}
|
{/if}
{/foreach}
{/if} {*phone block close*}
{/if}
|
', @tpl_ovid_payment_or_refund_notification, 0, 1) ,
('Events - Registration Confirmation and Receipt (off-line)', '{ts}Event Confirmation{/ts} - {$event.title} - {contact.display_name}
', '{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}{$greeting},{/if}
{if $event.confirm_email_text AND (not $isOnWaitlist AND not $isRequireApproval)}
{$event.confirm_email_text}
{/if}
{if $isOnWaitlist}
==========================================================={if $pricesetFieldsCount }===================={/if}
{ts}You have been added to the WAIT LIST for this event.{/ts}
{if $isPrimary}
{ts}If space becomes available you will receive an email with a link to a web page where you can complete your registration.{/ts}
{/if}
==========================================================={if $pricesetFieldsCount }===================={/if}
{elseif $isRequireApproval}
==========================================================={if $pricesetFieldsCount }===================={/if}
{ts}Your registration has been submitted.{/ts}
{if $isPrimary}
{ts}Once your registration has been reviewed, you will receive an email with a link to a web page where you can complete the registration process.{/ts}
{/if}
==========================================================={if $pricesetFieldsCount }===================={/if}
{elseif $is_pay_later}
==========================================================={if $pricesetFieldsCount }===================={/if}
{$pay_later_receipt}
==========================================================={if $pricesetFieldsCount }===================={/if}
{/if}
==========================================================={if $pricesetFieldsCount }===================={/if}
{ts}Event Information and Location{/ts}
==========================================================={if $pricesetFieldsCount }===================={/if}
{$event.event_title}
{$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|date_format:"%Y%m%d" == $event.event_start_date|date_format:"%Y%m%d"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate}{/if}{/if}
{if $event.participant_role neq \'Attendee\' and $defaultRole}
{ts}Participant Role{/ts}: {$event.participant_role}
{/if}
{if $isShowLocation}
{$location.address.1.display|strip_tags:false}
{/if}{*End of isShowLocation condition*}
{if $location.phone.1.phone || $location.email.1.email}
{ts}Event Contacts:{/ts}
{foreach from=$location.phone item=phone}
{if $phone.phone}
{if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}: {$phone.phone}{/if} {if $phone.phone_ext} {ts}ext.{/ts} {$phone.phone_ext}{/if}
{/foreach}
{foreach from=$location.email item=eventEmail}
{if $eventEmail.email}
{ts}Email{/ts}: {$eventEmail.email}{/if}{/foreach}
{/if}
{if $event.is_public}
{capture assign=icalFeed}{crmURL p=\'civicrm/event/ical\' q="reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture}
{ts}Download iCalendar File:{/ts} {$icalFeed}
{/if}
{if $email}
==========================================================={if $pricesetFieldsCount }===================={/if}
{ts}Registered Email{/ts}
==========================================================={if $pricesetFieldsCount }===================={/if}
{$email}
{/if}
{if $event.is_monetary} {* This section for Paid events only.*}
==========================================================={if $pricesetFieldsCount }===================={/if}
{$event.fee_label}
==========================================================={if $pricesetFieldsCount }===================={/if}
{if $lineItem}{foreach from=$lineItem item=value key=priceset}
{if $value neq \'skip\'}
{if $isPrimary}
{if $lineItem|@count GT 1} {* Header for multi participant registration cases. *}
{ts 1=$priceset+1}Participant %1{/ts}
{/if}
{/if}
---------------------------------------------------------{if $pricesetFieldsCount }--------------------{/if}
{capture assign=ts_item}{ts}Item{/ts}{/capture}
{capture assign=ts_qty}{ts}Qty{/ts}{/capture}
{capture assign=ts_each}{ts}Each{/ts}{/capture}
{if $dataArray}
{capture assign=ts_subtotal}{ts}Subtotal{/ts}{/capture}
{capture assign=ts_taxRate}{ts}Tax Rate{/ts}{/capture}
{capture assign=ts_taxAmount}{ts}Tax Amount{/ts}{/capture}
{/if}
{capture assign=ts_total}{ts}Total{/ts}{/capture}
{capture assign=ts_participant_total}{if $pricesetFieldsCount }{ts}Total Participants{/ts}{/if}{/capture}
{$ts_item|string_format:"%-30s"} {$ts_qty|string_format:"%5s"} {$ts_each|string_format:"%10s"} {if $dataArray} {$ts_subtotal|string_format:"%10s"} {$ts_taxRate|string_format:"%10s"} {$ts_taxAmount|string_format:"%10s"} {/if} {$ts_total|string_format:"%10s"} {$ts_participant_total|string_format:"%10s"}
----------------------------------------------------------{if $pricesetFieldsCount }--------------------{/if}
{foreach from=$value item=line}
{if $pricesetFieldsCount }{capture assign=ts_participant_count}{$line.participant_count}{/capture}{/if}
{capture assign=ts_item}{if $line.html_type eq \'Text\'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description} {$line.description}{/if}{/capture}{$ts_item|truncate:30:"..."|string_format:"%-30s"} {$line.qty|string_format:"%5s"} {$line.unit_price|crmMoney|string_format:"%10s"} {if $dataArray} {$line.unit_price*$line.qty|crmMoney:$currency|string_format:"%10s"} {if $line.tax_rate != "" || $line.tax_amount != ""} {$line.tax_rate|string_format:"%.2f"} % {$line.tax_amount|crmMoney:$currency|string_format:"%10s"} {else} {/if} {/if} {$line.line_total+$line.tax_amount|crmMoney|string_format:"%10s"} {$ts_participant_count|string_format:"%10s"}
{/foreach}
{/if}
{/foreach}
{if $dataArray}
{ts}Amount before Tax{/ts}: {$totalAmount-$totalTaxAmount|crmMoney:$currency}
{foreach from=$dataArray item=value key=priceset}
{if $priceset || $priceset == 0}
{$taxTerm} {$priceset|string_format:"%.2f"}%: {$value|crmMoney:$currency}
{else}
{ts}No{/ts} {$taxTerm}: {$value|crmMoney:$currency}
{/if}
{/foreach}
{/if}
{/if}
{if $amount && !$lineItem}
{foreach from=$amount item=amnt key=level}{$amnt.amount|crmMoney} {$amnt.label}
{/foreach}
{/if}
{if $totalTaxAmount}
{ts}Total Tax Amount{/ts}: {$totalTaxAmount|crmMoney:$currency}
{/if}
{if $isPrimary}
{if $balanceAmount}{ts}Total Paid{/ts}{else}{ts}Total Amount{/ts}{/if}: {$totalAmount|crmMoney} {if $hookDiscount.message}({$hookDiscount.message}){/if}
{if $balanceAmount}
{ts}Balance{/ts}: {$balanceAmount|crmMoney}
{/if}
{if $pricesetFieldsCount }
{assign var="count" value= 0}
{foreach from=$lineItem item=pcount}
{assign var="lineItemCount" value=0}
{if $pcount neq \'skip\'}
{foreach from=$pcount item=p_count}
{assign var="lineItemCount" value=$lineItemCount+$p_count.participant_count}
{/foreach}
{if $lineItemCount < 1 }
{assign var="lineItemCount" value=1}
{/if}
{assign var="count" value=$count+$lineItemCount}
{/if}
{/foreach}
{ts}Total Participants{/ts}: {$count}
{/if}
{if $is_pay_later }
==========================================================={if $pricesetFieldsCount }===================={/if}
{$pay_later_receipt}
==========================================================={if $pricesetFieldsCount }===================={/if}
{/if}
{if $register_date}
{ts}Registration Date{/ts}: {$register_date|crmDate}
{/if}
{if $receive_date}
{ts}Transaction Date{/ts}: {$receive_date|crmDate}
{/if}
{if $financialTypeName}
{ts}Financial Type{/ts}: {$financialTypeName}
{/if}
{if $trxn_id}
{ts}Transaction #{/ts}: {$trxn_id}
{/if}
{if $paidBy}
{ts}Paid By{/ts}: {$paidBy}
{/if}
{if $checkNumber}
{ts}Check Number{/ts}: {$checkNumber}
{/if}
{if $billingName}
==========================================================={if $pricesetFieldsCount }===================={/if}
{ts}Billing Name and Address{/ts}
==========================================================={if $pricesetFieldsCount }===================={/if}
{$billingName}
{$address}
{/if}
{if $credit_card_type}
===========================================================
{ts}Credit Card Information{/ts}
==========================================================={if $pricesetFieldsCount }===================={/if}
{$credit_card_type}
{$credit_card_number}
{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}
{/if}
{/if}
{/if} {* End of conditional section for Paid events *}
{if $customPre}
==========================================================={if $pricesetFieldsCount }===================={/if}
{$customPre_grouptitle}
==========================================================={if $pricesetFieldsCount }===================={/if}
{foreach from=$customPre item=value key=customName}
{if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
{$customName}: {$value}
{/if}
{/foreach}
{/if}
{if $customPost}
==========================================================={if $pricesetFieldsCount }===================={/if}
{$customPost_grouptitle}
==========================================================={if $pricesetFieldsCount }===================={/if}
{foreach from=$customPost item=value key=customName}
{if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
{$customName}: {$value}
{/if}
{/foreach}
{/if}
{if $customProfile}
{foreach from=$customProfile item=value key=customName}
==========================================================={if $pricesetFieldsCount }===================={/if}
{ts 1=$customName+1}Participant Information - Participant %1{/ts}
==========================================================={if $pricesetFieldsCount }===================={/if}
{foreach from=$value item=val key=field}
{if $field eq \'additionalCustomPre\' or $field eq \'additionalCustomPost\' }
{if $field eq \'additionalCustomPre\' }
----------------------------------------------------------{if $pricesetFieldsCount }--------------------{/if}
{$additionalCustomPre_grouptitle}
----------------------------------------------------------{if $pricesetFieldsCount }--------------------{/if}
{else}
----------------------------------------------------------{if $pricesetFieldsCount }--------------------{/if}
{$additionalCustomPost_grouptitle}
----------------------------------------------------------{if $pricesetFieldsCount }--------------------{/if}
{/if}
{foreach from=$val item=v key=f}
{$f}: {$v}
{/foreach}
{/if}
{/foreach}
{/foreach}
{/if}
{if $customGroup}
{foreach from=$customGroup item=value key=customName}
=========================================================={if $pricesetFieldsCount }===================={/if}
{$customName}
=========================================================={if $pricesetFieldsCount }===================={/if}
{foreach from=$value item=v key=n}
{$n}: {$v}
{/foreach}
{/foreach}
{/if}
', '
{capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture}
{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture}
{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture}
{assign var="greeting" value="{contact.email_greeting}"}{if $greeting} {$greeting}, {/if}
{if $event.confirm_email_text AND (not $isOnWaitlist AND not $isRequireApproval)}
{$event.confirm_email_text|htmlize}
{/if}
{if $isOnWaitlist}
{ts}You have been added to the WAIT LIST for this event.{/ts}
{if $isPrimary}
{ts}If space becomes available you will receive an email with a link to a web page where you can complete your registration.{/ts}
{/if}
{elseif $isRequireApproval}
{ts}Your registration has been submitted.{/ts}
{if $isPrimary}
{ts}Once your registration has been reviewed, you will receive an email with a link to a web page where you can complete the registration process.{/ts}
{/if}
{elseif $is_pay_later}
{$pay_later_receipt} {* FIXME: this might be text rather than HTML *}
{/if}
|
{ts}Event Information and Location{/ts}
|
{$event.event_title}
{$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|date_format:"%Y%m%d" == $event.event_start_date|date_format:"%Y%m%d"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate}{/if}{/if}
|
{if $event.participant_role neq \'Attendee\' and $defaultRole}
{ts}Participant Role{/ts}
|
{$event.participant_role}
|
{/if}
{if $isShowLocation}
{$location.address.1.display|nl2br}
|
{/if}
{if $location.phone.1.phone || $location.email.1.email}
{ts}Event Contacts:{/ts}
|
{foreach from=$location.phone item=phone}
{if $phone.phone}
{if $phone.phone_type}
{$phone.phone_type_display}
{else}
{ts}Phone{/ts}
{/if}
|
{$phone.phone} {if $phone.phone_ext} {ts}ext.{/ts} {$phone.phone_ext}{/if}
|
{/if}
{/foreach}
{foreach from=$location.email item=eventEmail}
{if $eventEmail.email}
{ts}Email{/ts}
|
{$eventEmail.email}
|
{/if}
{/foreach}
{/if}
{if $event.is_public}
{capture assign=icalFeed}{crmURL p=\'civicrm/event/ical\' q="reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture}
{ts}Download iCalendar File{/ts}
|
{/if}
{if $email}
{ts}Registered Email{/ts}
|
{$email}
|
{/if}
{if $event.is_monetary}
{$event.fee_label}
|
{if $lineItem}
{foreach from=$lineItem item=value key=priceset}
{if $value neq \'skip\'}
{if $isPrimary}
{if $lineItem|@count GT 1} {* Header for multi participant registration cases. *}
{ts 1=$priceset+1}Participant %1{/ts}
|
{/if}
{/if}
{* FIXME: style this table so that it looks like the text version (justification, etc.) *}
{ts}Item{/ts} |
{ts}Qty{/ts} |
{ts}Each{/ts} |
{if $dataArray}
{ts}SubTotal{/ts} |
{ts}Tax Rate{/ts} |
{ts}Tax Amount{/ts} |
{/if}
{ts}Total{/ts} |
{if $pricesetFieldsCount }{ts}Total Participants{/ts} | {/if}
{foreach from=$value item=line}
{if $line.html_type eq \'Text\'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description} {$line.description|truncate:30:"..."} {/if}
|
{$line.qty}
|
{$line.unit_price|crmMoney}
|
{if $dataArray}
{$line.unit_price*$line.qty|crmMoney}
|
{if $line.tax_rate != "" || $line.tax_amount != ""}
{$line.tax_rate|string_format:"%.2f"}%
|
{$line.tax_amount|crmMoney}
|
{else}
|
|
{/if}
{/if}
{$line.line_total+$line.tax_amount|crmMoney}
|
{if $pricesetFieldsCount }
{$line.participant_count}
|
{/if}
{/foreach}
|
{/if}
{/foreach}
{if $dataArray}
{ts}Amount Before Tax:{/ts}
|
{$totalAmount-$totalTaxAmount|crmMoney}
|
{foreach from=$dataArray item=value key=priceset}
{if $priceset || $priceset == 0}
{$taxTerm} {$priceset|string_format:"%.2f"}% |
{$value|crmMoney:$currency} |
{else}
{ts}No{/ts} {$taxTerm} |
{$value|crmMoney:$currency} |
{/if}
{/foreach}
{/if}
{/if}
{if $amount && !$lineItem}
{foreach from=$amount item=amnt key=level}
{$amnt.amount|crmMoney} {$amnt.label}
|
{/foreach}
{/if}
{if $totalTaxAmount}
{ts}Total Tax Amount{/ts}
|
{$totalTaxAmount|crmMoney:$currency}
|
{/if}
{if $isPrimary}
{if $balanceAmount}
{ts}Total Paid{/ts}
{else}
{ts}Total Amount{/ts}
{/if}
|
{$totalAmount|crmMoney} {if $hookDiscount.message}({$hookDiscount.message}){/if}
|
{if $balanceAmount}
{ts}Balance{/ts}
|
{$balanceAmount|crmMoney}
|
{/if}
{if $pricesetFieldsCount }
{ts}Total Participants{/ts} |
{assign var="count" value= 0}
{foreach from=$lineItem item=pcount}
{assign var="lineItemCount" value=0}
{if $pcount neq \'skip\'}
{foreach from=$pcount item=p_count}
{assign var="lineItemCount" value=$lineItemCount+$p_count.participant_count}
{/foreach}
{if $lineItemCount < 1 }
assign var="lineItemCount" value=1}
{/if}
{assign var="count" value=$count+$lineItemCount}
{/if}
{/foreach}
{$count}
|
{/if}
{if $is_pay_later}
{$pay_later_receipt}
|
{/if}
{if $register_date}
{ts}Registration Date{/ts}
|
{$register_date|crmDate}
|
{/if}
{if $receive_date}
{ts}Transaction Date{/ts}
|
{$receive_date|crmDate}
|
{/if}
{if $financialTypeName}
{ts}Financial Type{/ts}
|
{$financialTypeName}
|
{/if}
{if $trxn_id}
{ts}Transaction #{/ts}
|
{$trxn_id}
|
{/if}
{if $paidBy}
{ts}Paid By{/ts}
|
{$paidBy}
|
{/if}
{if $checkNumber}
{ts}Check Number{/ts}
|
{$checkNumber}
|
{/if}
{if $billingName}
{ts}Billing Name and Address{/ts}
|
{$billingName}
{$address|nl2br}
|
{/if}
{if $credit_card_type}
{ts}Credit Card Information{/ts}
|
{$credit_card_type}
{$credit_card_number}
{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}
|
{/if}
{/if}
{/if} {* End of conditional section for Paid events *}
{if $customPre}
{$customPre_grouptitle}
|
{foreach from=$customPre item=value key=customName}
{if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
{$customName}
|
{$value}
|
{/if}
{/foreach}
{/if}
{if $customPost}
{$customPost_grouptitle}
|
{foreach from=$customPost item=value key=customName}
{if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
{$customName}
|
{$value}
|
{/if}
{/foreach}
{/if}
{if $customProfile}
{foreach from=$customProfile item=value key=customName}
{ts 1=$customName+1}Participant Information - Participant %1{/ts}
|
{foreach from=$value item=val key=field}
{if $field eq \'additionalCustomPre\' or $field eq \'additionalCustomPost\'}
{if $field eq \'additionalCustomPre\'}
{$additionalCustomPre_grouptitle}
{else}
{$additionalCustomPost_grouptitle}
{/if}
|
{foreach from=$val item=v key=f}
{$f}
|
{$v}
|
{/foreach}
{/if}
{/foreach}
{/foreach}
{/if}
{if $customGroup}
{foreach from=$customGroup item=value key=customName}
{$customName}
|
{foreach from=$value item=v key=n}
{$n}
|
{$v}
|
{/foreach}
{/foreach}
{/if}
|
', @tpl_ovid_event_offline_receipt, 1, 0),
('Events - Registration Confirmation and Receipt (off-line)', '{ts}Event Confirmation{/ts} - {$event.title} - {contact.display_name}
', '{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}{$greeting},{/if}
{if $event.confirm_email_text AND (not $isOnWaitlist AND not $isRequireApproval)}
{$event.confirm_email_text}
{/if}
{if $isOnWaitlist}
==========================================================={if $pricesetFieldsCount }===================={/if}
{ts}You have been added to the WAIT LIST for this event.{/ts}
{if $isPrimary}
{ts}If space becomes available you will receive an email with a link to a web page where you can complete your registration.{/ts}
{/if}
==========================================================={if $pricesetFieldsCount }===================={/if}
{elseif $isRequireApproval}
==========================================================={if $pricesetFieldsCount }===================={/if}
{ts}Your registration has been submitted.{/ts}
{if $isPrimary}
{ts}Once your registration has been reviewed, you will receive an email with a link to a web page where you can complete the registration process.{/ts}
{/if}
==========================================================={if $pricesetFieldsCount }===================={/if}
{elseif $is_pay_later}
==========================================================={if $pricesetFieldsCount }===================={/if}
{$pay_later_receipt}
==========================================================={if $pricesetFieldsCount }===================={/if}
{/if}
==========================================================={if $pricesetFieldsCount }===================={/if}
{ts}Event Information and Location{/ts}
==========================================================={if $pricesetFieldsCount }===================={/if}
{$event.event_title}
{$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|date_format:"%Y%m%d" == $event.event_start_date|date_format:"%Y%m%d"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate}{/if}{/if}
{if $event.participant_role neq \'Attendee\' and $defaultRole}
{ts}Participant Role{/ts}: {$event.participant_role}
{/if}
{if $isShowLocation}
{$location.address.1.display|strip_tags:false}
{/if}{*End of isShowLocation condition*}
{if $location.phone.1.phone || $location.email.1.email}
{ts}Event Contacts:{/ts}
{foreach from=$location.phone item=phone}
{if $phone.phone}
{if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}: {$phone.phone}{/if} {if $phone.phone_ext} {ts}ext.{/ts} {$phone.phone_ext}{/if}
{/foreach}
{foreach from=$location.email item=eventEmail}
{if $eventEmail.email}
{ts}Email{/ts}: {$eventEmail.email}{/if}{/foreach}
{/if}
{if $event.is_public}
{capture assign=icalFeed}{crmURL p=\'civicrm/event/ical\' q="reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture}
{ts}Download iCalendar File:{/ts} {$icalFeed}
{/if}
{if $email}
==========================================================={if $pricesetFieldsCount }===================={/if}
{ts}Registered Email{/ts}
==========================================================={if $pricesetFieldsCount }===================={/if}
{$email}
{/if}
{if $event.is_monetary} {* This section for Paid events only.*}
==========================================================={if $pricesetFieldsCount }===================={/if}
{$event.fee_label}
==========================================================={if $pricesetFieldsCount }===================={/if}
{if $lineItem}{foreach from=$lineItem item=value key=priceset}
{if $value neq \'skip\'}
{if $isPrimary}
{if $lineItem|@count GT 1} {* Header for multi participant registration cases. *}
{ts 1=$priceset+1}Participant %1{/ts}
{/if}
{/if}
---------------------------------------------------------{if $pricesetFieldsCount }--------------------{/if}
{capture assign=ts_item}{ts}Item{/ts}{/capture}
{capture assign=ts_qty}{ts}Qty{/ts}{/capture}
{capture assign=ts_each}{ts}Each{/ts}{/capture}
{if $dataArray}
{capture assign=ts_subtotal}{ts}Subtotal{/ts}{/capture}
{capture assign=ts_taxRate}{ts}Tax Rate{/ts}{/capture}
{capture assign=ts_taxAmount}{ts}Tax Amount{/ts}{/capture}
{/if}
{capture assign=ts_total}{ts}Total{/ts}{/capture}
{capture assign=ts_participant_total}{if $pricesetFieldsCount }{ts}Total Participants{/ts}{/if}{/capture}
{$ts_item|string_format:"%-30s"} {$ts_qty|string_format:"%5s"} {$ts_each|string_format:"%10s"} {if $dataArray} {$ts_subtotal|string_format:"%10s"} {$ts_taxRate|string_format:"%10s"} {$ts_taxAmount|string_format:"%10s"} {/if} {$ts_total|string_format:"%10s"} {$ts_participant_total|string_format:"%10s"}
----------------------------------------------------------{if $pricesetFieldsCount }--------------------{/if}
{foreach from=$value item=line}
{if $pricesetFieldsCount }{capture assign=ts_participant_count}{$line.participant_count}{/capture}{/if}
{capture assign=ts_item}{if $line.html_type eq \'Text\'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description} {$line.description}{/if}{/capture}{$ts_item|truncate:30:"..."|string_format:"%-30s"} {$line.qty|string_format:"%5s"} {$line.unit_price|crmMoney|string_format:"%10s"} {if $dataArray} {$line.unit_price*$line.qty|crmMoney:$currency|string_format:"%10s"} {if $line.tax_rate != "" || $line.tax_amount != ""} {$line.tax_rate|string_format:"%.2f"} % {$line.tax_amount|crmMoney:$currency|string_format:"%10s"} {else} {/if} {/if} {$line.line_total+$line.tax_amount|crmMoney|string_format:"%10s"} {$ts_participant_count|string_format:"%10s"}
{/foreach}
{/if}
{/foreach}
{if $dataArray}
{ts}Amount before Tax{/ts}: {$totalAmount-$totalTaxAmount|crmMoney:$currency}
{foreach from=$dataArray item=value key=priceset}
{if $priceset || $priceset == 0}
{$taxTerm} {$priceset|string_format:"%.2f"}%: {$value|crmMoney:$currency}
{else}
{ts}No{/ts} {$taxTerm}: {$value|crmMoney:$currency}
{/if}
{/foreach}
{/if}
{/if}
{if $amount && !$lineItem}
{foreach from=$amount item=amnt key=level}{$amnt.amount|crmMoney} {$amnt.label}
{/foreach}
{/if}
{if $totalTaxAmount}
{ts}Total Tax Amount{/ts}: {$totalTaxAmount|crmMoney:$currency}
{/if}
{if $isPrimary}
{if $balanceAmount}{ts}Total Paid{/ts}{else}{ts}Total Amount{/ts}{/if}: {$totalAmount|crmMoney} {if $hookDiscount.message}({$hookDiscount.message}){/if}
{if $balanceAmount}
{ts}Balance{/ts}: {$balanceAmount|crmMoney}
{/if}
{if $pricesetFieldsCount }
{assign var="count" value= 0}
{foreach from=$lineItem item=pcount}
{assign var="lineItemCount" value=0}
{if $pcount neq \'skip\'}
{foreach from=$pcount item=p_count}
{assign var="lineItemCount" value=$lineItemCount+$p_count.participant_count}
{/foreach}
{if $lineItemCount < 1 }
{assign var="lineItemCount" value=1}
{/if}
{assign var="count" value=$count+$lineItemCount}
{/if}
{/foreach}
{ts}Total Participants{/ts}: {$count}
{/if}
{if $is_pay_later }
==========================================================={if $pricesetFieldsCount }===================={/if}
{$pay_later_receipt}
==========================================================={if $pricesetFieldsCount }===================={/if}
{/if}
{if $register_date}
{ts}Registration Date{/ts}: {$register_date|crmDate}
{/if}
{if $receive_date}
{ts}Transaction Date{/ts}: {$receive_date|crmDate}
{/if}
{if $financialTypeName}
{ts}Financial Type{/ts}: {$financialTypeName}
{/if}
{if $trxn_id}
{ts}Transaction #{/ts}: {$trxn_id}
{/if}
{if $paidBy}
{ts}Paid By{/ts}: {$paidBy}
{/if}
{if $checkNumber}
{ts}Check Number{/ts}: {$checkNumber}
{/if}
{if $billingName}
==========================================================={if $pricesetFieldsCount }===================={/if}
{ts}Billing Name and Address{/ts}
==========================================================={if $pricesetFieldsCount }===================={/if}
{$billingName}
{$address}
{/if}
{if $credit_card_type}
===========================================================
{ts}Credit Card Information{/ts}
==========================================================={if $pricesetFieldsCount }===================={/if}
{$credit_card_type}
{$credit_card_number}
{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}
{/if}
{/if}
{/if} {* End of conditional section for Paid events *}
{if $customPre}
==========================================================={if $pricesetFieldsCount }===================={/if}
{$customPre_grouptitle}
==========================================================={if $pricesetFieldsCount }===================={/if}
{foreach from=$customPre item=value key=customName}
{if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
{$customName}: {$value}
{/if}
{/foreach}
{/if}
{if $customPost}
==========================================================={if $pricesetFieldsCount }===================={/if}
{$customPost_grouptitle}
==========================================================={if $pricesetFieldsCount }===================={/if}
{foreach from=$customPost item=value key=customName}
{if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
{$customName}: {$value}
{/if}
{/foreach}
{/if}
{if $customProfile}
{foreach from=$customProfile item=value key=customName}
==========================================================={if $pricesetFieldsCount }===================={/if}
{ts 1=$customName+1}Participant Information - Participant %1{/ts}
==========================================================={if $pricesetFieldsCount }===================={/if}
{foreach from=$value item=val key=field}
{if $field eq \'additionalCustomPre\' or $field eq \'additionalCustomPost\' }
{if $field eq \'additionalCustomPre\' }
----------------------------------------------------------{if $pricesetFieldsCount }--------------------{/if}
{$additionalCustomPre_grouptitle}
----------------------------------------------------------{if $pricesetFieldsCount }--------------------{/if}
{else}
----------------------------------------------------------{if $pricesetFieldsCount }--------------------{/if}
{$additionalCustomPost_grouptitle}
----------------------------------------------------------{if $pricesetFieldsCount }--------------------{/if}
{/if}
{foreach from=$val item=v key=f}
{$f}: {$v}
{/foreach}
{/if}
{/foreach}
{/foreach}
{/if}
{if $customGroup}
{foreach from=$customGroup item=value key=customName}
=========================================================={if $pricesetFieldsCount }===================={/if}
{$customName}
=========================================================={if $pricesetFieldsCount }===================={/if}
{foreach from=$value item=v key=n}
{$n}: {$v}
{/foreach}
{/foreach}
{/if}
', '
{capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture}
{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture}
{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture}
{assign var="greeting" value="{contact.email_greeting}"}{if $greeting} {$greeting}, {/if}
{if $event.confirm_email_text AND (not $isOnWaitlist AND not $isRequireApproval)}
{$event.confirm_email_text|htmlize}
{/if}
{if $isOnWaitlist}
{ts}You have been added to the WAIT LIST for this event.{/ts}
{if $isPrimary}
{ts}If space becomes available you will receive an email with a link to a web page where you can complete your registration.{/ts}
{/if}
{elseif $isRequireApproval}
{ts}Your registration has been submitted.{/ts}
{if $isPrimary}
{ts}Once your registration has been reviewed, you will receive an email with a link to a web page where you can complete the registration process.{/ts}
{/if}
{elseif $is_pay_later}
{$pay_later_receipt} {* FIXME: this might be text rather than HTML *}
{/if}
|
{ts}Event Information and Location{/ts}
|
{$event.event_title}
{$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|date_format:"%Y%m%d" == $event.event_start_date|date_format:"%Y%m%d"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate}{/if}{/if}
|
{if $event.participant_role neq \'Attendee\' and $defaultRole}
{ts}Participant Role{/ts}
|
{$event.participant_role}
|
{/if}
{if $isShowLocation}
{$location.address.1.display|nl2br}
|
{/if}
{if $location.phone.1.phone || $location.email.1.email}
{ts}Event Contacts:{/ts}
|
{foreach from=$location.phone item=phone}
{if $phone.phone}
{if $phone.phone_type}
{$phone.phone_type_display}
{else}
{ts}Phone{/ts}
{/if}
|
{$phone.phone} {if $phone.phone_ext} {ts}ext.{/ts} {$phone.phone_ext}{/if}
|
{/if}
{/foreach}
{foreach from=$location.email item=eventEmail}
{if $eventEmail.email}
{ts}Email{/ts}
|
{$eventEmail.email}
|
{/if}
{/foreach}
{/if}
{if $event.is_public}
{capture assign=icalFeed}{crmURL p=\'civicrm/event/ical\' q="reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture}
{ts}Download iCalendar File{/ts}
|
{/if}
{if $email}
{ts}Registered Email{/ts}
|
{$email}
|
{/if}
{if $event.is_monetary}
{$event.fee_label}
|
{if $lineItem}
{foreach from=$lineItem item=value key=priceset}
{if $value neq \'skip\'}
{if $isPrimary}
{if $lineItem|@count GT 1} {* Header for multi participant registration cases. *}
{ts 1=$priceset+1}Participant %1{/ts}
|
{/if}
{/if}
{* FIXME: style this table so that it looks like the text version (justification, etc.) *}
{ts}Item{/ts} |
{ts}Qty{/ts} |
{ts}Each{/ts} |
{if $dataArray}
{ts}SubTotal{/ts} |
{ts}Tax Rate{/ts} |
{ts}Tax Amount{/ts} |
{/if}
{ts}Total{/ts} |
{if $pricesetFieldsCount }{ts}Total Participants{/ts} | {/if}
{foreach from=$value item=line}
{if $line.html_type eq \'Text\'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description} {$line.description|truncate:30:"..."} {/if}
|
{$line.qty}
|
{$line.unit_price|crmMoney}
|
{if $dataArray}
{$line.unit_price*$line.qty|crmMoney}
|
{if $line.tax_rate != "" || $line.tax_amount != ""}
{$line.tax_rate|string_format:"%.2f"}%
|
{$line.tax_amount|crmMoney}
|
{else}
|
|
{/if}
{/if}
{$line.line_total+$line.tax_amount|crmMoney}
|
{if $pricesetFieldsCount }
{$line.participant_count}
|
{/if}
{/foreach}
|
{/if}
{/foreach}
{if $dataArray}
{ts}Amount Before Tax:{/ts}
|
{$totalAmount-$totalTaxAmount|crmMoney}
|
{foreach from=$dataArray item=value key=priceset}
{if $priceset || $priceset == 0}
{$taxTerm} {$priceset|string_format:"%.2f"}% |
{$value|crmMoney:$currency} |
{else}
{ts}No{/ts} {$taxTerm} |
{$value|crmMoney:$currency} |
{/if}
{/foreach}
{/if}
{/if}
{if $amount && !$lineItem}
{foreach from=$amount item=amnt key=level}
{$amnt.amount|crmMoney} {$amnt.label}
|
{/foreach}
{/if}
{if $totalTaxAmount}
{ts}Total Tax Amount{/ts}
|
{$totalTaxAmount|crmMoney:$currency}
|
{/if}
{if $isPrimary}
{if $balanceAmount}
{ts}Total Paid{/ts}
{else}
{ts}Total Amount{/ts}
{/if}
|
{$totalAmount|crmMoney} {if $hookDiscount.message}({$hookDiscount.message}){/if}
|
{if $balanceAmount}
{ts}Balance{/ts}
|
{$balanceAmount|crmMoney}
|
{/if}
{if $pricesetFieldsCount }
{ts}Total Participants{/ts} |
{assign var="count" value= 0}
{foreach from=$lineItem item=pcount}
{assign var="lineItemCount" value=0}
{if $pcount neq \'skip\'}
{foreach from=$pcount item=p_count}
{assign var="lineItemCount" value=$lineItemCount+$p_count.participant_count}
{/foreach}
{if $lineItemCount < 1 }
assign var="lineItemCount" value=1}
{/if}
{assign var="count" value=$count+$lineItemCount}
{/if}
{/foreach}
{$count}
|
{/if}
{if $is_pay_later}
{$pay_later_receipt}
|
{/if}
{if $register_date}
{ts}Registration Date{/ts}
|
{$register_date|crmDate}
|
{/if}
{if $receive_date}
{ts}Transaction Date{/ts}
|
{$receive_date|crmDate}
|
{/if}
{if $financialTypeName}
{ts}Financial Type{/ts}
|
{$financialTypeName}
|
{/if}
{if $trxn_id}
{ts}Transaction #{/ts}
|
{$trxn_id}
|
{/if}
{if $paidBy}
{ts}Paid By{/ts}
|
{$paidBy}
|
{/if}
{if $checkNumber}
{ts}Check Number{/ts}
|
{$checkNumber}
|
{/if}
{if $billingName}
{ts}Billing Name and Address{/ts}
|
{$billingName}
{$address|nl2br}
|
{/if}
{if $credit_card_type}
{ts}Credit Card Information{/ts}
|
{$credit_card_type}
{$credit_card_number}
{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}
|
{/if}
{/if}
{/if} {* End of conditional section for Paid events *}
{if $customPre}
{$customPre_grouptitle}
|
{foreach from=$customPre item=value key=customName}
{if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
{$customName}
|
{$value}
|
{/if}
{/foreach}
{/if}
{if $customPost}
{$customPost_grouptitle}
|
{foreach from=$customPost item=value key=customName}
{if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
{$customName}
|
{$value}
|
{/if}
{/foreach}
{/if}
{if $customProfile}
{foreach from=$customProfile item=value key=customName}
{ts 1=$customName+1}Participant Information - Participant %1{/ts}
|
{foreach from=$value item=val key=field}
{if $field eq \'additionalCustomPre\' or $field eq \'additionalCustomPost\'}
{if $field eq \'additionalCustomPre\'}
{$additionalCustomPre_grouptitle}
{else}
{$additionalCustomPost_grouptitle}
{/if}
|
{foreach from=$val item=v key=f}
{$f}
|
{$v}
|
{/foreach}
{/if}
{/foreach}
{/foreach}
{/if}
{if $customGroup}
{foreach from=$customGroup item=value key=customName}
{$customName}
|
{foreach from=$value item=v key=n}
{$n}
|
{$v}
|
{/foreach}
{/foreach}
{/if}
|
', @tpl_ovid_event_offline_receipt, 0, 1) ,
('Events - Registration Confirmation and Receipt (on-line)', '{if $isOnWaitlist}{ts}Wait List Confirmation{/ts}{elseif $isRequireApproval}{ts}Registration Request Confirmation{/ts}{else}{ts}Registration Confirmation{/ts}{/if} - {$event.event_title} - {contact.display_name}
', '{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}{$greeting},{/if}
{if $event.confirm_email_text AND (not $isOnWaitlist AND not $isRequireApproval)}
{$event.confirm_email_text}
{else}
{ts}Thank you for your registration.{/ts}
{if $participant_status}{ts 1=$participant_status}This is a confirmation that your registration has been received and your status has been updated to %1.{/ts}
{else}{if $isOnWaitlist}{ts}This is a confirmation that your registration has been received and your status has been updated to waitlisted.{/ts}{else}{ts}This is a confirmation that your registration has been received and your status has been updated to registered.{/ts}{/if}
{/if}
{/if}
{if $isOnWaitlist}
==========================================================={if $pricesetFieldsCount }===================={/if}
{ts}You have been added to the WAIT LIST for this event.{/ts}
{if $isPrimary}
{ts}If space becomes available you will receive an email with a link to a web page where you can complete your registration.{/ts}
{/if}
==========================================================={if $pricesetFieldsCount }===================={/if}
{elseif $isRequireApproval}
==========================================================={if $pricesetFieldsCount }===================={/if}
{ts}Your registration has been submitted.{/ts}
{if $isPrimary}
{ts}Once your registration has been reviewed, you will receive an email with a link to a web page where you can complete the registration process.{/ts}
{/if}
==========================================================={if $pricesetFieldsCount }===================={/if}
{elseif $is_pay_later && !$isAmountzero && !$isAdditionalParticipant}
==========================================================={if $pricesetFieldsCount }===================={/if}
{$pay_later_receipt}
==========================================================={if $pricesetFieldsCount }===================={/if}
{/if}
==========================================================={if $pricesetFieldsCount }===================={/if}
{ts}Event Information and Location{/ts}
==========================================================={if $pricesetFieldsCount }===================={/if}
{$event.event_title}
{$event.event_start_date|date_format:"%A"} {$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|date_format:"%Y%m%d" == $event.event_start_date|date_format:"%Y%m%d"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|date_format:"%A"} {$event.event_end_date|crmDate}{/if}{/if}
{if $conference_sessions}
{ts}Your schedule:{/ts}
{assign var=\'group_by_day\' value=\'NA\'}
{foreach from=$conference_sessions item=session}
{if $session.start_date|date_format:"%Y/%m/%d" != $group_by_day|date_format:"%Y/%m/%d"}
{assign var=\'group_by_day\' value=$session.start_date}
{$group_by_day|date_format:"%m/%d/%Y"}
{/if}
{$session.start_date|crmDate:0:1}{if $session.end_date}-{$session.end_date|crmDate:0:1}{/if} {$session.title}
{if $session.location} {$session.location}{/if}
{/foreach}
{/if}
{if $event.participant_role neq \'Attendee\' and $defaultRole}
{ts}Participant Role{/ts}: {$event.participant_role}
{/if}
{if $isShowLocation}
{$location.address.1.display|strip_tags:false}
{/if}{*End of isShowLocation condition*}
{if $location.phone.1.phone || $location.email.1.email}
{ts}Event Contacts:{/ts}
{foreach from=$location.phone item=phone}
{if $phone.phone}
{if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}: {$phone.phone}{/if} {if $phone.phone_ext} {ts}ext.{/ts} {$phone.phone_ext}{/if}
{/foreach}
{foreach from=$location.email item=eventEmail}
{if $eventEmail.email}
{ts}Email{/ts}: {$eventEmail.email}{/if}{/foreach}
{/if}
{if $event.is_public}
{capture assign=icalFeed}{crmURL p=\'civicrm/event/ical\' q="reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture}
{ts}Download iCalendar File:{/ts} {$icalFeed}
{/if}
{if $payer.name}
You were registered by: {$payer.name}
{/if}
{if $event.is_monetary and not $isRequireApproval} {* This section for Paid events only.*}
==========================================================={if $pricesetFieldsCount }===================={/if}
{$event.fee_label}
==========================================================={if $pricesetFieldsCount }===================={/if}
{if $lineItem}{foreach from=$lineItem item=value key=priceset}
{if $value neq \'skip\'}
{if $isPrimary}
{if $lineItem|@count GT 1} {* Header for multi participant registration cases. *}
{ts 1=$priceset+1}Participant %1{/ts} {$part.$priceset.info}
{/if}
{/if}
-----------------------------------------------------------{if $pricesetFieldsCount }-----------------------------------------------------{/if}
{capture assign=ts_item}{ts}Item{/ts}{/capture}
{capture assign=ts_qty}{ts}Qty{/ts}{/capture}
{capture assign=ts_each}{ts}Each{/ts}{/capture}
{if $dataArray}
{capture assign=ts_subtotal}{ts}Subtotal{/ts}{/capture}
{capture assign=ts_taxRate}{ts}Tax Rate{/ts}{/capture}
{capture assign=ts_taxAmount}{ts}Tax Amount{/ts}{/capture}
{/if}
{capture assign=ts_total}{ts}Total{/ts}{/capture}
{if $pricesetFieldsCount }{capture assign=ts_participant_total}{ts}Total Participants{/ts}{/capture}{/if}
{$ts_item|string_format:"%-30s"} {$ts_qty|string_format:"%5s"} {$ts_each|string_format:"%10s"} {if $dataArray} {$ts_subtotal|string_format:"%10s"} {$ts_taxRate|string_format:"%10s"} {$ts_taxAmount|string_format:"%10s"} {/if} {$ts_total|string_format:"%10s"} {$ts_participant_total|string_format:"%10s"}
-----------------------------------------------------------{if $pricesetFieldsCount }-----------------------------------------------------{/if}
{foreach from=$value item=line}
{if $pricesetFieldsCount }{capture assign=ts_participant_count}{$line.participant_count}{/capture}{/if}
{capture assign=ts_item}{if $line.html_type eq \'Text\'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description} {$line.description}{/if}{/capture}{$ts_item|truncate:30:"..."|string_format:"%-30s"} {$line.qty|string_format:"%5s"} {$line.unit_price|crmMoney:$currency|string_format:"%10s"} {if $dataArray} {$line.unit_price*$line.qty|crmMoney:$currency|string_format:"%10s"} {if $line.tax_rate != "" || $line.tax_amount != ""} {$line.tax_rate|string_format:"%.2f"} % {$line.tax_amount|crmMoney:$currency|string_format:"%10s"} {else} {/if} {/if} {$line.line_total+$line.tax_amount|crmMoney:$currency|string_format:"%10s"}{$ts_participant_count|string_format:"%10s"}
{/foreach}
----------------------------------------------------------------------------------------------------------------
{if $individual}{ts}Participant Total{/ts} {$individual.$priceset.totalAmtWithTax-$individual.$priceset.totalTaxAmt|crmMoney:$currency|string_format:"%29s"} {$individual.$priceset.totalTaxAmt|crmMoney:$currency|string_format:"%33s"} {$individual.$priceset.totalAmtWithTax|crmMoney:$currency|string_format:"%12s"}{/if}
{/if}
{""|string_format:"%120s"}
{/foreach}
{""|string_format:"%120s"}
{if $dataArray}
{ts}Amount before Tax{/ts}: {$totalAmount-$totalTaxAmount|crmMoney:$currency}
{foreach from=$dataArray item=value key=priceset}
{if $priceset || $priceset == 0}
{$taxTerm} {$priceset|string_format:"%.2f"}%: {$value|crmMoney:$currency}
{else}
{ts}No{/ts} {$taxTerm}: {$value|crmMoney:$currency}
{/if}
{/foreach}
{/if}
{/if}
{if $amounts && !$lineItem}
{foreach from=$amounts item=amnt key=level}{$amnt.amount|crmMoney:$currency} {$amnt.label}
{/foreach}
{/if}
{if $totalTaxAmount}
{ts}Total Tax Amount{/ts}: {$totalTaxAmount|crmMoney:$currency}
{/if}
{if $isPrimary }
{ts}Total Amount{/ts}: {$totalAmount|crmMoney:$currency} {if $hookDiscount.message}({$hookDiscount.message}){/if}
{if $pricesetFieldsCount }
{assign var="count" value= 0}
{foreach from=$lineItem item=pcount}
{assign var="lineItemCount" value=0}
{if $pcount neq \'skip\'}
{foreach from=$pcount item=p_count}
{assign var="lineItemCount" value=$lineItemCount+$p_count.participant_count}
{/foreach}
{if $lineItemCount < 1 }
{assign var="lineItemCount" value=1}
{/if}
{assign var="count" value=$count+$lineItemCount}
{/if}
{/foreach}
{ts}Total Participants{/ts}: {$count}
{/if}
{if $register_date}
{ts}Registration Date{/ts}: {$register_date|crmDate}
{/if}
{if $receive_date}
{ts}Transaction Date{/ts}: {$receive_date|crmDate}
{/if}
{if $financialTypeName}
{ts}Financial Type{/ts}: {$financialTypeName}
{/if}
{if $trxn_id}
{ts}Transaction #{/ts}: {$trxn_id}
{/if}
{if $paidBy}
{ts}Paid By{/ts}: {$paidBy}
{/if}
{if $checkNumber}
{ts}Check Number{/ts}: {$checkNumber}
{/if}
{if $billingName}
==========================================================={if $pricesetFieldsCount }===================={/if}
{ts}Billing Name and Address{/ts}
==========================================================={if $pricesetFieldsCount }===================={/if}
{$billingName}
{$address}
{/if}
{if $credit_card_type}
==========================================================={if $pricesetFieldsCount }===================={/if}
{ts}Credit Card Information{/ts}
==========================================================={if $pricesetFieldsCount }===================={/if}
{$credit_card_type}
{$credit_card_number}
{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}
{/if}
{/if}
{/if} {* End of conditional section for Paid events *}
{if $customPre}
{foreach from=$customPre item=customPr key=i}
==========================================================={if $pricesetFieldsCount }===================={/if}
{$customPre_grouptitle.$i}
==========================================================={if $pricesetFieldsCount }===================={/if}
{foreach from=$customPr item=customValue key=customName}
{if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
{$customName}: {$customValue}
{/if}
{/foreach}
{/foreach}
{/if}
{if $customPost}
{foreach from=$customPost item=customPos key=j}
==========================================================={if $pricesetFieldsCount }===================={/if}
{$customPost_grouptitle.$j}
==========================================================={if $pricesetFieldsCount }===================={/if}
{foreach from=$customPos item=customValue key=customName}
{if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
{$customName}: {$customValue}
{/if}
{/foreach}
{/foreach}
{/if}
{if $customProfile}
{foreach from=$customProfile.profile item=eachParticipant key=participantID}
==========================================================={if $pricesetFieldsCount }===================={/if}
{ts 1=$participantID+2}Participant Information - Participant %1{/ts}
==========================================================={if $pricesetFieldsCount }===================={/if}
{foreach from=$eachParticipant item=eachProfile key=pid}
----------------------------------------------------------{if $pricesetFieldsCount }--------------------{/if}
{$customProfile.title.$pid}
----------------------------------------------------------{if $pricesetFieldsCount }--------------------{/if}
{foreach from=$eachProfile item=val key=field}
{foreach from=$val item=v key=f}
{$field}: {$v}
{/foreach}
{/foreach}
{/foreach}
{/foreach}
{/if}
{if $customGroup}
{foreach from=$customGroup item=value key=customName}
=========================================================={if $pricesetFieldsCount }===================={/if}
{$customName}
=========================================================={if $pricesetFieldsCount }===================={/if}
{foreach from=$value item=v key=n}
{$n}: {$v}
{/foreach}
{/foreach}
{/if}
{if $event.allow_selfcancelxfer }
{ts 1=$event.selfcancelxfer_time}You may transfer your registration to another participant or cancel your registration up to %1 hours before the event.{/ts} {if $totalAmount}{ts}Cancellations are not refundable.{/ts}{/if}
{capture assign=selfService}{crmURL p=\'civicrm/event/selfsvcupdate\' q="reset=1&pid=`$participant.id`&{contact.checksum}" h=0 a=1 fe=1}{/capture}
{ts}Transfer or cancel your registration:{/ts} {$selfService}
{/if}
', '
{capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture}
{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture}
{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture}
{capture assign=tdfirstStyle}style="width: 180px; padding-bottom: 15px;"{/capture}
{capture assign=tdStyle}style="width: 100px;"{/capture}
{capture assign=participantTotal}style="margin: 0.5em 0 0.5em;padding: 0.5em;background-color: #999999;font-weight: bold;color: #FAFAFA;border-radius: 2px;"{/capture}
{assign var="greeting" value="{contact.email_greeting}"}{if $greeting} {$greeting}, {/if}
{if $event.confirm_email_text AND (not $isOnWaitlist AND not $isRequireApproval)}
{$event.confirm_email_text|htmlize}
{else}
{ts}Thank you for your registration.{/ts}
{if $participant_status}{ts 1=$participant_status}This is a confirmation that your registration has been received and your status has been updated to %1.{/ts}
{else}{if $isOnWaitlist}{ts}This is a confirmation that your registration has been received and your status has been updated to waitlisted.{/ts}{else}{ts}This is a confirmation that your registration has been received and your status has been updated to registered.{/ts}{/if}{/if}
{/if}
{if $isOnWaitlist}
{ts}You have been added to the WAIT LIST for this event.{/ts}
{if $isPrimary}
{ts}If space becomes available you will receive an email with a link to a web page where you can complete your registration.{/ts}
{/if}
{elseif $isRequireApproval}
{ts}Your registration has been submitted.{/ts}
{if $isPrimary}
{ts}Once your registration has been reviewed, you will receive an email with a link to a web page where you can complete the registration process.{/ts}
{/if}
{elseif $is_pay_later && !$isAmountzero && !$isAdditionalParticipant}
{$pay_later_receipt} {* FIXME: this might be text rather than HTML *}
{/if}
|
{ts}Event Information and Location{/ts}
|
{$event.event_title}
{$event.event_start_date|date_format:"%A"} {$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|date_format:"%Y%m%d" == $event.event_start_date|date_format:"%Y%m%d"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|date_format:"%A"} {$event.event_end_date|crmDate}{/if}{/if}
|
{if $conference_sessions}
{ts}Your schedule:{/ts}
|
{assign var=\'group_by_day\' value=\'NA\'}
{foreach from=$conference_sessions item=session}
{if $session.start_date|date_format:"%Y/%m/%d" != $group_by_day|date_format:"%Y/%m/%d"}
{assign var=\'group_by_day\' value=$session.start_date}
{$group_by_day|date_format:"%m/%d/%Y"}
{/if}
{$session.start_date|crmDate:0:1}{if $session.end_date}-{$session.end_date|crmDate:0:1}{/if} {$session.title}
{if $session.location} {$session.location} {/if}
{/foreach}
|
{/if}
{if $event.participant_role neq \'Attendee\' and $defaultRole}
{ts}Participant Role{/ts}
|
{$event.participant_role}
|
{/if}
{if $isShowLocation}
{$location.address.1.display|nl2br}
|
{/if}
{if $location.phone.1.phone || $location.email.1.email}
{ts}Event Contacts:{/ts}
|
{foreach from=$location.phone item=phone}
{if $phone.phone}
{if $phone.phone_type}
{$phone.phone_type_display}
{else}
{ts}Phone{/ts}
{/if}
|
{$phone.phone} {if $phone.phone_ext} {ts}ext.{/ts} {$phone.phone_ext}{/if}
|
{/if}
{/foreach}
{foreach from=$location.email item=eventEmail}
{if $eventEmail.email}
{ts}Email{/ts}
|
{$eventEmail.email}
|
{/if}
{/foreach}
{/if}
{if $event.is_public}
{capture assign=icalFeed}{crmURL p=\'civicrm/event/ical\' q="reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture}
{ts}Download iCalendar File{/ts}
|
{/if}
{if $event.is_share}
{capture assign=eventUrl}{crmURL p=\'civicrm/event/info\' q="id=`$event.id`&reset=1" a=true fe=1 h=1}{/capture}
{include file="CRM/common/SocialNetwork.tpl" emailMode=true url=$eventUrl title=$event.title pageURL=$eventUrl}
|
{/if}
{if $payer.name}
{ts}You were registered by:{/ts}
|
{$payer.name}
|
{/if}
{if $event.is_monetary and not $isRequireApproval}
{$event.fee_label}
|
{if $lineItem}
{foreach from=$lineItem item=value key=priceset}
{if $value neq \'skip\'}
{if $isPrimary}
{if $lineItem|@count GT 1} {* Header for multi participant registration cases. *}
{ts 1=$priceset+1}Participant %1{/ts} {$part.$priceset.info}
|
{/if}
{/if}
{* FIXME: style this table so that it looks like the text version (justification, etc.) *}
{ts}Item{/ts} |
{ts}Qty{/ts} |
{ts}Each{/ts} |
{if $dataArray}
{ts}SubTotal{/ts} |
{ts}Tax Rate{/ts} |
{ts}Tax Amount{/ts} |
{/if}
{ts}Total{/ts} |
{if $pricesetFieldsCount }{ts}Total Participants{/ts} | {/if}
{foreach from=$value item=line}
{if $line.html_type eq \'Text\'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description} {$line.description|truncate:30:"..."} {/if}
|
{$line.qty}
|
{$line.unit_price|crmMoney:$currency}
|
{if $dataArray}
{$line.unit_price*$line.qty|crmMoney}
|
{if $line.tax_rate != "" || $line.tax_amount != ""}
{$line.tax_rate|string_format:"%.2f"}%
|
{$line.tax_amount|crmMoney}
|
{else}
|
|
{/if}
{/if}
{$line.line_total+$line.tax_amount|crmMoney:$currency}
|
{if $pricesetFieldsCount }{$line.participant_count} | {/if}
{/foreach}
{if $individual}
{ts}Participant Total{/ts} |
{$individual.$priceset.totalAmtWithTax-$individual.$priceset.totalTaxAmt|crmMoney} |
{$individual.$priceset.totalTaxAmt|crmMoney} |
{$individual.$priceset.totalAmtWithTax|crmMoney} |
{/if}
|
{/if}
{/foreach}
{if $dataArray}
{ts} Amount Before Tax: {/ts}
|
{$totalAmount-$totalTaxAmount|crmMoney}
|
{foreach from=$dataArray item=value key=priceset}
{if $priceset || $priceset == 0}
{$taxTerm} {$priceset|string_format:"%.2f"}% |
{$value|crmMoney:$currency} |
{else}
{ts}No{/ts} {$taxTerm} |
{$value|crmMoney:$currency} |
{/if}
{/foreach}
{/if}
{/if}
{if $amounts && !$lineItem}
{foreach from=$amounts item=amnt key=level}
{$amnt.amount|crmMoney:$currency} {$amnt.label}
|
{/foreach}
{/if}
{if $totalTaxAmount}
{ts}Total Tax Amount{/ts}
|
{$totalTaxAmount|crmMoney:$currency}
|
{/if}
{if $isPrimary}
{ts}Total Amount{/ts}
|
{$totalAmount|crmMoney:$currency} {if $hookDiscount.message}({$hookDiscount.message}){/if}
|
{if $pricesetFieldsCount }
{ts}Total Participants{/ts} |
{assign var="count" value= 0}
{foreach from=$lineItem item=pcount}
{assign var="lineItemCount" value=0}
{if $pcount neq \'skip\'}
{foreach from=$pcount item=p_count}
{assign var="lineItemCount" value=$lineItemCount+$p_count.participant_count}
{/foreach}
{if $lineItemCount < 1 }
{assign var="lineItemCount" value=1}
{/if}
{assign var="count" value=$count+$lineItemCount}
{/if}
{/foreach}
{$count}
|
{/if}
{if $register_date}
{ts}Registration Date{/ts}
|
{$register_date|crmDate}
|
{/if}
{if $receive_date}
{ts}Transaction Date{/ts}
|
{$receive_date|crmDate}
|
{/if}
{if $financialTypeName}
{ts}Financial Type{/ts}
|
{$financialTypeName}
|
{/if}
{if $trxn_id}
{ts}Transaction #{/ts}
|
{$trxn_id}
|
{/if}
{if $paidBy}
{ts}Paid By{/ts}
|
{$paidBy}
|
{/if}
{if $checkNumber}
{ts}Check Number{/ts}
|
{$checkNumber}
|
{/if}
{if $billingName}
{ts}Billing Name and Address{/ts}
|
{$billingName}
{$address|nl2br}
|
{/if}
{if $credit_card_type}
{ts}Credit Card Information{/ts}
|
{$credit_card_type}
{$credit_card_number}
{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}
|
{/if}
{/if}
{/if} {* End of conditional section for Paid events *}
{if $customPre}
{foreach from=$customPre item=customPr key=i}
{$customPre_grouptitle.$i} |
{foreach from=$customPr item=customValue key=customName}
{if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
{$customName} |
{$customValue} |
{/if}
{/foreach}
{/foreach}
{/if}
{if $customPost}
{foreach from=$customPost item=customPos key=j}
{$customPost_grouptitle.$j} |
{foreach from=$customPos item=customValue key=customName}
{if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
{$customName} |
{$customValue} |
{/if}
{/foreach}
{/foreach}
{/if}
{if $customProfile}
{foreach from=$customProfile.profile item=eachParticipant key=participantID}
{ts 1=$participantID+2}Participant %1{/ts} |
{foreach from=$eachParticipant item=eachProfile key=pid}
{$customProfile.title.$pid} |
{foreach from=$eachProfile item=val key=field}
{foreach from=$val item=v key=f}
{$field} |
{$v} |
{/foreach}
{/foreach}
{/foreach}
{/foreach}
{/if}
{if $customGroup}
{foreach from=$customGroup item=value key=customName}
{$customName}
|
{foreach from=$value item=v key=n}
{$n}
|
{$v}
|
{/foreach}
{/foreach}
{/if}
{if $event.allow_selfcancelxfer }
|
{ts 1=$event.selfcancelxfer_time}You may transfer your registration to another participant or cancel your registration up to %1 hours before the event.{/ts} {if $totalAmount}{ts}Cancellations are not refundable.{/ts}{/if}
{capture assign=selfService}{crmURL p=\'civicrm/event/selfsvcupdate\' q="reset=1&pid=`$participant.id`&{contact.checksum}" h=0 a=1 fe=1}{/capture}
{ts}Click here to transfer or cancel your registration.{/ts}
|
{/if}
', @tpl_ovid_event_online_receipt, 1, 0),
('Events - Registration Confirmation and Receipt (on-line)', '{if $isOnWaitlist}{ts}Wait List Confirmation{/ts}{elseif $isRequireApproval}{ts}Registration Request Confirmation{/ts}{else}{ts}Registration Confirmation{/ts}{/if} - {$event.event_title} - {contact.display_name}
', '{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}{$greeting},{/if}
{if $event.confirm_email_text AND (not $isOnWaitlist AND not $isRequireApproval)}
{$event.confirm_email_text}
{else}
{ts}Thank you for your registration.{/ts}
{if $participant_status}{ts 1=$participant_status}This is a confirmation that your registration has been received and your status has been updated to %1.{/ts}
{else}{if $isOnWaitlist}{ts}This is a confirmation that your registration has been received and your status has been updated to waitlisted.{/ts}{else}{ts}This is a confirmation that your registration has been received and your status has been updated to registered.{/ts}{/if}
{/if}
{/if}
{if $isOnWaitlist}
==========================================================={if $pricesetFieldsCount }===================={/if}
{ts}You have been added to the WAIT LIST for this event.{/ts}
{if $isPrimary}
{ts}If space becomes available you will receive an email with a link to a web page where you can complete your registration.{/ts}
{/if}
==========================================================={if $pricesetFieldsCount }===================={/if}
{elseif $isRequireApproval}
==========================================================={if $pricesetFieldsCount }===================={/if}
{ts}Your registration has been submitted.{/ts}
{if $isPrimary}
{ts}Once your registration has been reviewed, you will receive an email with a link to a web page where you can complete the registration process.{/ts}
{/if}
==========================================================={if $pricesetFieldsCount }===================={/if}
{elseif $is_pay_later && !$isAmountzero && !$isAdditionalParticipant}
==========================================================={if $pricesetFieldsCount }===================={/if}
{$pay_later_receipt}
==========================================================={if $pricesetFieldsCount }===================={/if}
{/if}
==========================================================={if $pricesetFieldsCount }===================={/if}
{ts}Event Information and Location{/ts}
==========================================================={if $pricesetFieldsCount }===================={/if}
{$event.event_title}
{$event.event_start_date|date_format:"%A"} {$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|date_format:"%Y%m%d" == $event.event_start_date|date_format:"%Y%m%d"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|date_format:"%A"} {$event.event_end_date|crmDate}{/if}{/if}
{if $conference_sessions}
{ts}Your schedule:{/ts}
{assign var=\'group_by_day\' value=\'NA\'}
{foreach from=$conference_sessions item=session}
{if $session.start_date|date_format:"%Y/%m/%d" != $group_by_day|date_format:"%Y/%m/%d"}
{assign var=\'group_by_day\' value=$session.start_date}
{$group_by_day|date_format:"%m/%d/%Y"}
{/if}
{$session.start_date|crmDate:0:1}{if $session.end_date}-{$session.end_date|crmDate:0:1}{/if} {$session.title}
{if $session.location} {$session.location}{/if}
{/foreach}
{/if}
{if $event.participant_role neq \'Attendee\' and $defaultRole}
{ts}Participant Role{/ts}: {$event.participant_role}
{/if}
{if $isShowLocation}
{$location.address.1.display|strip_tags:false}
{/if}{*End of isShowLocation condition*}
{if $location.phone.1.phone || $location.email.1.email}
{ts}Event Contacts:{/ts}
{foreach from=$location.phone item=phone}
{if $phone.phone}
{if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}: {$phone.phone}{/if} {if $phone.phone_ext} {ts}ext.{/ts} {$phone.phone_ext}{/if}
{/foreach}
{foreach from=$location.email item=eventEmail}
{if $eventEmail.email}
{ts}Email{/ts}: {$eventEmail.email}{/if}{/foreach}
{/if}
{if $event.is_public}
{capture assign=icalFeed}{crmURL p=\'civicrm/event/ical\' q="reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture}
{ts}Download iCalendar File:{/ts} {$icalFeed}
{/if}
{if $payer.name}
You were registered by: {$payer.name}
{/if}
{if $event.is_monetary and not $isRequireApproval} {* This section for Paid events only.*}
==========================================================={if $pricesetFieldsCount }===================={/if}
{$event.fee_label}
==========================================================={if $pricesetFieldsCount }===================={/if}
{if $lineItem}{foreach from=$lineItem item=value key=priceset}
{if $value neq \'skip\'}
{if $isPrimary}
{if $lineItem|@count GT 1} {* Header for multi participant registration cases. *}
{ts 1=$priceset+1}Participant %1{/ts} {$part.$priceset.info}
{/if}
{/if}
-----------------------------------------------------------{if $pricesetFieldsCount }-----------------------------------------------------{/if}
{capture assign=ts_item}{ts}Item{/ts}{/capture}
{capture assign=ts_qty}{ts}Qty{/ts}{/capture}
{capture assign=ts_each}{ts}Each{/ts}{/capture}
{if $dataArray}
{capture assign=ts_subtotal}{ts}Subtotal{/ts}{/capture}
{capture assign=ts_taxRate}{ts}Tax Rate{/ts}{/capture}
{capture assign=ts_taxAmount}{ts}Tax Amount{/ts}{/capture}
{/if}
{capture assign=ts_total}{ts}Total{/ts}{/capture}
{if $pricesetFieldsCount }{capture assign=ts_participant_total}{ts}Total Participants{/ts}{/capture}{/if}
{$ts_item|string_format:"%-30s"} {$ts_qty|string_format:"%5s"} {$ts_each|string_format:"%10s"} {if $dataArray} {$ts_subtotal|string_format:"%10s"} {$ts_taxRate|string_format:"%10s"} {$ts_taxAmount|string_format:"%10s"} {/if} {$ts_total|string_format:"%10s"} {$ts_participant_total|string_format:"%10s"}
-----------------------------------------------------------{if $pricesetFieldsCount }-----------------------------------------------------{/if}
{foreach from=$value item=line}
{if $pricesetFieldsCount }{capture assign=ts_participant_count}{$line.participant_count}{/capture}{/if}
{capture assign=ts_item}{if $line.html_type eq \'Text\'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description} {$line.description}{/if}{/capture}{$ts_item|truncate:30:"..."|string_format:"%-30s"} {$line.qty|string_format:"%5s"} {$line.unit_price|crmMoney:$currency|string_format:"%10s"} {if $dataArray} {$line.unit_price*$line.qty|crmMoney:$currency|string_format:"%10s"} {if $line.tax_rate != "" || $line.tax_amount != ""} {$line.tax_rate|string_format:"%.2f"} % {$line.tax_amount|crmMoney:$currency|string_format:"%10s"} {else} {/if} {/if} {$line.line_total+$line.tax_amount|crmMoney:$currency|string_format:"%10s"}{$ts_participant_count|string_format:"%10s"}
{/foreach}
----------------------------------------------------------------------------------------------------------------
{if $individual}{ts}Participant Total{/ts} {$individual.$priceset.totalAmtWithTax-$individual.$priceset.totalTaxAmt|crmMoney:$currency|string_format:"%29s"} {$individual.$priceset.totalTaxAmt|crmMoney:$currency|string_format:"%33s"} {$individual.$priceset.totalAmtWithTax|crmMoney:$currency|string_format:"%12s"}{/if}
{/if}
{""|string_format:"%120s"}
{/foreach}
{""|string_format:"%120s"}
{if $dataArray}
{ts}Amount before Tax{/ts}: {$totalAmount-$totalTaxAmount|crmMoney:$currency}
{foreach from=$dataArray item=value key=priceset}
{if $priceset || $priceset == 0}
{$taxTerm} {$priceset|string_format:"%.2f"}%: {$value|crmMoney:$currency}
{else}
{ts}No{/ts} {$taxTerm}: {$value|crmMoney:$currency}
{/if}
{/foreach}
{/if}
{/if}
{if $amounts && !$lineItem}
{foreach from=$amounts item=amnt key=level}{$amnt.amount|crmMoney:$currency} {$amnt.label}
{/foreach}
{/if}
{if $totalTaxAmount}
{ts}Total Tax Amount{/ts}: {$totalTaxAmount|crmMoney:$currency}
{/if}
{if $isPrimary }
{ts}Total Amount{/ts}: {$totalAmount|crmMoney:$currency} {if $hookDiscount.message}({$hookDiscount.message}){/if}
{if $pricesetFieldsCount }
{assign var="count" value= 0}
{foreach from=$lineItem item=pcount}
{assign var="lineItemCount" value=0}
{if $pcount neq \'skip\'}
{foreach from=$pcount item=p_count}
{assign var="lineItemCount" value=$lineItemCount+$p_count.participant_count}
{/foreach}
{if $lineItemCount < 1 }
{assign var="lineItemCount" value=1}
{/if}
{assign var="count" value=$count+$lineItemCount}
{/if}
{/foreach}
{ts}Total Participants{/ts}: {$count}
{/if}
{if $register_date}
{ts}Registration Date{/ts}: {$register_date|crmDate}
{/if}
{if $receive_date}
{ts}Transaction Date{/ts}: {$receive_date|crmDate}
{/if}
{if $financialTypeName}
{ts}Financial Type{/ts}: {$financialTypeName}
{/if}
{if $trxn_id}
{ts}Transaction #{/ts}: {$trxn_id}
{/if}
{if $paidBy}
{ts}Paid By{/ts}: {$paidBy}
{/if}
{if $checkNumber}
{ts}Check Number{/ts}: {$checkNumber}
{/if}
{if $billingName}
==========================================================={if $pricesetFieldsCount }===================={/if}
{ts}Billing Name and Address{/ts}
==========================================================={if $pricesetFieldsCount }===================={/if}
{$billingName}
{$address}
{/if}
{if $credit_card_type}
==========================================================={if $pricesetFieldsCount }===================={/if}
{ts}Credit Card Information{/ts}
==========================================================={if $pricesetFieldsCount }===================={/if}
{$credit_card_type}
{$credit_card_number}
{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}
{/if}
{/if}
{/if} {* End of conditional section for Paid events *}
{if $customPre}
{foreach from=$customPre item=customPr key=i}
==========================================================={if $pricesetFieldsCount }===================={/if}
{$customPre_grouptitle.$i}
==========================================================={if $pricesetFieldsCount }===================={/if}
{foreach from=$customPr item=customValue key=customName}
{if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
{$customName}: {$customValue}
{/if}
{/foreach}
{/foreach}
{/if}
{if $customPost}
{foreach from=$customPost item=customPos key=j}
==========================================================={if $pricesetFieldsCount }===================={/if}
{$customPost_grouptitle.$j}
==========================================================={if $pricesetFieldsCount }===================={/if}
{foreach from=$customPos item=customValue key=customName}
{if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
{$customName}: {$customValue}
{/if}
{/foreach}
{/foreach}
{/if}
{if $customProfile}
{foreach from=$customProfile.profile item=eachParticipant key=participantID}
==========================================================={if $pricesetFieldsCount }===================={/if}
{ts 1=$participantID+2}Participant Information - Participant %1{/ts}
==========================================================={if $pricesetFieldsCount }===================={/if}
{foreach from=$eachParticipant item=eachProfile key=pid}
----------------------------------------------------------{if $pricesetFieldsCount }--------------------{/if}
{$customProfile.title.$pid}
----------------------------------------------------------{if $pricesetFieldsCount }--------------------{/if}
{foreach from=$eachProfile item=val key=field}
{foreach from=$val item=v key=f}
{$field}: {$v}
{/foreach}
{/foreach}
{/foreach}
{/foreach}
{/if}
{if $customGroup}
{foreach from=$customGroup item=value key=customName}
=========================================================={if $pricesetFieldsCount }===================={/if}
{$customName}
=========================================================={if $pricesetFieldsCount }===================={/if}
{foreach from=$value item=v key=n}
{$n}: {$v}
{/foreach}
{/foreach}
{/if}
{if $event.allow_selfcancelxfer }
{ts 1=$event.selfcancelxfer_time}You may transfer your registration to another participant or cancel your registration up to %1 hours before the event.{/ts} {if $totalAmount}{ts}Cancellations are not refundable.{/ts}{/if}
{capture assign=selfService}{crmURL p=\'civicrm/event/selfsvcupdate\' q="reset=1&pid=`$participant.id`&{contact.checksum}" h=0 a=1 fe=1}{/capture}
{ts}Transfer or cancel your registration:{/ts} {$selfService}
{/if}
', '
{capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture}
{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture}
{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture}
{capture assign=tdfirstStyle}style="width: 180px; padding-bottom: 15px;"{/capture}
{capture assign=tdStyle}style="width: 100px;"{/capture}
{capture assign=participantTotal}style="margin: 0.5em 0 0.5em;padding: 0.5em;background-color: #999999;font-weight: bold;color: #FAFAFA;border-radius: 2px;"{/capture}
{assign var="greeting" value="{contact.email_greeting}"}{if $greeting} {$greeting}, {/if}
{if $event.confirm_email_text AND (not $isOnWaitlist AND not $isRequireApproval)}
{$event.confirm_email_text|htmlize}
{else}
{ts}Thank you for your registration.{/ts}
{if $participant_status}{ts 1=$participant_status}This is a confirmation that your registration has been received and your status has been updated to %1.{/ts}
{else}{if $isOnWaitlist}{ts}This is a confirmation that your registration has been received and your status has been updated to waitlisted.{/ts}{else}{ts}This is a confirmation that your registration has been received and your status has been updated to registered.{/ts}{/if}{/if}
{/if}
{if $isOnWaitlist}
{ts}You have been added to the WAIT LIST for this event.{/ts}
{if $isPrimary}
{ts}If space becomes available you will receive an email with a link to a web page where you can complete your registration.{/ts}
{/if}
{elseif $isRequireApproval}
{ts}Your registration has been submitted.{/ts}
{if $isPrimary}
{ts}Once your registration has been reviewed, you will receive an email with a link to a web page where you can complete the registration process.{/ts}
{/if}
{elseif $is_pay_later && !$isAmountzero && !$isAdditionalParticipant}
{$pay_later_receipt} {* FIXME: this might be text rather than HTML *}
{/if}
|
{ts}Event Information and Location{/ts}
|
{$event.event_title}
{$event.event_start_date|date_format:"%A"} {$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|date_format:"%Y%m%d" == $event.event_start_date|date_format:"%Y%m%d"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|date_format:"%A"} {$event.event_end_date|crmDate}{/if}{/if}
|
{if $conference_sessions}
{ts}Your schedule:{/ts}
|
{assign var=\'group_by_day\' value=\'NA\'}
{foreach from=$conference_sessions item=session}
{if $session.start_date|date_format:"%Y/%m/%d" != $group_by_day|date_format:"%Y/%m/%d"}
{assign var=\'group_by_day\' value=$session.start_date}
{$group_by_day|date_format:"%m/%d/%Y"}
{/if}
{$session.start_date|crmDate:0:1}{if $session.end_date}-{$session.end_date|crmDate:0:1}{/if} {$session.title}
{if $session.location} {$session.location} {/if}
{/foreach}
|
{/if}
{if $event.participant_role neq \'Attendee\' and $defaultRole}
{ts}Participant Role{/ts}
|
{$event.participant_role}
|
{/if}
{if $isShowLocation}
{$location.address.1.display|nl2br}
|
{/if}
{if $location.phone.1.phone || $location.email.1.email}
{ts}Event Contacts:{/ts}
|
{foreach from=$location.phone item=phone}
{if $phone.phone}
{if $phone.phone_type}
{$phone.phone_type_display}
{else}
{ts}Phone{/ts}
{/if}
|
{$phone.phone} {if $phone.phone_ext} {ts}ext.{/ts} {$phone.phone_ext}{/if}
|
{/if}
{/foreach}
{foreach from=$location.email item=eventEmail}
{if $eventEmail.email}
{ts}Email{/ts}
|
{$eventEmail.email}
|
{/if}
{/foreach}
{/if}
{if $event.is_public}
{capture assign=icalFeed}{crmURL p=\'civicrm/event/ical\' q="reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture}
{ts}Download iCalendar File{/ts}
|
{/if}
{if $event.is_share}
{capture assign=eventUrl}{crmURL p=\'civicrm/event/info\' q="id=`$event.id`&reset=1" a=true fe=1 h=1}{/capture}
{include file="CRM/common/SocialNetwork.tpl" emailMode=true url=$eventUrl title=$event.title pageURL=$eventUrl}
|
{/if}
{if $payer.name}
{ts}You were registered by:{/ts}
|
{$payer.name}
|
{/if}
{if $event.is_monetary and not $isRequireApproval}
{$event.fee_label}
|
{if $lineItem}
{foreach from=$lineItem item=value key=priceset}
{if $value neq \'skip\'}
{if $isPrimary}
{if $lineItem|@count GT 1} {* Header for multi participant registration cases. *}
{ts 1=$priceset+1}Participant %1{/ts} {$part.$priceset.info}
|
{/if}
{/if}
{* FIXME: style this table so that it looks like the text version (justification, etc.) *}
{ts}Item{/ts} |
{ts}Qty{/ts} |
{ts}Each{/ts} |
{if $dataArray}
{ts}SubTotal{/ts} |
{ts}Tax Rate{/ts} |
{ts}Tax Amount{/ts} |
{/if}
{ts}Total{/ts} |
{if $pricesetFieldsCount }{ts}Total Participants{/ts} | {/if}
{foreach from=$value item=line}
{if $line.html_type eq \'Text\'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description} {$line.description|truncate:30:"..."} {/if}
|
{$line.qty}
|
{$line.unit_price|crmMoney:$currency}
|
{if $dataArray}
{$line.unit_price*$line.qty|crmMoney}
|
{if $line.tax_rate != "" || $line.tax_amount != ""}
{$line.tax_rate|string_format:"%.2f"}%
|
{$line.tax_amount|crmMoney}
|
{else}
|
|
{/if}
{/if}
{$line.line_total+$line.tax_amount|crmMoney:$currency}
|
{if $pricesetFieldsCount }{$line.participant_count} | {/if}
{/foreach}
{if $individual}
{ts}Participant Total{/ts} |
{$individual.$priceset.totalAmtWithTax-$individual.$priceset.totalTaxAmt|crmMoney} |
{$individual.$priceset.totalTaxAmt|crmMoney} |
{$individual.$priceset.totalAmtWithTax|crmMoney} |
{/if}
|
{/if}
{/foreach}
{if $dataArray}
{ts} Amount Before Tax: {/ts}
|
{$totalAmount-$totalTaxAmount|crmMoney}
|
{foreach from=$dataArray item=value key=priceset}
{if $priceset || $priceset == 0}
{$taxTerm} {$priceset|string_format:"%.2f"}% |
{$value|crmMoney:$currency} |
{else}
{ts}No{/ts} {$taxTerm} |
{$value|crmMoney:$currency} |
{/if}
{/foreach}
{/if}
{/if}
{if $amounts && !$lineItem}
{foreach from=$amounts item=amnt key=level}
{$amnt.amount|crmMoney:$currency} {$amnt.label}
|
{/foreach}
{/if}
{if $totalTaxAmount}
{ts}Total Tax Amount{/ts}
|
{$totalTaxAmount|crmMoney:$currency}
|
{/if}
{if $isPrimary}
{ts}Total Amount{/ts}
|
{$totalAmount|crmMoney:$currency} {if $hookDiscount.message}({$hookDiscount.message}){/if}
|
{if $pricesetFieldsCount }
{ts}Total Participants{/ts} |
{assign var="count" value= 0}
{foreach from=$lineItem item=pcount}
{assign var="lineItemCount" value=0}
{if $pcount neq \'skip\'}
{foreach from=$pcount item=p_count}
{assign var="lineItemCount" value=$lineItemCount+$p_count.participant_count}
{/foreach}
{if $lineItemCount < 1 }
{assign var="lineItemCount" value=1}
{/if}
{assign var="count" value=$count+$lineItemCount}
{/if}
{/foreach}
{$count}
|
{/if}
{if $register_date}
{ts}Registration Date{/ts}
|
{$register_date|crmDate}
|
{/if}
{if $receive_date}
{ts}Transaction Date{/ts}
|
{$receive_date|crmDate}
|
{/if}
{if $financialTypeName}
{ts}Financial Type{/ts}
|
{$financialTypeName}
|
{/if}
{if $trxn_id}
{ts}Transaction #{/ts}
|
{$trxn_id}
|
{/if}
{if $paidBy}
{ts}Paid By{/ts}
|
{$paidBy}
|
{/if}
{if $checkNumber}
{ts}Check Number{/ts}
|
{$checkNumber}
|
{/if}
{if $billingName}
{ts}Billing Name and Address{/ts}
|
{$billingName}
{$address|nl2br}
|
{/if}
{if $credit_card_type}
{ts}Credit Card Information{/ts}
|
{$credit_card_type}
{$credit_card_number}
{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}
|
{/if}
{/if}
{/if} {* End of conditional section for Paid events *}
{if $customPre}
{foreach from=$customPre item=customPr key=i}
{$customPre_grouptitle.$i} |
{foreach from=$customPr item=customValue key=customName}
{if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
{$customName} |
{$customValue} |
{/if}
{/foreach}
{/foreach}
{/if}
{if $customPost}
{foreach from=$customPost item=customPos key=j}
{$customPost_grouptitle.$j} |
{foreach from=$customPos item=customValue key=customName}
{if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
{$customName} |
{$customValue} |
{/if}
{/foreach}
{/foreach}
{/if}
{if $customProfile}
{foreach from=$customProfile.profile item=eachParticipant key=participantID}
{ts 1=$participantID+2}Participant %1{/ts} |
{foreach from=$eachParticipant item=eachProfile key=pid}
{$customProfile.title.$pid} |
{foreach from=$eachProfile item=val key=field}
{foreach from=$val item=v key=f}
{$field} |
{$v} |
{/foreach}
{/foreach}
{/foreach}
{/foreach}
{/if}
{if $customGroup}
{foreach from=$customGroup item=value key=customName}
{$customName}
|
{foreach from=$value item=v key=n}
{$n}
|
{$v}
|
{/foreach}
{/foreach}
{/if}
{if $event.allow_selfcancelxfer }
|
{ts 1=$event.selfcancelxfer_time}You may transfer your registration to another participant or cancel your registration up to %1 hours before the event.{/ts} {if $totalAmount}{ts}Cancellations are not refundable.{/ts}{/if}
{capture assign=selfService}{crmURL p=\'civicrm/event/selfsvcupdate\' q="reset=1&pid=`$participant.id`&{contact.checksum}" h=0 a=1 fe=1}{/capture}
{ts}Click here to transfer or cancel your registration.{/ts}
|
{/if}
', @tpl_ovid_event_online_receipt, 0, 1) ,
('Events - Receipt only', 'Receipt for {if $events_in_cart} Event Registration{/if} - {contact.display_name}
', '{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}{$greeting},{/if}
{if $is_pay_later}
This is being sent to you as an acknowledgement that you have registered one or more members for the following workshop, event or purchase. Please note, however, that the status of your payment is pending, and the registration for this event will not be completed until your payment is received.
{else}
This is being sent to you as a {if $is_refund}confirmation of refund{else}receipt of payment made{/if} for the following workshop, event registration or purchase.
{/if}
{if $is_pay_later}
{$pay_later_receipt}
{/if}
Your order number is #{$transaction_id}. {if $line_items && !$is_refund} Information about the workshops will be sent separately to each participant.{/if}
Here\'s a summary of your transaction placed on {$transaction_date|date_format:"%D %I:%M %p %Z"}:
{if $billing_name}
===========================================================
{ts}Billing Name and Address{/ts}
===========================================================
{$billing_name}
{$billing_street_address}
{$billing_city}, {$billing_state} {$billing_postal_code}
{$email}
{/if}
{if $source}
{$source}
{/if}
{foreach from=$line_items item=line_item}
{$line_item.event->title} ({$line_item.event->start_date|date_format:"%D"})
{if $line_item.event->is_show_location}
{$line_item.location.address.1.display|strip_tags:false}
{/if}{*End of isShowLocation condition*}
{$line_item.event->start_date|date_format:"%D %I:%M %p"} - {$line_item.event->end_date|date_format:"%I:%M %p"}
Quantity: {$line_item.num_participants}
{if $line_item.num_participants > 0}
{foreach from=$line_item.participants item=participant}
{$participant.display_name}
{/foreach}
{/if}
{if $line_item.num_waiting_participants > 0}
Waitlisted:
{foreach from=$line_item.waiting_participants item=participant}
{$participant.display_name}
{/foreach}
{/if}
Cost: {$line_item.cost|crmMoney:$currency|string_format:"%10s"}
Total For This Event: {$line_item.amount|crmMoney:$currency|string_format:"%10s"}
{/foreach}
{if $discounts}
Subtotal: {$sub_total|crmMoney:$currency|string_format:"%10s"}
--------------------------------------
Discounts
{foreach from=$discounts key=myId item=i}
{$i.title}: -{$i.amount|crmMoney:$currency|string_format:"%10s"}
{/foreach}
{/if}
======================================
Total: {$total|crmMoney:$currency|string_format:"%10s"}
{if $credit_card_type}
===========================================================
{ts}Payment Information{/ts}
===========================================================
{$credit_card_type}
{$credit_card_number}
{ts}Expires{/ts}: {$credit_card_exp_date.M}/{$credit_card_exp_date.Y}
{/if}
If you have questions about the status of your registration or purchase please feel free to contact us.
', '
{capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture}
{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture}
{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture}
{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}{$greeting}, {/if}
{if $is_pay_later}
This is being sent to you as an acknowledgement that you have registered one or more members for the following workshop, event or purchase. Please note, however, that the status of your payment is pending, and the registration for this event will not be completed until your payment is received.
{else}
This is being sent to you as a {if $is_refund}confirmation of refund{else}receipt of payment made{/if} for the following workshop, event registration or purchase.
{/if}
{if $is_pay_later}
{$pay_later_receipt}
{/if}
Your order number is #{$transaction_id}. {if $line_items && !$is_refund} Information about the workshops will be sent separately to each participant.{/if}
Here\'s a summary of your transaction placed on {$transaction_date|date_format:"%D %I:%M %p %Z"}:
{if $billing_name}
{ts}Billing Name and Address{/ts}
|
{$billing_name}
{$billing_street_address}
{$billing_city}, {$billing_state} {$billing_postal_code}
{$email}
|
{/if}
{if $credit_card_type}
{ts}Credit Card Information{/ts}
|
{$credit_card_type}
{$credit_card_number}
{ts}Expires{/ts}: {$credit_card_exp_date.M}/{$credit_card_exp_date.Y}
|
{/if}
{if $source}
{$source}
{/if}
{if $line_items}
Event
|
Participants
|
{/if}
Price
|
Total
|
{foreach from=$line_items item=line_item}
{$line_item.event->title} ({$line_item.event->start_date|date_format:"%D"})
{if $line_item.event->is_show_location}
{$line_item.location.address.1.display|nl2br}
{/if}{*End of isShowLocation condition*}
{$line_item.event->start_date|date_format:"%D %I:%M %p"} - {$line_item.event->end_date|date_format:"%I:%M %p"}
|
{$line_item.num_participants}
{if $line_item.num_participants > 0}
{foreach from=$line_item.participants item=participant}
{$participant.display_name}
{/foreach}
{/if}
{if $line_item.num_waiting_participants > 0}
Waitlisted:
{foreach from=$line_item.waiting_participants item=participant}
{$participant.display_name}
{/foreach}
{/if}
|
{$line_item.cost|crmMoney:$currency|string_format:"%10s"}
|
{$line_item.amount|crmMoney:$currency|string_format:"%10s"}
|
{/foreach}
{if $discounts}
|
|
Subtotal:
|
{$sub_total|crmMoney:$currency|string_format:"%10s"}
|
{foreach from=$discounts key=myId item=i}
{$i.title}
|
|
|
-{$i.amount}
|
{/foreach}
{/if}
{if $line_items}
|
|
{/if}
Total:
|
{$total|crmMoney:$currency|string_format:"%10s"}
|
If you have questions about the status of your registration or purchase please feel free to contact us.
', @tpl_ovid_event_registration_receipt, 1, 0),
('Events - Receipt only', 'Receipt for {if $events_in_cart} Event Registration{/if} - {contact.display_name}
', '{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}{$greeting},{/if}
{if $is_pay_later}
This is being sent to you as an acknowledgement that you have registered one or more members for the following workshop, event or purchase. Please note, however, that the status of your payment is pending, and the registration for this event will not be completed until your payment is received.
{else}
This is being sent to you as a {if $is_refund}confirmation of refund{else}receipt of payment made{/if} for the following workshop, event registration or purchase.
{/if}
{if $is_pay_later}
{$pay_later_receipt}
{/if}
Your order number is #{$transaction_id}. {if $line_items && !$is_refund} Information about the workshops will be sent separately to each participant.{/if}
Here\'s a summary of your transaction placed on {$transaction_date|date_format:"%D %I:%M %p %Z"}:
{if $billing_name}
===========================================================
{ts}Billing Name and Address{/ts}
===========================================================
{$billing_name}
{$billing_street_address}
{$billing_city}, {$billing_state} {$billing_postal_code}
{$email}
{/if}
{if $source}
{$source}
{/if}
{foreach from=$line_items item=line_item}
{$line_item.event->title} ({$line_item.event->start_date|date_format:"%D"})
{if $line_item.event->is_show_location}
{$line_item.location.address.1.display|strip_tags:false}
{/if}{*End of isShowLocation condition*}
{$line_item.event->start_date|date_format:"%D %I:%M %p"} - {$line_item.event->end_date|date_format:"%I:%M %p"}
Quantity: {$line_item.num_participants}
{if $line_item.num_participants > 0}
{foreach from=$line_item.participants item=participant}
{$participant.display_name}
{/foreach}
{/if}
{if $line_item.num_waiting_participants > 0}
Waitlisted:
{foreach from=$line_item.waiting_participants item=participant}
{$participant.display_name}
{/foreach}
{/if}
Cost: {$line_item.cost|crmMoney:$currency|string_format:"%10s"}
Total For This Event: {$line_item.amount|crmMoney:$currency|string_format:"%10s"}
{/foreach}
{if $discounts}
Subtotal: {$sub_total|crmMoney:$currency|string_format:"%10s"}
--------------------------------------
Discounts
{foreach from=$discounts key=myId item=i}
{$i.title}: -{$i.amount|crmMoney:$currency|string_format:"%10s"}
{/foreach}
{/if}
======================================
Total: {$total|crmMoney:$currency|string_format:"%10s"}
{if $credit_card_type}
===========================================================
{ts}Payment Information{/ts}
===========================================================
{$credit_card_type}
{$credit_card_number}
{ts}Expires{/ts}: {$credit_card_exp_date.M}/{$credit_card_exp_date.Y}
{/if}
If you have questions about the status of your registration or purchase please feel free to contact us.
', '
{capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture}
{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture}
{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture}
{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}{$greeting}, {/if}
{if $is_pay_later}
This is being sent to you as an acknowledgement that you have registered one or more members for the following workshop, event or purchase. Please note, however, that the status of your payment is pending, and the registration for this event will not be completed until your payment is received.
{else}
This is being sent to you as a {if $is_refund}confirmation of refund{else}receipt of payment made{/if} for the following workshop, event registration or purchase.
{/if}
{if $is_pay_later}
{$pay_later_receipt}
{/if}
Your order number is #{$transaction_id}. {if $line_items && !$is_refund} Information about the workshops will be sent separately to each participant.{/if}
Here\'s a summary of your transaction placed on {$transaction_date|date_format:"%D %I:%M %p %Z"}:
{if $billing_name}
{ts}Billing Name and Address{/ts}
|
{$billing_name}
{$billing_street_address}
{$billing_city}, {$billing_state} {$billing_postal_code}
{$email}
|
{/if}
{if $credit_card_type}
{ts}Credit Card Information{/ts}
|
{$credit_card_type}
{$credit_card_number}
{ts}Expires{/ts}: {$credit_card_exp_date.M}/{$credit_card_exp_date.Y}
|
{/if}
{if $source}
{$source}
{/if}
{if $line_items}
Event
|
Participants
|
{/if}
Price
|
Total
|
{foreach from=$line_items item=line_item}
{$line_item.event->title} ({$line_item.event->start_date|date_format:"%D"})
{if $line_item.event->is_show_location}
{$line_item.location.address.1.display|nl2br}
{/if}{*End of isShowLocation condition*}
{$line_item.event->start_date|date_format:"%D %I:%M %p"} - {$line_item.event->end_date|date_format:"%I:%M %p"}
|
{$line_item.num_participants}
{if $line_item.num_participants > 0}
{foreach from=$line_item.participants item=participant}
{$participant.display_name}
{/foreach}
{/if}
{if $line_item.num_waiting_participants > 0}
Waitlisted:
{foreach from=$line_item.waiting_participants item=participant}
{$participant.display_name}
{/foreach}
{/if}
|
{$line_item.cost|crmMoney:$currency|string_format:"%10s"}
|
{$line_item.amount|crmMoney:$currency|string_format:"%10s"}
|
{/foreach}
{if $discounts}
|
|
Subtotal:
|
{$sub_total|crmMoney:$currency|string_format:"%10s"}
|
{foreach from=$discounts key=myId item=i}
{$i.title}
|
|
|
-{$i.amount}
|
{/foreach}
{/if}
{if $line_items}
|
|
{/if}
Total:
|
{$total|crmMoney:$currency|string_format:"%10s"}
|
If you have questions about the status of your registration or purchase please feel free to contact us.
', @tpl_ovid_event_registration_receipt, 0, 1) ,
('Events - Registration Cancellation Notice', '{ts 1=$event.event_title}Event Registration Cancelled for %1{/ts} - {contact.display_name}
', '{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}{$greeting},{/if}
{ts}Your Event Registration has been cancelled.{/ts}
===========================================================
{ts}Event Information and Location{/ts}
===========================================================
{$event.event_title}
{$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|date_format:"%Y%m%d" == $event.event_start_date|date_format:"%Y%m%d"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate}{/if}{/if}
{ts}Participant Role{/ts}: {$participant.role}
{if $isShowLocation}
{$event.location.address.1.display|strip_tags:false}
{/if}{*End of isShowLocation condition*}
{if $event.location.phone.1.phone || $event.location.email.1.email}
{ts}Event Contacts:{/ts}
{foreach from=$event.location.phone item=phone}
{if $phone.phone}
{if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}: {$phone.phone}{/if}
{/foreach}
{foreach from=$event.location.email item=eventEmail}
{if $eventEmail.email}
{ts}Email{/ts}: {$eventEmail.email}{/if}{/foreach}
{/if}
{if $contact.email}
===========================================================
{ts}Registered Email{/ts}
===========================================================
{$contact.email}
{/if}
{if $register_date}
{ts}Registration Date{/ts}: {$participant.register_date|crmDate}
{/if}
{ts 1=$domain.phone 2=$domain.email}Please contact us at %1 or send email to %2 if you have questions.{/ts}
', '
{capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture}
{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture}
{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture}
{assign var="greeting" value="{contact.email_greeting}"}{if $greeting} {$greeting}, {/if}
{ts}Your Event Registration has been cancelled.{/ts}
|
{ts}Event Information and Location{/ts}
|
{$event.event_title}
{$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|date_format:"%Y%m%d" == $event.event_start_date|date_format:"%Y%m%d"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate}{/if}{/if}
|
{ts}Participant Role{/ts}:
|
{$participant.role}
|
{if $isShowLocation}
{$event.location.address.1.display|nl2br}
|
{/if}
{if $event.location.phone.1.phone || $event.location.email.1.email}
{ts}Event Contacts:{/ts}
|
{foreach from=$event.location.phone item=phone}
{if $phone.phone}
{if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}
|
{$phone.phone}
|
{/if}
{/foreach}
{foreach from=$event.location.email item=eventEmail}
{if $eventEmail.email}
{ts}Email{/ts}
|
{$eventEmail.email}
|
{/if}
{/foreach}
{/if}
{if $contact.email}
{ts}Registered Email{/ts}
|
{$contact.email}
|
{/if}
{if $register_date}
{ts}Registration Date{/ts}
|
{$participant.register_date|crmDate}
|
{/if}
|
{ts 1=$domain.phone 2=$domain.email}Please contact us at %1 or send email to %2 if you have questions.{/ts}
|
', @tpl_ovid_participant_cancelled, 1, 0),
('Events - Registration Cancellation Notice', '{ts 1=$event.event_title}Event Registration Cancelled for %1{/ts} - {contact.display_name}
', '{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}{$greeting},{/if}
{ts}Your Event Registration has been cancelled.{/ts}
===========================================================
{ts}Event Information and Location{/ts}
===========================================================
{$event.event_title}
{$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|date_format:"%Y%m%d" == $event.event_start_date|date_format:"%Y%m%d"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate}{/if}{/if}
{ts}Participant Role{/ts}: {$participant.role}
{if $isShowLocation}
{$event.location.address.1.display|strip_tags:false}
{/if}{*End of isShowLocation condition*}
{if $event.location.phone.1.phone || $event.location.email.1.email}
{ts}Event Contacts:{/ts}
{foreach from=$event.location.phone item=phone}
{if $phone.phone}
{if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}: {$phone.phone}{/if}
{/foreach}
{foreach from=$event.location.email item=eventEmail}
{if $eventEmail.email}
{ts}Email{/ts}: {$eventEmail.email}{/if}{/foreach}
{/if}
{if $contact.email}
===========================================================
{ts}Registered Email{/ts}
===========================================================
{$contact.email}
{/if}
{if $register_date}
{ts}Registration Date{/ts}: {$participant.register_date|crmDate}
{/if}
{ts 1=$domain.phone 2=$domain.email}Please contact us at %1 or send email to %2 if you have questions.{/ts}
', '
{capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture}
{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture}
{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture}
{assign var="greeting" value="{contact.email_greeting}"}{if $greeting} {$greeting}, {/if}
{ts}Your Event Registration has been cancelled.{/ts}
|
{ts}Event Information and Location{/ts}
|
{$event.event_title}
{$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|date_format:"%Y%m%d" == $event.event_start_date|date_format:"%Y%m%d"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate}{/if}{/if}
|
{ts}Participant Role{/ts}:
|
{$participant.role}
|
{if $isShowLocation}
{$event.location.address.1.display|nl2br}
|
{/if}
{if $event.location.phone.1.phone || $event.location.email.1.email}
{ts}Event Contacts:{/ts}
|
{foreach from=$event.location.phone item=phone}
{if $phone.phone}
{if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}
|
{$phone.phone}
|
{/if}
{/foreach}
{foreach from=$event.location.email item=eventEmail}
{if $eventEmail.email}
{ts}Email{/ts}
|
{$eventEmail.email}
|
{/if}
{/foreach}
{/if}
{if $contact.email}
{ts}Registered Email{/ts}
|
{$contact.email}
|
{/if}
{if $register_date}
{ts}Registration Date{/ts}
|
{$participant.register_date|crmDate}
|
{/if}
|
{ts 1=$domain.phone 2=$domain.email}Please contact us at %1 or send email to %2 if you have questions.{/ts}
|
', @tpl_ovid_participant_cancelled, 0, 1) ,
('Events - Registration Confirmation Invite', '{ts 1=$event.event_title}Confirm your registration for %1{/ts} - {contact.display_name}
', '{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}{$greeting},{/if}
{ts}This is an invitation to complete your registration that was initially waitlisted.{/ts}
{if !$isAdditional and $participant.id}
===========================================================
{ts}Confirm Your Registration{/ts}
===========================================================
{capture assign=confirmUrl}{crmURL p=\'civicrm/event/confirm\' q="reset=1&participantId=`$participant.id`&cs=`$checksumValue`" a=true h=0 fe=1}{/capture}
Click this link to go to a web page where you can confirm your registration online:
{$confirmUrl}
{/if}
{if $event.allow_selfcancelxfer }
{ts 1=$event.selfcancelxfer_time}You may transfer your registration to another participant or cancel your registration up to %1 hours before the event.{/ts} {if $totalAmount}{ts}Cancellations are not refundable.{/ts}{/if}
{capture assign=selfService}{crmURL p=\'civicrm/event/selfsvcupdate\' q="reset=1&pid=`$participant.id`&{contact.checksum}" h=0 a=1 fe=1}{/capture}
{ts}Transfer or cancel your registration:{/ts} {$selfService}
{/if}
===========================================================
{ts}Event Information and Location{/ts}
===========================================================
{$event.event_title}
{$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|date_format:"%Y%m%d" == $event.event_start_date|date_format:"%Y%m%d"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate}{/if}{/if}
{if $conference_sessions}
{ts}Your schedule:{/ts}
{assign var=\'group_by_day\' value=\'NA\'}
{foreach from=$conference_sessions item=session}
{if $session.start_date|date_format:"%Y/%m/%d" != $group_by_day|date_format:"%Y/%m/%d"}
{assign var=\'group_by_day\' value=$session.start_date}
{$group_by_day|date_format:"%m/%d/%Y"}
{/if}
{$session.start_date|crmDate:0:1}{if $session.end_date}-{$session.end_date|crmDate:0:1}{/if} {$session.title}
{if $session.location} {$session.location}{/if}
{/foreach}
{/if}
{ts}Participant Role{/ts}: {$participant.role}
{if $isShowLocation}
{$event.location.address.1.display|strip_tags:false}
{/if}{*End of isShowLocation condition*}
{if $event.location.phone.1.phone || $event.location.email.1.email}
{ts}Event Contacts:{/ts}
{foreach from=$event.location.phone item=phone}
{if $phone.phone}
{if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}: {$phone.phone}{/if}
{/foreach}
{foreach from=$event.location.email item=eventEmail}
{if $eventEmail.email}
{ts}Email{/ts}: {$eventEmail.email}{/if}{/foreach}
{/if}
{if $event.is_public}
{capture assign=icalFeed}{crmURL p=\'civicrm/event/ical\' q="reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture}
{ts}Download iCalendar File:{/ts} {$icalFeed}
{/if}
{if $contact.email}
===========================================================
{ts}Registered Email{/ts}
===========================================================
{$contact.email}
{/if}
{if $register_date}
{ts}Registration Date{/ts}: {$participant.register_date|crmDate}
{/if}
{ts 1=$domain.phone 2=$domain.email}Please contact us at %1 or send email to %2 if you have questions.{/ts}
', '
{capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture}
{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture}
{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture}
{assign var="greeting" value="{contact.email_greeting}"}{if $greeting} {$greeting}, {/if}
{ts}This is an invitation to complete your registration that was initially waitlisted.{/ts}
|
{if !$isAdditional and $participant.id}
{ts}Confirm Your Registration{/ts}
|
{capture assign=confirmUrl}{crmURL p=\'civicrm/event/confirm\' q="reset=1&participantId=`$participant.id`&cs=`$checksumValue`" a=true h=0 fe=1}{/capture}
{ts}Click here to confirm and complete your registration{/ts}
|
{/if}
{if $event.allow_selfcancelxfer }
{ts}This event allows for{/ts}
{capture assign=selfService}{crmURL p=\'civicrm/event/selfsvcupdate\' q="reset=1&pid=`$participant.id`&{contact.checksum}" h=0 a=1 fe=1}{/capture}
{ts}self service cancel or transfer{/ts}
{/if}
{ts}Event Information and Location{/ts}
|
{$event.event_title}
{$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|date_format:"%Y%m%d" == $event.event_start_date|date_format:"%Y%m%d"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate}{/if}{/if}
|
{if $conference_sessions}
{ts}Your schedule:{/ts}
|
{assign var=\'group_by_day\' value=\'NA\'}
{foreach from=$conference_sessions item=session}
{if $session.start_date|date_format:"%Y/%m/%d" != $group_by_day|date_format:"%Y/%m/%d"}
{assign var=\'group_by_day\' value=$session.start_date}
{$group_by_day|date_format:"%m/%d/%Y"}
{/if}
{$session.start_date|crmDate:0:1}{if $session.end_date}-{$session.end_date|crmDate:0:1}{/if} {$session.title}
{if $session.location} {$session.location} {/if}
{/foreach}
|
{/if}
{ts}Participant Role{/ts}:
|
{$participant.role}
|
{if $isShowLocation}
{$event.location.address.1.display|nl2br}
|
{/if}
{if $event.location.phone.1.phone || $event.location.email.1.email}
{ts}Event Contacts:{/ts}
|
{foreach from=$event.location.phone item=phone}
{if $phone.phone}
{if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}
|
{$phone.phone}
|
{/if}
{/foreach}
{foreach from=$event.location.email item=eventEmail}
{if $eventEmail.email}
{ts}Email{/ts}
|
{$eventEmail.email}
|
{/if}
{/foreach}
{/if}
{if $event.is_public}
{capture assign=icalFeed}{crmURL p=\'civicrm/event/ical\' q="reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture}
{ts}Download iCalendar File{/ts}
|
{/if}
{if $contact.email}
{ts}Registered Email{/ts}
|
{$contact.email}
|
{/if}
{if $register_date}
{ts}Registration Date{/ts}
|
{$participant.register_date|crmDate}
|
{/if}
|
{if $event.allow_selfcancelxfer }
{ts 1=$event.selfcancelxfer_time}You may transfer your registration to another participant or cancel your registration up to %1 hours before the event.{/ts} {if $totalAmount}{ts}Cancellations are not refundable.{/ts}{/if}
{capture assign=selfService}{crmURL p=\'civicrm/event/selfsvcupdate\' q="reset=1&pid=`$participant.id`&{contact.checksum}" h=0 a=1 fe=1}{/capture}
{ts}Click here to transfer or cancel your registration.{/ts}
|
{/if}
{ts 1=$domain.phone 2=$domain.email}Please contact us at %1 or send email to %2 if you have questions.{/ts}
|
', @tpl_ovid_participant_confirm, 1, 0),
('Events - Registration Confirmation Invite', '{ts 1=$event.event_title}Confirm your registration for %1{/ts} - {contact.display_name}
', '{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}{$greeting},{/if}
{ts}This is an invitation to complete your registration that was initially waitlisted.{/ts}
{if !$isAdditional and $participant.id}
===========================================================
{ts}Confirm Your Registration{/ts}
===========================================================
{capture assign=confirmUrl}{crmURL p=\'civicrm/event/confirm\' q="reset=1&participantId=`$participant.id`&cs=`$checksumValue`" a=true h=0 fe=1}{/capture}
Click this link to go to a web page where you can confirm your registration online:
{$confirmUrl}
{/if}
{if $event.allow_selfcancelxfer }
{ts 1=$event.selfcancelxfer_time}You may transfer your registration to another participant or cancel your registration up to %1 hours before the event.{/ts} {if $totalAmount}{ts}Cancellations are not refundable.{/ts}{/if}
{capture assign=selfService}{crmURL p=\'civicrm/event/selfsvcupdate\' q="reset=1&pid=`$participant.id`&{contact.checksum}" h=0 a=1 fe=1}{/capture}
{ts}Transfer or cancel your registration:{/ts} {$selfService}
{/if}
===========================================================
{ts}Event Information and Location{/ts}
===========================================================
{$event.event_title}
{$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|date_format:"%Y%m%d" == $event.event_start_date|date_format:"%Y%m%d"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate}{/if}{/if}
{if $conference_sessions}
{ts}Your schedule:{/ts}
{assign var=\'group_by_day\' value=\'NA\'}
{foreach from=$conference_sessions item=session}
{if $session.start_date|date_format:"%Y/%m/%d" != $group_by_day|date_format:"%Y/%m/%d"}
{assign var=\'group_by_day\' value=$session.start_date}
{$group_by_day|date_format:"%m/%d/%Y"}
{/if}
{$session.start_date|crmDate:0:1}{if $session.end_date}-{$session.end_date|crmDate:0:1}{/if} {$session.title}
{if $session.location} {$session.location}{/if}
{/foreach}
{/if}
{ts}Participant Role{/ts}: {$participant.role}
{if $isShowLocation}
{$event.location.address.1.display|strip_tags:false}
{/if}{*End of isShowLocation condition*}
{if $event.location.phone.1.phone || $event.location.email.1.email}
{ts}Event Contacts:{/ts}
{foreach from=$event.location.phone item=phone}
{if $phone.phone}
{if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}: {$phone.phone}{/if}
{/foreach}
{foreach from=$event.location.email item=eventEmail}
{if $eventEmail.email}
{ts}Email{/ts}: {$eventEmail.email}{/if}{/foreach}
{/if}
{if $event.is_public}
{capture assign=icalFeed}{crmURL p=\'civicrm/event/ical\' q="reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture}
{ts}Download iCalendar File:{/ts} {$icalFeed}
{/if}
{if $contact.email}
===========================================================
{ts}Registered Email{/ts}
===========================================================
{$contact.email}
{/if}
{if $register_date}
{ts}Registration Date{/ts}: {$participant.register_date|crmDate}
{/if}
{ts 1=$domain.phone 2=$domain.email}Please contact us at %1 or send email to %2 if you have questions.{/ts}
', '
{capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture}
{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture}
{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture}
{assign var="greeting" value="{contact.email_greeting}"}{if $greeting} {$greeting}, {/if}
{ts}This is an invitation to complete your registration that was initially waitlisted.{/ts}
|
{if !$isAdditional and $participant.id}
{ts}Confirm Your Registration{/ts}
|
{capture assign=confirmUrl}{crmURL p=\'civicrm/event/confirm\' q="reset=1&participantId=`$participant.id`&cs=`$checksumValue`" a=true h=0 fe=1}{/capture}
{ts}Click here to confirm and complete your registration{/ts}
|
{/if}
{if $event.allow_selfcancelxfer }
{ts}This event allows for{/ts}
{capture assign=selfService}{crmURL p=\'civicrm/event/selfsvcupdate\' q="reset=1&pid=`$participant.id`&{contact.checksum}" h=0 a=1 fe=1}{/capture}
{ts}self service cancel or transfer{/ts}
{/if}
{ts}Event Information and Location{/ts}
|
{$event.event_title}
{$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|date_format:"%Y%m%d" == $event.event_start_date|date_format:"%Y%m%d"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate}{/if}{/if}
|
{if $conference_sessions}
{ts}Your schedule:{/ts}
|
{assign var=\'group_by_day\' value=\'NA\'}
{foreach from=$conference_sessions item=session}
{if $session.start_date|date_format:"%Y/%m/%d" != $group_by_day|date_format:"%Y/%m/%d"}
{assign var=\'group_by_day\' value=$session.start_date}
{$group_by_day|date_format:"%m/%d/%Y"}
{/if}
{$session.start_date|crmDate:0:1}{if $session.end_date}-{$session.end_date|crmDate:0:1}{/if} {$session.title}
{if $session.location} {$session.location} {/if}
{/foreach}
|
{/if}
{ts}Participant Role{/ts}:
|
{$participant.role}
|
{if $isShowLocation}
{$event.location.address.1.display|nl2br}
|
{/if}
{if $event.location.phone.1.phone || $event.location.email.1.email}
{ts}Event Contacts:{/ts}
|
{foreach from=$event.location.phone item=phone}
{if $phone.phone}
{if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}
|
{$phone.phone}
|
{/if}
{/foreach}
{foreach from=$event.location.email item=eventEmail}
{if $eventEmail.email}
{ts}Email{/ts}
|
{$eventEmail.email}
|
{/if}
{/foreach}
{/if}
{if $event.is_public}
{capture assign=icalFeed}{crmURL p=\'civicrm/event/ical\' q="reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture}
{ts}Download iCalendar File{/ts}
|
{/if}
{if $contact.email}
{ts}Registered Email{/ts}
|
{$contact.email}
|
{/if}
{if $register_date}
{ts}Registration Date{/ts}
|
{$participant.register_date|crmDate}
|
{/if}
|
{if $event.allow_selfcancelxfer }
{ts 1=$event.selfcancelxfer_time}You may transfer your registration to another participant or cancel your registration up to %1 hours before the event.{/ts} {if $totalAmount}{ts}Cancellations are not refundable.{/ts}{/if}
{capture assign=selfService}{crmURL p=\'civicrm/event/selfsvcupdate\' q="reset=1&pid=`$participant.id`&{contact.checksum}" h=0 a=1 fe=1}{/capture}
{ts}Click here to transfer or cancel your registration.{/ts}
|
{/if}
{ts 1=$domain.phone 2=$domain.email}Please contact us at %1 or send email to %2 if you have questions.{/ts}
|
', @tpl_ovid_participant_confirm, 0, 1) ,
('Events - Pending Registration Expiration Notice', '{ts 1=$event.event_title}Event registration has expired for %1{/ts} - {contact.display_name}
', '{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}{$greeting},{/if}
{ts 1=$event.event_title}Your pending event registration for %1 has expired
because you did not confirm your registration.{/ts}
{ts 1=$domain.phone 2=$domain.email}Please contact us at %1 or send email to %2 if you have questions
or want to inquire about reinstating your registration for this event.{/ts}
===========================================================
{ts}Event Information and Location{/ts}
===========================================================
{$event.event_title}
{$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|date_format:"%Y%m%d" == $event.event_start_date|date_format:"%Y%m%d"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate}{/if}{/if}
{ts}Participant Role{/ts}: {$participant.role}
{if $isShowLocation}
{$event.location.address.1.display|strip_tags:false}
{/if}{*End of isShowLocation condition*}
{if $event.location.phone.1.phone || $event.location.email.1.email}
{ts}Event Contacts:{/ts}
{foreach from=$event.location.phone item=phone}
{if $phone.phone}
{if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}: {$phone.phone}{/if}
{/foreach}
{foreach from=$event.location.email item=eventEmail}
{if $eventEmail.email}
{ts}Email{/ts}: {$eventEmail.email}{/if}{/foreach}
{/if}
{if $contact.email}
===========================================================
{ts}Registered Email{/ts}
===========================================================
{$contact.email}
{/if}
{if $register_date}
{ts}Registration Date{/ts}: {$participant.register_date|crmDate}
{/if}
{ts 1=$domain.phone 2=$domain.email}Please contact us at %1 or send email to %2 if you have questions.{/ts}
', '
{capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture}
{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture}
{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture}
{assign var="greeting" value="{contact.email_greeting}"}{if $greeting} {$greeting}, {/if}
{ts 1=$event.event_title}Your pending event registration for %1 has expired
because you did not confirm your registration.{/ts}
{ts 1=$domain.phone 2=$domain.email}Please contact us at %1 or send email to %2 if you have questions
or want to inquire about reinstating your registration for this event.{/ts}
|
{ts}Event Information and Location{/ts}
|
{$event.event_title}
{$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|date_format:"%Y%m%d" == $event.event_start_date|date_format:"%Y%m%d"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate}{/if}{/if}
|
{ts}Participant Role{/ts}:
|
{$participant.role}
|
{if $isShowLocation}
{$event.location.address.1.display|nl2br}
|
{/if}
{if $event.location.phone.1.phone || $event.location.email.1.email}
{ts}Event Contacts:{/ts}
|
{foreach from=$event.location.phone item=phone}
{if $phone.phone}
{if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}
|
{$phone.phone}
|
{/if}
{/foreach}
{foreach from=$event.location.email item=eventEmail}
{if $eventEmail.email}
{ts}Email{/ts}
|
{$eventEmail.email}
|
{/if}
{/foreach}
{/if}
{if $contact.email}
{ts}Registered Email{/ts}
|
{$contact.email}
|
{/if}
{if $register_date}
{ts}Registration Date{/ts}
|
{$participant.register_date|crmDate}
|
{/if}
|
{ts 1=$domain.phone 2=$domain.email}Please contact us at %1 or send email to %2 if you have questions.{/ts}
|
', @tpl_ovid_participant_expired, 1, 0),
('Events - Pending Registration Expiration Notice', '{ts 1=$event.event_title}Event registration has expired for %1{/ts} - {contact.display_name}
', '{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}{$greeting},{/if}
{ts 1=$event.event_title}Your pending event registration for %1 has expired
because you did not confirm your registration.{/ts}
{ts 1=$domain.phone 2=$domain.email}Please contact us at %1 or send email to %2 if you have questions
or want to inquire about reinstating your registration for this event.{/ts}
===========================================================
{ts}Event Information and Location{/ts}
===========================================================
{$event.event_title}
{$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|date_format:"%Y%m%d" == $event.event_start_date|date_format:"%Y%m%d"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate}{/if}{/if}
{ts}Participant Role{/ts}: {$participant.role}
{if $isShowLocation}
{$event.location.address.1.display|strip_tags:false}
{/if}{*End of isShowLocation condition*}
{if $event.location.phone.1.phone || $event.location.email.1.email}
{ts}Event Contacts:{/ts}
{foreach from=$event.location.phone item=phone}
{if $phone.phone}
{if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}: {$phone.phone}{/if}
{/foreach}
{foreach from=$event.location.email item=eventEmail}
{if $eventEmail.email}
{ts}Email{/ts}: {$eventEmail.email}{/if}{/foreach}
{/if}
{if $contact.email}
===========================================================
{ts}Registered Email{/ts}
===========================================================
{$contact.email}
{/if}
{if $register_date}
{ts}Registration Date{/ts}: {$participant.register_date|crmDate}
{/if}
{ts 1=$domain.phone 2=$domain.email}Please contact us at %1 or send email to %2 if you have questions.{/ts}
', '
{capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture}
{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture}
{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture}
{assign var="greeting" value="{contact.email_greeting}"}{if $greeting} {$greeting}, {/if}
{ts 1=$event.event_title}Your pending event registration for %1 has expired
because you did not confirm your registration.{/ts}
{ts 1=$domain.phone 2=$domain.email}Please contact us at %1 or send email to %2 if you have questions
or want to inquire about reinstating your registration for this event.{/ts}
|
{ts}Event Information and Location{/ts}
|
{$event.event_title}
{$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|date_format:"%Y%m%d" == $event.event_start_date|date_format:"%Y%m%d"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate}{/if}{/if}
|
{ts}Participant Role{/ts}:
|
{$participant.role}
|
{if $isShowLocation}
{$event.location.address.1.display|nl2br}
|
{/if}
{if $event.location.phone.1.phone || $event.location.email.1.email}
{ts}Event Contacts:{/ts}
|
{foreach from=$event.location.phone item=phone}
{if $phone.phone}
{if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}
|
{$phone.phone}
|
{/if}
{/foreach}
{foreach from=$event.location.email item=eventEmail}
{if $eventEmail.email}
{ts}Email{/ts}
|
{$eventEmail.email}
|
{/if}
{/foreach}
{/if}
{if $contact.email}
{ts}Registered Email{/ts}
|
{$contact.email}
|
{/if}
{if $register_date}
{ts}Registration Date{/ts}
|
{$participant.register_date|crmDate}
|
{/if}
|
{ts 1=$domain.phone 2=$domain.email}Please contact us at %1 or send email to %2 if you have questions.{/ts}
|
', @tpl_ovid_participant_expired, 0, 1) ,
('Events - Registration Transferred Notice', '{ts 1=$event.event_title}Event Registration Transferred for %1{/ts} - {contact.display_name}
', '{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}{$greeting},{/if}
{ts 1=$to_participant}Your Event Registration has been transferred to %1.{/ts}
===========================================================
{ts}Event Information and Location{/ts}
===========================================================
{$event.event_title}
{$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|date_format:"%Y%m%d" == $event.event_start_date|date_format:"%Y%m%d"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate}{/if}{/if}
{ts}Participant Role{/ts}: {$participant.role}
{if $isShowLocation}
{$event.location.address.1.display|strip_tags:false}
{/if}{*End of isShowLocation condition*}
{if $event.location.phone.1.phone || $event.location.email.1.email}
{ts}Event Contacts:{/ts}
{foreach from=$event.location.phone item=phone}
{if $phone.phone}
{if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}: {$phone.phone}{/if}
{/foreach}
{foreach from=$event.location.email item=eventEmail}
{if $eventEmail.email}
{ts}Email{/ts}: {$eventEmail.email}{/if}{/foreach}
{/if}
{if $contact.email}
===========================================================
{ts}Registered Email{/ts}
===========================================================
{$contact.email}
{/if}
{if $register_date}
{ts}Registration Date{/ts}: {$participant.register_date|crmDate}
{/if}
{ts 1=$domain.phone 2=$domain.email}Please contact us at %1 or send email to %2 if you have questions.{/ts}
', '
{capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture}
{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture}
{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture}
{assign var="greeting" value="{contact.email_greeting}"}{if $greeting} {$greeting}, {/if}
{ts 1=$to_participant}Your Event Registration has been Transferred to %1.{/ts}
|
{ts}Event Information and Location{/ts}
|
{$event.event_title}
{$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|date_format:"%Y%m%d" == $event.event_start_date|date_format:"%Y%m%d"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate}{/if}{/if}
|
{ts}Participant Role{/ts}:
|
{$participant.role}
|
{if $isShowLocation}
{$event.location.address.1.display|nl2br}
|
{/if}
{if $event.location.phone.1.phone || $event.location.email.1.email}
{ts}Event Contacts:{/ts}
|
{foreach from=$event.location.phone item=phone}
{if $phone.phone}
{if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}
|
{$phone.phone}
|
{/if}
{/foreach}
{foreach from=$event.location.email item=eventEmail}
{if $eventEmail.email}
{ts}Email{/ts}
|
{$eventEmail.email}
|
{/if}
{/foreach}
{/if}
{if $contact.email}
{ts}Registered Email{/ts}
|
{$contact.email}
|
{/if}
{if $register_date}
{ts}Registration Date{/ts}
|
{$participant.register_date|crmDate}
|
{/if}
|
{ts 1=$domain.phone 2=$domain.email}Please contact us at %1 or send email to %2 if you have questions.{/ts}
|
', @tpl_ovid_participant_transferred, 1, 0),
('Events - Registration Transferred Notice', '{ts 1=$event.event_title}Event Registration Transferred for %1{/ts} - {contact.display_name}
', '{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}{$greeting},{/if}
{ts 1=$to_participant}Your Event Registration has been transferred to %1.{/ts}
===========================================================
{ts}Event Information and Location{/ts}
===========================================================
{$event.event_title}
{$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|date_format:"%Y%m%d" == $event.event_start_date|date_format:"%Y%m%d"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate}{/if}{/if}
{ts}Participant Role{/ts}: {$participant.role}
{if $isShowLocation}
{$event.location.address.1.display|strip_tags:false}
{/if}{*End of isShowLocation condition*}
{if $event.location.phone.1.phone || $event.location.email.1.email}
{ts}Event Contacts:{/ts}
{foreach from=$event.location.phone item=phone}
{if $phone.phone}
{if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}: {$phone.phone}{/if}
{/foreach}
{foreach from=$event.location.email item=eventEmail}
{if $eventEmail.email}
{ts}Email{/ts}: {$eventEmail.email}{/if}{/foreach}
{/if}
{if $contact.email}
===========================================================
{ts}Registered Email{/ts}
===========================================================
{$contact.email}
{/if}
{if $register_date}
{ts}Registration Date{/ts}: {$participant.register_date|crmDate}
{/if}
{ts 1=$domain.phone 2=$domain.email}Please contact us at %1 or send email to %2 if you have questions.{/ts}
', '
{capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture}
{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture}
{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture}
{assign var="greeting" value="{contact.email_greeting}"}{if $greeting} {$greeting}, {/if}
{ts 1=$to_participant}Your Event Registration has been Transferred to %1.{/ts}
|
{ts}Event Information and Location{/ts}
|
{$event.event_title}
{$event.event_start_date|crmDate}{if $event.event_end_date}-{if $event.event_end_date|date_format:"%Y%m%d" == $event.event_start_date|date_format:"%Y%m%d"}{$event.event_end_date|crmDate:0:1}{else}{$event.event_end_date|crmDate}{/if}{/if}
|
{ts}Participant Role{/ts}:
|
{$participant.role}
|
{if $isShowLocation}
{$event.location.address.1.display|nl2br}
|
{/if}
{if $event.location.phone.1.phone || $event.location.email.1.email}
{ts}Event Contacts:{/ts}
|
{foreach from=$event.location.phone item=phone}
{if $phone.phone}
{if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}
|
{$phone.phone}
|
{/if}
{/foreach}
{foreach from=$event.location.email item=eventEmail}
{if $eventEmail.email}
{ts}Email{/ts}
|
{$eventEmail.email}
|
{/if}
{/foreach}
{/if}
{if $contact.email}
{ts}Registered Email{/ts}
|
{$contact.email}
|
{/if}
{if $register_date}
{ts}Registration Date{/ts}
|
{$participant.register_date|crmDate}
|
{/if}
|
{ts 1=$domain.phone 2=$domain.email}Please contact us at %1 or send email to %2 if you have questions.{/ts}
|
', @tpl_ovid_participant_transferred, 0, 1) ,
('Tell-a-Friend Email', '{ts 1=$senderContactName 2=$title}%1 wants you to know about %2{/ts}
', '{$senderMessage}
{if $generalLink}{ts}For more information, visit:{/ts}
>> {$generalLink}
{/if}
{if $contribute}{ts}To make a contribution, go to:{/ts}
>> {$pageURL}
{/if}
{if $event}{ts}To find out more about this event, go to:{/ts}
>> {$pageURL}
{/if}
', '
{capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture}
{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture}
{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture}
', @tpl_ovid_friend, 1, 0),
('Tell-a-Friend Email', '{ts 1=$senderContactName 2=$title}%1 wants you to know about %2{/ts}
', '{$senderMessage}
{if $generalLink}{ts}For more information, visit:{/ts}
>> {$generalLink}
{/if}
{if $contribute}{ts}To make a contribution, go to:{/ts}
>> {$pageURL}
{/if}
{if $event}{ts}To find out more about this event, go to:{/ts}
>> {$pageURL}
{/if}
', '
{capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture}
{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture}
{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture}
', @tpl_ovid_friend, 0, 1) ,
('Memberships - Signup and Renewal Receipts (off-line)', '{if $receiptType EQ \'membership signup\'}
{ts}Membership Confirmation and Receipt{/ts}
{elseif $receiptType EQ \'membership renewal\'}
{ts}Membership Renewal Confirmation and Receipt{/ts}
{/if} - {contact.display_name}
', '{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}{$greeting},{/if}
{if $formValues.receipt_text_signup}
{$formValues.receipt_text_signup}
{elseif $formValues.receipt_text_renewal}
{$formValues.receipt_text_renewal}
{else}{ts}Thank you for this contribution.{/ts}{/if}
{if !$lineItem}
===========================================================
{ts}Membership Information{/ts}
===========================================================
{ts}Membership Type{/ts}: {$membership_name}
{/if}
{if ! $cancelled}
{if !$lineItem}
{ts}Membership Start Date{/ts}: {$mem_start_date}
{ts}Membership End Date{/ts}: {$mem_end_date}
{/if}
{if $formValues.total_amount OR $formValues.total_amount eq 0 }
===========================================================
{ts}Membership Fee{/ts}
===========================================================
{if $formValues.contributionType_name}
{ts}Financial Type{/ts}: {$formValues.contributionType_name}
{/if}
{if $lineItem}
{foreach from=$lineItem item=value key=priceset}
{capture assign=ts_item}{ts}Item{/ts}{/capture}
{capture assign=ts_total}{ts}Fee{/ts}{/capture}
{if $dataArray}
{capture assign=ts_subtotal}{ts}Subtotal{/ts}{/capture}
{capture assign=ts_taxRate}{ts}Tax Rate{/ts}{/capture}
{capture assign=ts_taxAmount}{ts}Tax Amount{/ts}{/capture}
{capture assign=ts_total}{ts}Total{/ts}{/capture}
{/if}
{capture assign=ts_start_date}{ts}Membership Start Date{/ts}{/capture}
{capture assign=ts_end_date}{ts}Membership End Date{/ts}{/capture}
{$ts_item|string_format:"%-30s"} {$ts_total|string_format:"%10s"} {if $dataArray} {$ts_subtotal|string_format:"%10s"} {$ts_taxRate|string_format:"%10s"} {$ts_taxAmount|string_format:"%10s"} {$ts_total|string_format:"%10s"} {/if} {$ts_start_date|string_format:"%20s"} {$ts_end_date|string_format:"%20s"}
--------------------------------------------------------------------------------------------------
{foreach from=$value item=line}
{capture assign=ts_item}{if $line.html_type eq \'Text\'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description} {$line.description}{/if}{/capture}{$ts_item|truncate:30:"..."|string_format:"%-30s"} {$line.line_total|crmMoney|string_format:"%10s"} {if $dataArray} {$line.unit_price*$line.qty|crmMoney:$currency|string_format:"%10s"} {if $line.tax_rate != "" || $line.tax_amount != ""} {$line.tax_rate|string_format:"%.2f"} % {$line.tax_amount|crmMoney:$currency|string_format:"%10s"} {else} {/if} {$line.line_total+$line.tax_amount|crmMoney|string_format:"%10s"} {/if} {$line.start_date|string_format:"%20s"} {$line.end_date|string_format:"%20s"}
{/foreach}
{/foreach}
{if $dataArray}
{ts}Amount before Tax{/ts}: {$formValues.total_amount-$totalTaxAmount|crmMoney:$currency}
{foreach from=$dataArray item=value key=priceset}
{if $priceset}
{$taxTerm} {$priceset|string_format:"%.2f"} %: {$value|crmMoney:$currency}
{elseif $priceset == 0}
{ts}No{/ts} {$taxTerm}: {$value|crmMoney:$currency}
{/if}
{/foreach}
{/if}
--------------------------------------------------------------------------------------------------
{/if}
{if isset($totalTaxAmount)}
{ts}Total Tax Amount{/ts}: {$totalTaxAmount|crmMoney:$currency}
{/if}
{ts}Amount{/ts}: {$formValues.total_amount|crmMoney}
{if $receive_date}
{ts}Date Received{/ts}: {$receive_date|truncate:10:\'\'|crmDate}
{/if}
{if $formValues.paidBy}
{ts}Paid By{/ts}: {$formValues.paidBy}
{if $formValues.check_number}
{ts}Check Number{/ts}: {$formValues.check_number}
{/if}
{/if}
{/if}
{/if}
{if $isPrimary }
{if $billingName}
===========================================================
{ts}Billing Name and Address{/ts}
===========================================================
{$billingName}
{$address}
{/if}
{if $credit_card_type}
===========================================================
{ts}Credit Card Information{/ts}
===========================================================
{$credit_card_type}
{$credit_card_number}
{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}
{/if}
{/if}
{if $customValues}
===========================================================
{ts}Membership Options{/ts}
===========================================================
{foreach from=$customValues item=value key=customName}
{$customName} : {$value}
{/foreach}
{/if}
', '
{capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture}
{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture}
{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture}
{assign var="greeting" value="{contact.email_greeting}"}{if $greeting} {$greeting}, {/if}
{if $formValues.receipt_text_signup}
{$formValues.receipt_text_signup|htmlize}
{elseif $formValues.receipt_text_renewal}
{$formValues.receipt_text_renewal|htmlize}
{else}
{ts}Thank you for this contribution.{/ts}
{/if}
|
{if !$lineItem}
{ts}Membership Information{/ts}
|
{ts}Membership Type{/ts}
|
{$membership_name}
|
{/if}
{if ! $cancelled}
{if !$lineItem}
{ts}Membership Start Date{/ts}
|
{$mem_start_date}
|
{ts}Membership End Date{/ts}
|
{$mem_end_date}
|
{/if}
{if $formValues.total_amount OR $formValues.total_amount eq 0 }
{ts}Membership Fee{/ts}
|
{if $formValues.contributionType_name}
{ts}Financial Type{/ts}
|
{$formValues.contributionType_name}
|
{/if}
{if $lineItem}
{foreach from=$lineItem item=value key=priceset}
{* FIXME: style this table so that it looks like the text version (justification, etc.) *}
{ts}Item{/ts} |
{ts}Fee{/ts} |
{if $dataArray}
{ts}SubTotal{/ts} |
{ts}Tax Rate{/ts} |
{ts}Tax Amount{/ts} |
{ts}Total{/ts} |
{/if}
{ts}Membership Start Date{/ts} |
{ts}Membership End Date{/ts} |
{foreach from=$value item=line}
{if $line.html_type eq \'Text\'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description} {$line.description|truncate:30:"..."} {/if}
|
{$line.line_total|crmMoney}
|
{if $dataArray}
{$line.unit_price*$line.qty|crmMoney}
|
{if $line.tax_rate != "" || $line.tax_amount != ""}
{$line.tax_rate|string_format:"%.2f"}%
|
{$line.tax_amount|crmMoney}
|
{else}
|
|
{/if}
{$line.line_total+$line.tax_amount|crmMoney}
|
{/if}
{$line.start_date}
|
{$line.end_date}
|
{/foreach}
|
{/foreach}
{if $dataArray}
{ts}Amount Before Tax:{/ts}
|
{$formValues.total_amount-$totalTaxAmount|crmMoney}
|
{foreach from=$dataArray item=value key=priceset}
{if $priceset}
{$taxTerm} {$priceset|string_format:"%.2f"}% |
{$value|crmMoney:$currency} |
{elseif $priceset == 0}
{ts}No{/ts} {$taxTerm} |
{$value|crmMoney:$currency} |
{/if}
{/foreach}
{/if}
{/if}
{if isset($totalTaxAmount)}
{ts}Total Tax Amount{/ts}
|
{$totalTaxAmount|crmMoney:$currency}
|
{/if}
{ts}Amount{/ts}
|
{$formValues.total_amount|crmMoney}
|
{if $receive_date}
{ts}Date Received{/ts}
|
{$receive_date|truncate:10:\'\'|crmDate}
|
{/if}
{if $formValues.paidBy}
{ts}Paid By{/ts}
|
{$formValues.paidBy}
|
{if $formValues.check_number}
{ts}Check Number{/ts}
|
{$formValues.check_number}
|
{/if}
{/if}
{/if}
{/if}
|
{if $isPrimary}
{if $billingName}
{ts}Billing Name and Address{/ts}
|
{$billingName}
{$address}
|
{/if}
{if $credit_card_type}
{ts}Credit Card Information{/ts}
|
{$credit_card_type}
{$credit_card_number}
|
{ts}Expires{/ts}
|
{$credit_card_exp_date|truncate:7:\'\'|crmDate}
|
{/if}
|
{/if}
{if $customValues}
{ts}Membership Options{/ts}
|
{foreach from=$customValues item=value key=customName}
{$customName}
|
{$value}
|
{/foreach}
|
{/if}
', @tpl_ovid_membership_offline_receipt, 1, 0),
('Memberships - Signup and Renewal Receipts (off-line)', '{if $receiptType EQ \'membership signup\'}
{ts}Membership Confirmation and Receipt{/ts}
{elseif $receiptType EQ \'membership renewal\'}
{ts}Membership Renewal Confirmation and Receipt{/ts}
{/if} - {contact.display_name}
', '{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}{$greeting},{/if}
{if $formValues.receipt_text_signup}
{$formValues.receipt_text_signup}
{elseif $formValues.receipt_text_renewal}
{$formValues.receipt_text_renewal}
{else}{ts}Thank you for this contribution.{/ts}{/if}
{if !$lineItem}
===========================================================
{ts}Membership Information{/ts}
===========================================================
{ts}Membership Type{/ts}: {$membership_name}
{/if}
{if ! $cancelled}
{if !$lineItem}
{ts}Membership Start Date{/ts}: {$mem_start_date}
{ts}Membership End Date{/ts}: {$mem_end_date}
{/if}
{if $formValues.total_amount OR $formValues.total_amount eq 0 }
===========================================================
{ts}Membership Fee{/ts}
===========================================================
{if $formValues.contributionType_name}
{ts}Financial Type{/ts}: {$formValues.contributionType_name}
{/if}
{if $lineItem}
{foreach from=$lineItem item=value key=priceset}
{capture assign=ts_item}{ts}Item{/ts}{/capture}
{capture assign=ts_total}{ts}Fee{/ts}{/capture}
{if $dataArray}
{capture assign=ts_subtotal}{ts}Subtotal{/ts}{/capture}
{capture assign=ts_taxRate}{ts}Tax Rate{/ts}{/capture}
{capture assign=ts_taxAmount}{ts}Tax Amount{/ts}{/capture}
{capture assign=ts_total}{ts}Total{/ts}{/capture}
{/if}
{capture assign=ts_start_date}{ts}Membership Start Date{/ts}{/capture}
{capture assign=ts_end_date}{ts}Membership End Date{/ts}{/capture}
{$ts_item|string_format:"%-30s"} {$ts_total|string_format:"%10s"} {if $dataArray} {$ts_subtotal|string_format:"%10s"} {$ts_taxRate|string_format:"%10s"} {$ts_taxAmount|string_format:"%10s"} {$ts_total|string_format:"%10s"} {/if} {$ts_start_date|string_format:"%20s"} {$ts_end_date|string_format:"%20s"}
--------------------------------------------------------------------------------------------------
{foreach from=$value item=line}
{capture assign=ts_item}{if $line.html_type eq \'Text\'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description} {$line.description}{/if}{/capture}{$ts_item|truncate:30:"..."|string_format:"%-30s"} {$line.line_total|crmMoney|string_format:"%10s"} {if $dataArray} {$line.unit_price*$line.qty|crmMoney:$currency|string_format:"%10s"} {if $line.tax_rate != "" || $line.tax_amount != ""} {$line.tax_rate|string_format:"%.2f"} % {$line.tax_amount|crmMoney:$currency|string_format:"%10s"} {else} {/if} {$line.line_total+$line.tax_amount|crmMoney|string_format:"%10s"} {/if} {$line.start_date|string_format:"%20s"} {$line.end_date|string_format:"%20s"}
{/foreach}
{/foreach}
{if $dataArray}
{ts}Amount before Tax{/ts}: {$formValues.total_amount-$totalTaxAmount|crmMoney:$currency}
{foreach from=$dataArray item=value key=priceset}
{if $priceset}
{$taxTerm} {$priceset|string_format:"%.2f"} %: {$value|crmMoney:$currency}
{elseif $priceset == 0}
{ts}No{/ts} {$taxTerm}: {$value|crmMoney:$currency}
{/if}
{/foreach}
{/if}
--------------------------------------------------------------------------------------------------
{/if}
{if isset($totalTaxAmount)}
{ts}Total Tax Amount{/ts}: {$totalTaxAmount|crmMoney:$currency}
{/if}
{ts}Amount{/ts}: {$formValues.total_amount|crmMoney}
{if $receive_date}
{ts}Date Received{/ts}: {$receive_date|truncate:10:\'\'|crmDate}
{/if}
{if $formValues.paidBy}
{ts}Paid By{/ts}: {$formValues.paidBy}
{if $formValues.check_number}
{ts}Check Number{/ts}: {$formValues.check_number}
{/if}
{/if}
{/if}
{/if}
{if $isPrimary }
{if $billingName}
===========================================================
{ts}Billing Name and Address{/ts}
===========================================================
{$billingName}
{$address}
{/if}
{if $credit_card_type}
===========================================================
{ts}Credit Card Information{/ts}
===========================================================
{$credit_card_type}
{$credit_card_number}
{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}
{/if}
{/if}
{if $customValues}
===========================================================
{ts}Membership Options{/ts}
===========================================================
{foreach from=$customValues item=value key=customName}
{$customName} : {$value}
{/foreach}
{/if}
', '
{capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture}
{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture}
{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture}
{assign var="greeting" value="{contact.email_greeting}"}{if $greeting} {$greeting}, {/if}
{if $formValues.receipt_text_signup}
{$formValues.receipt_text_signup|htmlize}
{elseif $formValues.receipt_text_renewal}
{$formValues.receipt_text_renewal|htmlize}
{else}
{ts}Thank you for this contribution.{/ts}
{/if}
|
{if !$lineItem}
{ts}Membership Information{/ts}
|
{ts}Membership Type{/ts}
|
{$membership_name}
|
{/if}
{if ! $cancelled}
{if !$lineItem}
{ts}Membership Start Date{/ts}
|
{$mem_start_date}
|
{ts}Membership End Date{/ts}
|
{$mem_end_date}
|
{/if}
{if $formValues.total_amount OR $formValues.total_amount eq 0 }
{ts}Membership Fee{/ts}
|
{if $formValues.contributionType_name}
{ts}Financial Type{/ts}
|
{$formValues.contributionType_name}
|
{/if}
{if $lineItem}
{foreach from=$lineItem item=value key=priceset}
{* FIXME: style this table so that it looks like the text version (justification, etc.) *}
{ts}Item{/ts} |
{ts}Fee{/ts} |
{if $dataArray}
{ts}SubTotal{/ts} |
{ts}Tax Rate{/ts} |
{ts}Tax Amount{/ts} |
{ts}Total{/ts} |
{/if}
{ts}Membership Start Date{/ts} |
{ts}Membership End Date{/ts} |
{foreach from=$value item=line}
{if $line.html_type eq \'Text\'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description} {$line.description|truncate:30:"..."} {/if}
|
{$line.line_total|crmMoney}
|
{if $dataArray}
{$line.unit_price*$line.qty|crmMoney}
|
{if $line.tax_rate != "" || $line.tax_amount != ""}
{$line.tax_rate|string_format:"%.2f"}%
|
{$line.tax_amount|crmMoney}
|
{else}
|
|
{/if}
{$line.line_total+$line.tax_amount|crmMoney}
|
{/if}
{$line.start_date}
|
{$line.end_date}
|
{/foreach}
|
{/foreach}
{if $dataArray}
{ts}Amount Before Tax:{/ts}
|
{$formValues.total_amount-$totalTaxAmount|crmMoney}
|
{foreach from=$dataArray item=value key=priceset}
{if $priceset}
{$taxTerm} {$priceset|string_format:"%.2f"}% |
{$value|crmMoney:$currency} |
{elseif $priceset == 0}
{ts}No{/ts} {$taxTerm} |
{$value|crmMoney:$currency} |
{/if}
{/foreach}
{/if}
{/if}
{if isset($totalTaxAmount)}
{ts}Total Tax Amount{/ts}
|
{$totalTaxAmount|crmMoney:$currency}
|
{/if}
{ts}Amount{/ts}
|
{$formValues.total_amount|crmMoney}
|
{if $receive_date}
{ts}Date Received{/ts}
|
{$receive_date|truncate:10:\'\'|crmDate}
|
{/if}
{if $formValues.paidBy}
{ts}Paid By{/ts}
|
{$formValues.paidBy}
|
{if $formValues.check_number}
{ts}Check Number{/ts}
|
{$formValues.check_number}
|
{/if}
{/if}
{/if}
{/if}
|
{if $isPrimary}
{if $billingName}
{ts}Billing Name and Address{/ts}
|
{$billingName}
{$address}
|
{/if}
{if $credit_card_type}
{ts}Credit Card Information{/ts}
|
{$credit_card_type}
{$credit_card_number}
|
{ts}Expires{/ts}
|
{$credit_card_exp_date|truncate:7:\'\'|crmDate}
|
{/if}
|
{/if}
{if $customValues}
{ts}Membership Options{/ts}
|
{foreach from=$customValues item=value key=customName}
{$customName}
|
{$value}
|
{/foreach}
|
{/if}
', @tpl_ovid_membership_offline_receipt, 0, 1) ,
('Memberships - Receipt (on-line)', '{if $is_pay_later}{ts}Invoice{/ts}{else}{ts}Receipt{/ts}{/if} - {$title} - {contact.display_name}
', '{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}{$greeting},{/if}
{if $receipt_text}
{$receipt_text}
{/if}
{if $is_pay_later}
===========================================================
{$pay_later_receipt}
===========================================================
{/if}
{if $membership_assign && !$useForMember}
===========================================================
{ts}Membership Information{/ts}
===========================================================
{ts}Membership Type{/ts}: {$membership_name}
{if $mem_start_date}{ts}Membership Start Date{/ts}: {$mem_start_date|crmDate}
{/if}
{if $mem_end_date}{ts}Membership End Date{/ts}: {$mem_end_date|crmDate}
{/if}
{/if}
{if $amount}
===========================================================
{ts}Membership Fee{/ts}
===========================================================
{if !$useForMember && $membership_amount && $is_quick_config}
{ts 1=$membership_name}%1 Membership{/ts}: {$membership_amount|crmMoney}
{if $amount && !$is_separate_payment }
{ts}Contribution Amount{/ts}: {$amount|crmMoney}
-------------------------------------------
{ts}Total{/ts}: {$amount+$membership_amount|crmMoney}
{/if}
{elseif !$useForMember && $lineItem and $priceSetID & !$is_quick_config}
{foreach from=$lineItem item=value key=priceset}
---------------------------------------------------------
{capture assign=ts_item}{ts}Item{/ts}{/capture}
{capture assign=ts_qty}{ts}Qty{/ts}{/capture}
{capture assign=ts_each}{ts}Each{/ts}{/capture}
{capture assign=ts_total}{ts}Total{/ts}{/capture}
{$ts_item|string_format:"%-30s"} {$ts_qty|string_format:"%5s"} {$ts_each|string_format:"%10s"} {$ts_total|string_format:"%10s"}
----------------------------------------------------------
{foreach from=$value item=line}
{$line.description|truncate:30:"..."|string_format:"%-30s"} {$line.qty|string_format:"%5s"} {$line.unit_price|crmMoney|string_format:"%10s"} {$line.line_total|crmMoney|string_format:"%10s"}
{/foreach}
{/foreach}
{ts}Total Amount{/ts}: {$amount|crmMoney}
{else}
{if $useForMember && $lineItem && !$is_quick_config}
{foreach from=$lineItem item=value key=priceset}
{capture assign=ts_item}{ts}Item{/ts}{/capture}
{capture assign=ts_total}{ts}Fee{/ts}{/capture}
{if $dataArray}
{capture assign=ts_subtotal}{ts}Subtotal{/ts}{/capture}
{capture assign=ts_taxRate}{ts}Tax Rate{/ts}{/capture}
{capture assign=ts_taxAmount}{ts}Tax Amount{/ts}{/capture}
{capture assign=ts_total}{ts}Total{/ts}{/capture}
{/if}
{capture assign=ts_start_date}{ts}Membership Start Date{/ts}{/capture}
{capture assign=ts_end_date}{ts}Membership End Date{/ts}{/capture}
{$ts_item|string_format:"%-30s"} {$ts_total|string_format:"%10s"} {if $dataArray} {$ts_subtotal|string_format:"%10s"} {$ts_taxRate|string_format:"%10s"} {$ts_taxAmount|string_format:"%10s"} {$ts_total|string_format:"%10s"} {/if} {$ts_start_date|string_format:"%20s"} {$ts_end_date|string_format:"%20s"}
--------------------------------------------------------------------------------------------------
{foreach from=$value item=line}
{capture assign=ts_item}{if $line.html_type eq \'Text\'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description} {$line.description}{/if}{/capture}{$ts_item|truncate:30:"..."|string_format:"%-30s"} {$line.line_total|crmMoney|string_format:"%10s"} {if $dataArray} {$line.unit_price*$line.qty|crmMoney:$currency|string_format:"%10s"} {if $line.tax_rate != "" || $line.tax_amount != ""} {$line.tax_rate|string_format:"%.2f"} % {$line.tax_amount|crmMoney:$currency|string_format:"%10s"} {else} {/if} {$line.line_total+$line.tax_amount|crmMoney|string_format:"%10s"} {/if} {$line.start_date|string_format:"%20s"} {$line.end_date|string_format:"%20s"}
{/foreach}
{/foreach}
{if $dataArray}
{ts}Amount before Tax{/ts}: {$amount-$totalTaxAmount|crmMoney:$currency}
{foreach from=$dataArray item=value key=priceset}
{if $priceset || $priceset == 0}
{$taxTerm} {$priceset|string_format:"%.2f"}%: {$value|crmMoney:$currency}
{else}
{ts}No{/ts} {$taxTerm}: {$value|crmMoney:$currency}
{/if}
{/foreach}
{/if}
--------------------------------------------------------------------------------------------------
{/if}
{if $totalTaxAmount}
{ts}Total Tax Amount{/ts}: {$totalTaxAmount|crmMoney:$currency}
{/if}
{ts}Amount{/ts}: {$amount|crmMoney} {if $amount_level } - {$amount_level} {/if}
{/if}
{elseif $membership_amount}
===========================================================
{ts}Membership Fee{/ts}
===========================================================
{ts 1=$membership_name}%1 Membership{/ts}: {$membership_amount|crmMoney}
{/if}
{if $receive_date}
{ts}Date{/ts}: {$receive_date|crmDate}
{/if}
{if $is_monetary and $trxn_id}
{ts}Transaction #{/ts}: {$trxn_id}
{/if}
{if $membership_trx_id}
{ts}Membership Transaction #{/ts}: {$membership_trx_id}
{/if}
{if $is_recur}
{ts}This membership will be renewed automatically.{/ts}
{if $cancelSubscriptionUrl}
{ts 1=$cancelSubscriptionUrl}You can cancel the auto-renewal option by visiting this web page: %1.{/ts}
{/if}
{if $updateSubscriptionBillingUrl}
{ts 1=$updateSubscriptionBillingUrl}You can update billing details for this automatically renewed membership by visiting this web page.{/ts}
{/if}
{/if}
{if $honor_block_is_active }
===========================================================
{$soft_credit_type}
===========================================================
{foreach from=$honoreeProfile item=value key=label}
{$label}: {$value}
{/foreach}
{/if}
{if $pcpBlock}
===========================================================
{ts}Personal Campaign Page{/ts}
===========================================================
{ts}Display In Honor Roll{/ts}: {if $pcp_display_in_roll}{ts}Yes{/ts}{else}{ts}No{/ts}{/if}
{if $pcp_roll_nickname}{ts}Nickname{/ts}: {$pcp_roll_nickname}{/if}
{if $pcp_personal_note}{ts}Personal Note{/ts}: {$pcp_personal_note}{/if}
{/if}
{if $onBehalfProfile}
===========================================================
{ts}On Behalf Of{/ts}
===========================================================
{foreach from=$onBehalfProfile item=onBehalfValue key=onBehalfName}
{$onBehalfName}: {$onBehalfValue}
{/foreach}
{/if}
{if $billingName}
===========================================================
{ts}Billing Name and Address{/ts}
===========================================================
{$billingName}
{$address}
{$email}
{elseif $email}
===========================================================
{ts}Registered Email{/ts}
===========================================================
{$email}
{/if} {* End billingName or email *}
{if $credit_card_type}
===========================================================
{ts}Credit Card Information{/ts}
===========================================================
{$credit_card_type}
{$credit_card_number}
{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}
{/if}
{if $selectPremium }
===========================================================
{ts}Premium Information{/ts}
===========================================================
{$product_name}
{if $option}
{ts}Option{/ts}: {$option}
{/if}
{if $sku}
{ts}SKU{/ts}: {$sku}
{/if}
{if $start_date}
{ts}Start Date{/ts}: {$start_date|crmDate}
{/if}
{if $end_date}
{ts}End Date{/ts}: {$end_date|crmDate}
{/if}
{if $contact_email OR $contact_phone}
{ts}For information about this premium, contact:{/ts}
{if $contact_email}
{$contact_email}
{/if}
{if $contact_phone}
{$contact_phone}
{/if}
{/if}
{if $is_deductible AND $price}
{ts 1=$price|crmMoney}The value of this premium is %1. This may affect the amount of the tax deduction you can claim. Consult your tax advisor for more information.{/ts}{/if}
{/if}
{if $customPre}
===========================================================
{$customPre_grouptitle}
===========================================================
{foreach from=$customPre item=customValue key=customName}
{if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
{$customName}: {$customValue}
{/if}
{/foreach}
{/if}
{if $customPost}
===========================================================
{$customPost_grouptitle}
===========================================================
{foreach from=$customPost item=customValue key=customName}
{if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
{$customName}: {$customValue}
{/if}
{/foreach}
{/if}
', '
{capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture}
{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture}
{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture}
{assign var="greeting" value="{contact.email_greeting}"}{if $greeting} {$greeting}, {/if}
{if $receipt_text}
{$receipt_text|htmlize}
{/if}
{if $is_pay_later}
{$pay_later_receipt} {* FIXME: this might be text rather than HTML *}
{/if}
|
{if $membership_assign && !$useForMember}
{ts}Membership Information{/ts}
|
{ts}Membership Type{/ts}
|
{$membership_name}
|
{if $mem_start_date}
{ts}Membership Start Date{/ts}
|
{$mem_start_date|crmDate}
|
{/if}
{if $mem_end_date}
{ts}Membership End Date{/ts}
|
{$mem_end_date|crmDate}
|
{/if}
{/if}
{if $amount}
{ts}Membership Fee{/ts}
|
{if !$useForMember and $membership_amount and $is_quick_config}
{ts 1=$membership_name}%1 Membership{/ts}
|
{$membership_amount|crmMoney}
|
{if $amount && !$is_separate_payment }
{ts}Contribution Amount{/ts}
|
{$amount|crmMoney}
|
{ts}Total{/ts}
|
{$amount+$membership_amount|crmMoney}
|
{/if}
{elseif !$useForMember && $lineItem and $priceSetID and !$is_quick_config}
{foreach from=$lineItem item=value key=priceset}
{* FIXME: style this table so that it looks like the text version (justification, etc.) *}
{ts}Item{/ts} |
{ts}Qty{/ts} |
{ts}Each{/ts} |
{ts}Total{/ts} |
{foreach from=$value item=line}
{$line.description|truncate:30:"..."}
|
{$line.qty}
|
{$line.unit_price|crmMoney}
|
{$line.line_total|crmMoney}
|
{/foreach}
|
{/foreach}
{ts}Total Amount{/ts}
|
{$amount|crmMoney}
|
{else}
{if $useForMember && $lineItem and !$is_quick_config}
{foreach from=$lineItem item=value key=priceset}
{* FIXME: style this table so that it looks like the text version (justification, etc.) *}
{ts}Item{/ts} |
{ts}Fee{/ts} |
{if $dataArray}
{ts}SubTotal{/ts} |
{ts}Tax Rate{/ts} |
{ts}Tax Amount{/ts} |
{ts}Total{/ts} |
{/if}
{ts}Membership Start Date{/ts} |
{ts}Membership End Date{/ts} |
{foreach from=$value item=line}
{if $line.html_type eq \'Text\'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description} {$line.description|truncate:30:"..."} {/if}
|
{$line.line_total|crmMoney}
|
{if $dataArray}
{$line.unit_price*$line.qty|crmMoney}
|
{if $line.tax_rate != "" || $line.tax_amount != ""}
{$line.tax_rate|string_format:"%.2f"}%
|
{$line.tax_amount|crmMoney}
|
{else}
|
|
{/if}
{$line.line_total+$line.tax_amount|crmMoney}
|
{/if}
{$line.start_date}
|
{$line.end_date}
|
{/foreach}
|
{/foreach}
{if $dataArray}
{ts}Amount Before Tax:{/ts}
|
{$amount-$totalTaxAmount|crmMoney}
|
{foreach from=$dataArray item=value key=priceset}
{if $priceset || $priceset == 0}
{$taxTerm} {$priceset|string_format:"%.2f"}% |
{$value|crmMoney:$currency} |
{else}
{ts}NO{/ts} {$taxTerm} |
{$value|crmMoney:$currency} |
{/if}
{/foreach}
{/if}
{/if}
{if $totalTaxAmount}
{ts}Total Tax Amount{/ts}
|
{$totalTaxAmount|crmMoney:$currency}
|
{/if}
{ts}Amount{/ts}
|
{$amount|crmMoney} {if $amount_level} - {$amount_level}{/if}
|
{/if}
{elseif $membership_amount}
{ts}Membership Fee{/ts}
|
{ts 1=$membership_name}%1 Membership{/ts}
|
{$membership_amount|crmMoney}
|
{/if}
{if $receive_date}
{ts}Date{/ts}
|
{$receive_date|crmDate}
|
{/if}
{if $is_monetary and $trxn_id}
{ts}Transaction #{/ts}
|
{$trxn_id}
|
{/if}
{if $membership_trx_id}
{ts}Membership Transaction #{/ts}
|
{$membership_trx_id}
|
{/if}
{if $is_recur}
{ts}This membership will be renewed automatically.{/ts}
{if $cancelSubscriptionUrl}
{ts 1=$cancelSubscriptionUrl}You can cancel the auto-renewal option by visiting this web page.{/ts}
{/if}
|
{if $updateSubscriptionBillingUrl}
{ts 1=$updateSubscriptionBillingUrl}You can update billing details for this automatically renewed membership by visiting this web page.{/ts}
|
{/if}
{/if}
{if $honor_block_is_active}
{$soft_credit_type}
|
{foreach from=$honoreeProfile item=value key=label}
{$label}
|
{$value}
|
{/foreach}
{/if}
{if $pcpBlock}
{ts}Personal Campaign Page{/ts}
|
{ts}Display In Honor Roll{/ts}
|
{if $pcp_display_in_roll}{ts}Yes{/ts}{else}{ts}No{/ts}{/if}
|
{if $pcp_roll_nickname}
{ts}Nickname{/ts}
|
{$pcp_roll_nickname}
|
{/if}
{if $pcp_personal_note}
{ts}Personal Note{/ts}
|
{$pcp_personal_note}
|
{/if}
{/if}
{if $onBehalfProfile}
{$onBehalfProfile_grouptitle}
|
{foreach from=$onBehalfProfile item=onBehalfValue key=onBehalfName}
{$onBehalfName}
|
{$onBehalfValue}
|
{/foreach}
{/if}
{if $billingName}
{ts}Billing Name and Address{/ts}
|
{$billingName}
{$address|nl2br}
{$email}
|
{elseif $email}
{ts}Registered Email{/ts}
|
{$email}
|
{/if}
{if $credit_card_type}
{ts}Credit Card Information{/ts}
|
{$credit_card_type}
{$credit_card_number}
{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}
|
{/if}
{if $selectPremium}
{ts}Premium Information{/ts}
|
{$product_name}
|
{if $option}
{ts}Option{/ts}
|
{$option}
|
{/if}
{if $sku}
{ts}SKU{/ts}
|
{$sku}
|
{/if}
{if $start_date}
{ts}Start Date{/ts}
|
{$start_date|crmDate}
|
{/if}
{if $end_date}
{ts}End Date{/ts}
|
{$end_date|crmDate}
|
{/if}
{if $contact_email OR $contact_phone}
{ts}For information about this premium, contact:{/ts}
{if $contact_email}
{$contact_email}
{/if}
{if $contact_phone}
{$contact_phone}
{/if}
|
{/if}
{if $is_deductible AND $price}
{ts 1=$price|crmMoney}The value of this premium is %1. This may affect the amount of the tax deduction you can claim. Consult your tax advisor for more information.{/ts}
|
{/if}
{/if}
{if $customPre}
{$customPre_grouptitle}
|
{foreach from=$customPre item=customValue key=customName}
{if ($trackingFields and ! in_array($customName, $trackingFields)) or ! $trackingFields}
{$customName}
|
{$customValue}
|
{/if}
{/foreach}
{/if}
{if $customPost}
{$customPost_grouptitle}
|
{foreach from=$customPost item=customValue key=customName}
{if ($trackingFields and ! in_array($customName, $trackingFields)) or ! $trackingFields}
{$customName}
|
{$customValue}
|
{/if}
{/foreach}
{/if}
', @tpl_ovid_membership_online_receipt, 1, 0),
('Memberships - Receipt (on-line)', '{if $is_pay_later}{ts}Invoice{/ts}{else}{ts}Receipt{/ts}{/if} - {$title} - {contact.display_name}
', '{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}{$greeting},{/if}
{if $receipt_text}
{$receipt_text}
{/if}
{if $is_pay_later}
===========================================================
{$pay_later_receipt}
===========================================================
{/if}
{if $membership_assign && !$useForMember}
===========================================================
{ts}Membership Information{/ts}
===========================================================
{ts}Membership Type{/ts}: {$membership_name}
{if $mem_start_date}{ts}Membership Start Date{/ts}: {$mem_start_date|crmDate}
{/if}
{if $mem_end_date}{ts}Membership End Date{/ts}: {$mem_end_date|crmDate}
{/if}
{/if}
{if $amount}
===========================================================
{ts}Membership Fee{/ts}
===========================================================
{if !$useForMember && $membership_amount && $is_quick_config}
{ts 1=$membership_name}%1 Membership{/ts}: {$membership_amount|crmMoney}
{if $amount && !$is_separate_payment }
{ts}Contribution Amount{/ts}: {$amount|crmMoney}
-------------------------------------------
{ts}Total{/ts}: {$amount+$membership_amount|crmMoney}
{/if}
{elseif !$useForMember && $lineItem and $priceSetID & !$is_quick_config}
{foreach from=$lineItem item=value key=priceset}
---------------------------------------------------------
{capture assign=ts_item}{ts}Item{/ts}{/capture}
{capture assign=ts_qty}{ts}Qty{/ts}{/capture}
{capture assign=ts_each}{ts}Each{/ts}{/capture}
{capture assign=ts_total}{ts}Total{/ts}{/capture}
{$ts_item|string_format:"%-30s"} {$ts_qty|string_format:"%5s"} {$ts_each|string_format:"%10s"} {$ts_total|string_format:"%10s"}
----------------------------------------------------------
{foreach from=$value item=line}
{$line.description|truncate:30:"..."|string_format:"%-30s"} {$line.qty|string_format:"%5s"} {$line.unit_price|crmMoney|string_format:"%10s"} {$line.line_total|crmMoney|string_format:"%10s"}
{/foreach}
{/foreach}
{ts}Total Amount{/ts}: {$amount|crmMoney}
{else}
{if $useForMember && $lineItem && !$is_quick_config}
{foreach from=$lineItem item=value key=priceset}
{capture assign=ts_item}{ts}Item{/ts}{/capture}
{capture assign=ts_total}{ts}Fee{/ts}{/capture}
{if $dataArray}
{capture assign=ts_subtotal}{ts}Subtotal{/ts}{/capture}
{capture assign=ts_taxRate}{ts}Tax Rate{/ts}{/capture}
{capture assign=ts_taxAmount}{ts}Tax Amount{/ts}{/capture}
{capture assign=ts_total}{ts}Total{/ts}{/capture}
{/if}
{capture assign=ts_start_date}{ts}Membership Start Date{/ts}{/capture}
{capture assign=ts_end_date}{ts}Membership End Date{/ts}{/capture}
{$ts_item|string_format:"%-30s"} {$ts_total|string_format:"%10s"} {if $dataArray} {$ts_subtotal|string_format:"%10s"} {$ts_taxRate|string_format:"%10s"} {$ts_taxAmount|string_format:"%10s"} {$ts_total|string_format:"%10s"} {/if} {$ts_start_date|string_format:"%20s"} {$ts_end_date|string_format:"%20s"}
--------------------------------------------------------------------------------------------------
{foreach from=$value item=line}
{capture assign=ts_item}{if $line.html_type eq \'Text\'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description} {$line.description}{/if}{/capture}{$ts_item|truncate:30:"..."|string_format:"%-30s"} {$line.line_total|crmMoney|string_format:"%10s"} {if $dataArray} {$line.unit_price*$line.qty|crmMoney:$currency|string_format:"%10s"} {if $line.tax_rate != "" || $line.tax_amount != ""} {$line.tax_rate|string_format:"%.2f"} % {$line.tax_amount|crmMoney:$currency|string_format:"%10s"} {else} {/if} {$line.line_total+$line.tax_amount|crmMoney|string_format:"%10s"} {/if} {$line.start_date|string_format:"%20s"} {$line.end_date|string_format:"%20s"}
{/foreach}
{/foreach}
{if $dataArray}
{ts}Amount before Tax{/ts}: {$amount-$totalTaxAmount|crmMoney:$currency}
{foreach from=$dataArray item=value key=priceset}
{if $priceset || $priceset == 0}
{$taxTerm} {$priceset|string_format:"%.2f"}%: {$value|crmMoney:$currency}
{else}
{ts}No{/ts} {$taxTerm}: {$value|crmMoney:$currency}
{/if}
{/foreach}
{/if}
--------------------------------------------------------------------------------------------------
{/if}
{if $totalTaxAmount}
{ts}Total Tax Amount{/ts}: {$totalTaxAmount|crmMoney:$currency}
{/if}
{ts}Amount{/ts}: {$amount|crmMoney} {if $amount_level } - {$amount_level} {/if}
{/if}
{elseif $membership_amount}
===========================================================
{ts}Membership Fee{/ts}
===========================================================
{ts 1=$membership_name}%1 Membership{/ts}: {$membership_amount|crmMoney}
{/if}
{if $receive_date}
{ts}Date{/ts}: {$receive_date|crmDate}
{/if}
{if $is_monetary and $trxn_id}
{ts}Transaction #{/ts}: {$trxn_id}
{/if}
{if $membership_trx_id}
{ts}Membership Transaction #{/ts}: {$membership_trx_id}
{/if}
{if $is_recur}
{ts}This membership will be renewed automatically.{/ts}
{if $cancelSubscriptionUrl}
{ts 1=$cancelSubscriptionUrl}You can cancel the auto-renewal option by visiting this web page: %1.{/ts}
{/if}
{if $updateSubscriptionBillingUrl}
{ts 1=$updateSubscriptionBillingUrl}You can update billing details for this automatically renewed membership by visiting this web page.{/ts}
{/if}
{/if}
{if $honor_block_is_active }
===========================================================
{$soft_credit_type}
===========================================================
{foreach from=$honoreeProfile item=value key=label}
{$label}: {$value}
{/foreach}
{/if}
{if $pcpBlock}
===========================================================
{ts}Personal Campaign Page{/ts}
===========================================================
{ts}Display In Honor Roll{/ts}: {if $pcp_display_in_roll}{ts}Yes{/ts}{else}{ts}No{/ts}{/if}
{if $pcp_roll_nickname}{ts}Nickname{/ts}: {$pcp_roll_nickname}{/if}
{if $pcp_personal_note}{ts}Personal Note{/ts}: {$pcp_personal_note}{/if}
{/if}
{if $onBehalfProfile}
===========================================================
{ts}On Behalf Of{/ts}
===========================================================
{foreach from=$onBehalfProfile item=onBehalfValue key=onBehalfName}
{$onBehalfName}: {$onBehalfValue}
{/foreach}
{/if}
{if $billingName}
===========================================================
{ts}Billing Name and Address{/ts}
===========================================================
{$billingName}
{$address}
{$email}
{elseif $email}
===========================================================
{ts}Registered Email{/ts}
===========================================================
{$email}
{/if} {* End billingName or email *}
{if $credit_card_type}
===========================================================
{ts}Credit Card Information{/ts}
===========================================================
{$credit_card_type}
{$credit_card_number}
{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}
{/if}
{if $selectPremium }
===========================================================
{ts}Premium Information{/ts}
===========================================================
{$product_name}
{if $option}
{ts}Option{/ts}: {$option}
{/if}
{if $sku}
{ts}SKU{/ts}: {$sku}
{/if}
{if $start_date}
{ts}Start Date{/ts}: {$start_date|crmDate}
{/if}
{if $end_date}
{ts}End Date{/ts}: {$end_date|crmDate}
{/if}
{if $contact_email OR $contact_phone}
{ts}For information about this premium, contact:{/ts}
{if $contact_email}
{$contact_email}
{/if}
{if $contact_phone}
{$contact_phone}
{/if}
{/if}
{if $is_deductible AND $price}
{ts 1=$price|crmMoney}The value of this premium is %1. This may affect the amount of the tax deduction you can claim. Consult your tax advisor for more information.{/ts}{/if}
{/if}
{if $customPre}
===========================================================
{$customPre_grouptitle}
===========================================================
{foreach from=$customPre item=customValue key=customName}
{if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
{$customName}: {$customValue}
{/if}
{/foreach}
{/if}
{if $customPost}
===========================================================
{$customPost_grouptitle}
===========================================================
{foreach from=$customPost item=customValue key=customName}
{if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
{$customName}: {$customValue}
{/if}
{/foreach}
{/if}
', '
{capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture}
{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture}
{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture}
{assign var="greeting" value="{contact.email_greeting}"}{if $greeting} {$greeting}, {/if}
{if $receipt_text}
{$receipt_text|htmlize}
{/if}
{if $is_pay_later}
{$pay_later_receipt} {* FIXME: this might be text rather than HTML *}
{/if}
|
{if $membership_assign && !$useForMember}
{ts}Membership Information{/ts}
|
{ts}Membership Type{/ts}
|
{$membership_name}
|
{if $mem_start_date}
{ts}Membership Start Date{/ts}
|
{$mem_start_date|crmDate}
|
{/if}
{if $mem_end_date}
{ts}Membership End Date{/ts}
|
{$mem_end_date|crmDate}
|
{/if}
{/if}
{if $amount}
{ts}Membership Fee{/ts}
|
{if !$useForMember and $membership_amount and $is_quick_config}
{ts 1=$membership_name}%1 Membership{/ts}
|
{$membership_amount|crmMoney}
|
{if $amount && !$is_separate_payment }
{ts}Contribution Amount{/ts}
|
{$amount|crmMoney}
|
{ts}Total{/ts}
|
{$amount+$membership_amount|crmMoney}
|
{/if}
{elseif !$useForMember && $lineItem and $priceSetID and !$is_quick_config}
{foreach from=$lineItem item=value key=priceset}
{* FIXME: style this table so that it looks like the text version (justification, etc.) *}
{ts}Item{/ts} |
{ts}Qty{/ts} |
{ts}Each{/ts} |
{ts}Total{/ts} |
{foreach from=$value item=line}
{$line.description|truncate:30:"..."}
|
{$line.qty}
|
{$line.unit_price|crmMoney}
|
{$line.line_total|crmMoney}
|
{/foreach}
|
{/foreach}
{ts}Total Amount{/ts}
|
{$amount|crmMoney}
|
{else}
{if $useForMember && $lineItem and !$is_quick_config}
{foreach from=$lineItem item=value key=priceset}
{* FIXME: style this table so that it looks like the text version (justification, etc.) *}
{ts}Item{/ts} |
{ts}Fee{/ts} |
{if $dataArray}
{ts}SubTotal{/ts} |
{ts}Tax Rate{/ts} |
{ts}Tax Amount{/ts} |
{ts}Total{/ts} |
{/if}
{ts}Membership Start Date{/ts} |
{ts}Membership End Date{/ts} |
{foreach from=$value item=line}
{if $line.html_type eq \'Text\'}{$line.label}{else}{$line.field_title} - {$line.label}{/if} {if $line.description} {$line.description|truncate:30:"..."} {/if}
|
{$line.line_total|crmMoney}
|
{if $dataArray}
{$line.unit_price*$line.qty|crmMoney}
|
{if $line.tax_rate != "" || $line.tax_amount != ""}
{$line.tax_rate|string_format:"%.2f"}%
|
{$line.tax_amount|crmMoney}
|
{else}
|
|
{/if}
{$line.line_total+$line.tax_amount|crmMoney}
|
{/if}
{$line.start_date}
|
{$line.end_date}
|
{/foreach}
|
{/foreach}
{if $dataArray}
{ts}Amount Before Tax:{/ts}
|
{$amount-$totalTaxAmount|crmMoney}
|
{foreach from=$dataArray item=value key=priceset}
{if $priceset || $priceset == 0}
{$taxTerm} {$priceset|string_format:"%.2f"}% |
{$value|crmMoney:$currency} |
{else}
{ts}NO{/ts} {$taxTerm} |
{$value|crmMoney:$currency} |
{/if}
{/foreach}
{/if}
{/if}
{if $totalTaxAmount}
{ts}Total Tax Amount{/ts}
|
{$totalTaxAmount|crmMoney:$currency}
|
{/if}
{ts}Amount{/ts}
|
{$amount|crmMoney} {if $amount_level} - {$amount_level}{/if}
|
{/if}
{elseif $membership_amount}
{ts}Membership Fee{/ts}
|
{ts 1=$membership_name}%1 Membership{/ts}
|
{$membership_amount|crmMoney}
|
{/if}
{if $receive_date}
{ts}Date{/ts}
|
{$receive_date|crmDate}
|
{/if}
{if $is_monetary and $trxn_id}
{ts}Transaction #{/ts}
|
{$trxn_id}
|
{/if}
{if $membership_trx_id}
{ts}Membership Transaction #{/ts}
|
{$membership_trx_id}
|
{/if}
{if $is_recur}
{ts}This membership will be renewed automatically.{/ts}
{if $cancelSubscriptionUrl}
{ts 1=$cancelSubscriptionUrl}You can cancel the auto-renewal option by visiting this web page.{/ts}
{/if}
|
{if $updateSubscriptionBillingUrl}
{ts 1=$updateSubscriptionBillingUrl}You can update billing details for this automatically renewed membership by visiting this web page.{/ts}
|
{/if}
{/if}
{if $honor_block_is_active}
{$soft_credit_type}
|
{foreach from=$honoreeProfile item=value key=label}
{$label}
|
{$value}
|
{/foreach}
{/if}
{if $pcpBlock}
{ts}Personal Campaign Page{/ts}
|
{ts}Display In Honor Roll{/ts}
|
{if $pcp_display_in_roll}{ts}Yes{/ts}{else}{ts}No{/ts}{/if}
|
{if $pcp_roll_nickname}
{ts}Nickname{/ts}
|
{$pcp_roll_nickname}
|
{/if}
{if $pcp_personal_note}
{ts}Personal Note{/ts}
|
{$pcp_personal_note}
|
{/if}
{/if}
{if $onBehalfProfile}
{$onBehalfProfile_grouptitle}
|
{foreach from=$onBehalfProfile item=onBehalfValue key=onBehalfName}
{$onBehalfName}
|
{$onBehalfValue}
|
{/foreach}
{/if}
{if $billingName}
{ts}Billing Name and Address{/ts}
|
{$billingName}
{$address|nl2br}
{$email}
|
{elseif $email}
{ts}Registered Email{/ts}
|
{$email}
|
{/if}
{if $credit_card_type}
{ts}Credit Card Information{/ts}
|
{$credit_card_type}
{$credit_card_number}
{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}
|
{/if}
{if $selectPremium}
{ts}Premium Information{/ts}
|
{$product_name}
|
{if $option}
{ts}Option{/ts}
|
{$option}
|
{/if}
{if $sku}
{ts}SKU{/ts}
|
{$sku}
|
{/if}
{if $start_date}
{ts}Start Date{/ts}
|
{$start_date|crmDate}
|
{/if}
{if $end_date}
{ts}End Date{/ts}
|
{$end_date|crmDate}
|
{/if}
{if $contact_email OR $contact_phone}
{ts}For information about this premium, contact:{/ts}
{if $contact_email}
{$contact_email}
{/if}
{if $contact_phone}
{$contact_phone}
{/if}
|
{/if}
{if $is_deductible AND $price}
{ts 1=$price|crmMoney}The value of this premium is %1. This may affect the amount of the tax deduction you can claim. Consult your tax advisor for more information.{/ts}
|
{/if}
{/if}
{if $customPre}
{$customPre_grouptitle}
|
{foreach from=$customPre item=customValue key=customName}
{if ($trackingFields and ! in_array($customName, $trackingFields)) or ! $trackingFields}
{$customName}
|
{$customValue}
|
{/if}
{/foreach}
{/if}
{if $customPost}
{$customPost_grouptitle}
|
{foreach from=$customPost item=customValue key=customName}
{if ($trackingFields and ! in_array($customName, $trackingFields)) or ! $trackingFields}
{$customName}
|
{$customValue}
|
{/if}
{/foreach}
{/if}
', @tpl_ovid_membership_online_receipt, 0, 1) ,
('Memberships - Auto-renew Cancellation Notification', '{ts}Autorenew Membership Cancellation Notification{/ts} - {contact.display_name}
', '{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}{$greeting},{/if}
{ts 1=$membershipType}The automatic renewal of your %1 membership has been cancelled as requested. This does not affect the status of your membership - you will receive a separate notification when your membership is up for renewal.{/ts}
===========================================================
{ts}Membership Information{/ts}
===========================================================
{ts}Membership Status{/ts}: {$membership_status}
{if $mem_start_date}{ts}Membership Start Date{/ts}: {$mem_start_date|crmDate}
{/if}
{if $mem_end_date}{ts}Membership End Date{/ts}: {$mem_end_date|crmDate}
{/if}
', '
{capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture}
{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture}
{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture}
{assign var="greeting" value="{contact.email_greeting}"}{if $greeting} {$greeting}, {/if}
{ts 1=$membershipType}The automatic renewal of your %1 membership has been cancelled as requested. This does not affect the status of your membership - you will receive a separate notification when your membership is up for renewal.{/ts}
|
{ts}Membership Information{/ts}
|
{ts}Membership Status{/ts}
|
{$membership_status}
|
{if $mem_start_date}
{ts}Membership Start Date{/ts}
|
{$mem_start_date|crmDate}
|
{/if}
{if $mem_end_date}
{ts}Membership End Date{/ts}
|
{$mem_end_date|crmDate}
|
{/if}
', @tpl_ovid_membership_autorenew_cancelled, 1, 0),
('Memberships - Auto-renew Cancellation Notification', '{ts}Autorenew Membership Cancellation Notification{/ts} - {contact.display_name}
', '{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}{$greeting},{/if}
{ts 1=$membershipType}The automatic renewal of your %1 membership has been cancelled as requested. This does not affect the status of your membership - you will receive a separate notification when your membership is up for renewal.{/ts}
===========================================================
{ts}Membership Information{/ts}
===========================================================
{ts}Membership Status{/ts}: {$membership_status}
{if $mem_start_date}{ts}Membership Start Date{/ts}: {$mem_start_date|crmDate}
{/if}
{if $mem_end_date}{ts}Membership End Date{/ts}: {$mem_end_date|crmDate}
{/if}
', '
{capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture}
{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture}
{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture}
{assign var="greeting" value="{contact.email_greeting}"}{if $greeting} {$greeting}, {/if}
{ts 1=$membershipType}The automatic renewal of your %1 membership has been cancelled as requested. This does not affect the status of your membership - you will receive a separate notification when your membership is up for renewal.{/ts}
|
{ts}Membership Information{/ts}
|
{ts}Membership Status{/ts}
|
{$membership_status}
|
{if $mem_start_date}
{ts}Membership Start Date{/ts}
|
{$mem_start_date|crmDate}
|
{/if}
{if $mem_end_date}
{ts}Membership End Date{/ts}
|
{$mem_end_date|crmDate}
|
{/if}
', @tpl_ovid_membership_autorenew_cancelled, 0, 1) ,
('Memberships - Auto-renew Billing Updates', '{ts}Membership Autorenewal Billing Updates{/ts} - {contact.display_name}
', '{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}{$greeting},{/if}
{ts 1=$membershipType}Billing details for your automatically renewed %1 membership have been updated.{/ts}
===========================================================
{ts}Billing Name and Address{/ts}
===========================================================
{$billingName}
{$address}
{$email}
===========================================================
{ts}Credit Card Information{/ts}
===========================================================
{$credit_card_type}
{$credit_card_number}
{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}
{ts 1=$receipt_from_email}If you have questions please contact us at %1{/ts}
', '
{capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture}
{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture}
{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture}
{assign var="greeting" value="{contact.email_greeting}"}{if $greeting} {$greeting}, {/if}
{ts 1=$membershipType}Billing details for your automatically renewed %1 membership have been updated.{/ts}
|
{ts}Billing Name and Address{/ts}
|
{$billingName}
{$address|nl2br}
{$email}
|
{ts}Credit Card Information{/ts}
|
{$credit_card_type}
{$credit_card_number}
{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}
|
{ts 1=$receipt_from_email}If you have questions please contact us at %1{/ts}
|
', @tpl_ovid_membership_autorenew_billing, 1, 0),
('Memberships - Auto-renew Billing Updates', '{ts}Membership Autorenewal Billing Updates{/ts} - {contact.display_name}
', '{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}{$greeting},{/if}
{ts 1=$membershipType}Billing details for your automatically renewed %1 membership have been updated.{/ts}
===========================================================
{ts}Billing Name and Address{/ts}
===========================================================
{$billingName}
{$address}
{$email}
===========================================================
{ts}Credit Card Information{/ts}
===========================================================
{$credit_card_type}
{$credit_card_number}
{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}
{ts 1=$receipt_from_email}If you have questions please contact us at %1{/ts}
', '
{capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture}
{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture}
{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture}
{assign var="greeting" value="{contact.email_greeting}"}{if $greeting} {$greeting}, {/if}
{ts 1=$membershipType}Billing details for your automatically renewed %1 membership have been updated.{/ts}
|
{ts}Billing Name and Address{/ts}
|
{$billingName}
{$address|nl2br}
{$email}
|
{ts}Credit Card Information{/ts}
|
{$credit_card_type}
{$credit_card_number}
{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:\'\'|crmDate}
|
{ts 1=$receipt_from_email}If you have questions please contact us at %1{/ts}
|
', @tpl_ovid_membership_autorenew_billing, 0, 1) ,
('Test-drive - Receipt Header', '[TEST]
', '***********************************************************
{ts}Test-drive Email / Receipt{/ts}
{ts}This is a test-drive email. No live financial transaction has occurred.{/ts}
***********************************************************
', '
{ts}Test-drive Email / Receipt{/ts}
{ts}This is a test-drive email. No live financial transaction has occurred.{/ts}
|
', @tpl_ovid_test_preview, 1, 0),
('Test-drive - Receipt Header', '[TEST]
', '***********************************************************
{ts}Test-drive Email / Receipt{/ts}
{ts}This is a test-drive email. No live financial transaction has occurred.{/ts}
***********************************************************
', '
{ts}Test-drive Email / Receipt{/ts}
{ts}This is a test-drive email. No live financial transaction has occurred.{/ts}
|
', @tpl_ovid_test_preview, 0, 1) ,
('Pledges - Acknowledgement', '{ts}Thank you for your Pledge{/ts} - {contact.display_name}
', '{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}{$greeting}, {/if}
{ts}Thank you for your generous pledge.{/ts}
===========================================================
{ts}Pledge Information{/ts}
===========================================================
{ts}Pledge Received{/ts}: {$create_date|truncate:10:\'\'|crmDate}
{ts}Total Pledge Amount{/ts}: {$total_pledge_amount|crmMoney:$currency}
===========================================================
{ts}Payment Schedule{/ts}
===========================================================
{ts 1=$scheduled_amount|crmMoney:$currency 2=$frequency_interval 3=$frequency_unit 4=$installments}%1 every %2 %3 for %4 installments.{/ts}
{if $frequency_day}
{ts 1=$frequency_day 2=$frequency_unit}Payments are due on day %1 of the %2.{/ts}
{/if}
{if $payments}
{assign var="count" value="1"}
{foreach from=$payments item=payment}
{ts 1=$count}Payment %1{/ts}: {$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}
{assign var="count" value=`$count+1`}
{/foreach}
{/if}
{ts 1=$domain.phone 2=$domain.email}Please contact us at %1 or send email to %2 if you have questions
or need to modify your payment schedule.{/ts}
{if $customGroup}
{foreach from=$customGroup item=value key=customName}
===========================================================
{$customName}
===========================================================
{foreach from=$value item=v key=n}
{$n}: {$v}
{/foreach}
{/foreach}
{/if}
', '
{capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture}
{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture}
{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture}
{assign var="greeting" value="{contact.email_greeting}"}{if $greeting} {$greeting}, {/if}
{ts}Thank you for your generous pledge.{/ts}
|
{ts}Pledge Information{/ts}
|
{ts}Pledge Received{/ts}
|
{$create_date|truncate:10:\'\'|crmDate}
|
{ts}Total Pledge Amount{/ts}
|
{$total_pledge_amount|crmMoney:$currency}
|
{ts}Payment Schedule{/ts}
|
{ts 1=$scheduled_amount|crmMoney:$currency 2=$frequency_interval 3=$frequency_unit 4=$installments}%1 every %2 %3 for %4 installments.{/ts}
{if $frequency_day}
{ts 1=$frequency_day 2=$frequency_unit}Payments are due on day %1 of the %2.{/ts}
{/if}
|
{if $payments}
{assign var="count" value="1"}
{foreach from=$payments item=payment}
{ts 1=$count}Payment %1{/ts}
|
{$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}
|
{assign var="count" value=`$count+1`}
{/foreach}
{/if}
{ts 1=$domain.phone 2=$domain.email}Please contact us at %1 or send email to %2 if you have questions
or need to modify your payment schedule.{/ts}
|
{if $customGroup}
{foreach from=$customGroup item=value key=customName}
{$customName}
|
{foreach from=$value item=v key=n}
{$n}
|
{$v}
|
{/foreach}
{/foreach}
{/if}
|
', @tpl_ovid_pledge_acknowledge, 1, 0),
('Pledges - Acknowledgement', '{ts}Thank you for your Pledge{/ts} - {contact.display_name}
', '{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}{$greeting}, {/if}
{ts}Thank you for your generous pledge.{/ts}
===========================================================
{ts}Pledge Information{/ts}
===========================================================
{ts}Pledge Received{/ts}: {$create_date|truncate:10:\'\'|crmDate}
{ts}Total Pledge Amount{/ts}: {$total_pledge_amount|crmMoney:$currency}
===========================================================
{ts}Payment Schedule{/ts}
===========================================================
{ts 1=$scheduled_amount|crmMoney:$currency 2=$frequency_interval 3=$frequency_unit 4=$installments}%1 every %2 %3 for %4 installments.{/ts}
{if $frequency_day}
{ts 1=$frequency_day 2=$frequency_unit}Payments are due on day %1 of the %2.{/ts}
{/if}
{if $payments}
{assign var="count" value="1"}
{foreach from=$payments item=payment}
{ts 1=$count}Payment %1{/ts}: {$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}
{assign var="count" value=`$count+1`}
{/foreach}
{/if}
{ts 1=$domain.phone 2=$domain.email}Please contact us at %1 or send email to %2 if you have questions
or need to modify your payment schedule.{/ts}
{if $customGroup}
{foreach from=$customGroup item=value key=customName}
===========================================================
{$customName}
===========================================================
{foreach from=$value item=v key=n}
{$n}: {$v}
{/foreach}
{/foreach}
{/if}
', '
{capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture}
{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture}
{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture}
{assign var="greeting" value="{contact.email_greeting}"}{if $greeting} {$greeting}, {/if}
{ts}Thank you for your generous pledge.{/ts}
|
{ts}Pledge Information{/ts}
|
{ts}Pledge Received{/ts}
|
{$create_date|truncate:10:\'\'|crmDate}
|
{ts}Total Pledge Amount{/ts}
|
{$total_pledge_amount|crmMoney:$currency}
|
{ts}Payment Schedule{/ts}
|
{ts 1=$scheduled_amount|crmMoney:$currency 2=$frequency_interval 3=$frequency_unit 4=$installments}%1 every %2 %3 for %4 installments.{/ts}
{if $frequency_day}
{ts 1=$frequency_day 2=$frequency_unit}Payments are due on day %1 of the %2.{/ts}
{/if}
|
{if $payments}
{assign var="count" value="1"}
{foreach from=$payments item=payment}
{ts 1=$count}Payment %1{/ts}
|
{$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}
|
{assign var="count" value=`$count+1`}
{/foreach}
{/if}
{ts 1=$domain.phone 2=$domain.email}Please contact us at %1 or send email to %2 if you have questions
or need to modify your payment schedule.{/ts}
|
{if $customGroup}
{foreach from=$customGroup item=value key=customName}
{$customName}
|
{foreach from=$value item=v key=n}
{$n}
|
{$v}
|
{/foreach}
{/foreach}
{/if}
|
', @tpl_ovid_pledge_acknowledge, 0, 1) ,
('Pledges - Payment Reminder', '{ts}Pledge Payment Reminder{/ts} - {contact.display_name}
', '{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}{$greeting},{/if}
{ts 1=$next_payment|truncate:10:\'\'|crmDate}This is a reminder that the next payment on your pledge is due on %1.{/ts}
===========================================================
{ts}Payment Due{/ts}
===========================================================
{ts}Amount Due{/ts}: {$amount_due|crmMoney:$currency}
{ts}Due Date{/ts}: {$scheduled_payment_date|truncate:10:\'\'|crmDate}
{if $contribution_page_id}
{capture assign=contributionUrl}{crmURL p=\'civicrm/contribute/transact\' q="reset=1&id=`$contribution_page_id`&cid=`$contact.contact_id`&pledgeId=`$pledge_id`&cs=`$checksumValue`" a=true h=0}{/capture}
Click this link to go to a web page where you can make your payment online:
{$contributionUrl}
{else}
{ts}Please mail your payment to{/ts}:
{$domain.address}
{/if}
===========================================================
{ts}Pledge Information{/ts}
===========================================================
{ts}Pledge Received{/ts}: {$create_date|truncate:10:\'\'|crmDate}
{ts}Total Pledge Amount{/ts}: {$amount|crmMoney:$currency}
{ts}Total Paid{/ts}: {$amount_paid|crmMoney:$currency}
{ts 1=$domain.phone 2=$domain.email}Please contact us at %1 or send email to %2 if you have questions
or need to modify your payment schedule.{/ts}
{ts}Thank your for your generous support.{/ts}
', '
{capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture}
{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture}
{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture}
{assign var="greeting" value="{contact.email_greeting}"}{if $greeting} {$greeting}, {/if}
{ts 1=$next_payment|truncate:10:\'\'|crmDate}This is a reminder that the next payment on your pledge is due on %1.{/ts}
|
{ts}Payment Due{/ts}
|
{ts}Amount Due{/ts}
|
{$amount_due|crmMoney:$currency}
|
|
{if $contribution_page_id}
{capture assign=contributionUrl}{crmURL p=\'civicrm/contribute/transact\' q="reset=1&id=`$contribution_page_id`&cid=`$contact.contact_id`&pledgeId=`$pledge_id`&cs=`$checksumValue`" a=true h=0}{/capture}
{ts}Go to a web page where you can make your payment online{/ts}
{else}
{ts}Please mail your payment to{/ts}: {$domain.address}
{/if}
|
{ts}Pledge Information{/ts}
|
{ts}Pledge Received{/ts}
|
{$create_date|truncate:10:\'\'|crmDate}
|
{ts}Total Pledge Amount{/ts}
|
{$amount|crmMoney:$currency}
|
{ts}Total Paid{/ts}
|
{$amount_paid|crmMoney:$currency}
|
|
{ts 1=$domain.phone 2=$domain.email}Please contact us at %1 or send email to %2 if you have questions
or need to modify your payment schedule.{/ts}
{ts}Thank your for your generous support.{/ts}
|
', @tpl_ovid_pledge_reminder, 1, 0),
('Pledges - Payment Reminder', '{ts}Pledge Payment Reminder{/ts} - {contact.display_name}
', '{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}{$greeting},{/if}
{ts 1=$next_payment|truncate:10:\'\'|crmDate}This is a reminder that the next payment on your pledge is due on %1.{/ts}
===========================================================
{ts}Payment Due{/ts}
===========================================================
{ts}Amount Due{/ts}: {$amount_due|crmMoney:$currency}
{ts}Due Date{/ts}: {$scheduled_payment_date|truncate:10:\'\'|crmDate}
{if $contribution_page_id}
{capture assign=contributionUrl}{crmURL p=\'civicrm/contribute/transact\' q="reset=1&id=`$contribution_page_id`&cid=`$contact.contact_id`&pledgeId=`$pledge_id`&cs=`$checksumValue`" a=true h=0}{/capture}
Click this link to go to a web page where you can make your payment online:
{$contributionUrl}
{else}
{ts}Please mail your payment to{/ts}:
{$domain.address}
{/if}
===========================================================
{ts}Pledge Information{/ts}
===========================================================
{ts}Pledge Received{/ts}: {$create_date|truncate:10:\'\'|crmDate}
{ts}Total Pledge Amount{/ts}: {$amount|crmMoney:$currency}
{ts}Total Paid{/ts}: {$amount_paid|crmMoney:$currency}
{ts 1=$domain.phone 2=$domain.email}Please contact us at %1 or send email to %2 if you have questions
or need to modify your payment schedule.{/ts}
{ts}Thank your for your generous support.{/ts}
', '
{capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture}
{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture}
{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture}
{assign var="greeting" value="{contact.email_greeting}"}{if $greeting} {$greeting}, {/if}
{ts 1=$next_payment|truncate:10:\'\'|crmDate}This is a reminder that the next payment on your pledge is due on %1.{/ts}
|
{ts}Payment Due{/ts}
|
{ts}Amount Due{/ts}
|
{$amount_due|crmMoney:$currency}
|
|
{if $contribution_page_id}
{capture assign=contributionUrl}{crmURL p=\'civicrm/contribute/transact\' q="reset=1&id=`$contribution_page_id`&cid=`$contact.contact_id`&pledgeId=`$pledge_id`&cs=`$checksumValue`" a=true h=0}{/capture}
{ts}Go to a web page where you can make your payment online{/ts}
{else}
{ts}Please mail your payment to{/ts}: {$domain.address}
{/if}
|
{ts}Pledge Information{/ts}
|
{ts}Pledge Received{/ts}
|
{$create_date|truncate:10:\'\'|crmDate}
|
{ts}Total Pledge Amount{/ts}
|
{$amount|crmMoney:$currency}
|
{ts}Total Paid{/ts}
|
{$amount_paid|crmMoney:$currency}
|
|
{ts 1=$domain.phone 2=$domain.email}Please contact us at %1 or send email to %2 if you have questions
or need to modify your payment schedule.{/ts}
{ts}Thank your for your generous support.{/ts}
|
', @tpl_ovid_pledge_reminder, 0, 1) ,
('Profiles - Admin Notification', '{$grouptitle} {ts 1=$displayName}Submitted by %1{/ts} - {contact.display_name}
', '{ts}Submitted For:{/ts} {$displayName}
{ts}Date:{/ts} {$currentDate}
{ts}Contact Summary:{/ts} {$contactLink}
===========================================================
{$grouptitle}
===========================================================
{foreach from=$values item=value key=valueName}
{$valueName}: {$value}
{/foreach}
', '
{capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture}
{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture}
{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture}
{ts}Submitted For{/ts}
|
{$displayName}
|
{ts}Date{/ts}
|
{$currentDate}
|
{ts}Contact Summary{/ts}
|
{$contactLink}
|
{$grouptitle}
|
{foreach from=$values item=value key=valueName}
{$valueName}
|
{$value}
|
{/foreach}
|
', @tpl_ovid_uf_notify, 1, 0),
('Profiles - Admin Notification', '{$grouptitle} {ts 1=$displayName}Submitted by %1{/ts} - {contact.display_name}
', '{ts}Submitted For:{/ts} {$displayName}
{ts}Date:{/ts} {$currentDate}
{ts}Contact Summary:{/ts} {$contactLink}
===========================================================
{$grouptitle}
===========================================================
{foreach from=$values item=value key=valueName}
{$valueName}: {$value}
{/foreach}
', '
{capture assign=headerStyle}colspan="2" style="text-align: left; padding: 4px; border-bottom: 1px solid #999; background-color: #eee;"{/capture}
{capture assign=labelStyle }style="padding: 4px; border-bottom: 1px solid #999; background-color: #f7f7f7;"{/capture}
{capture assign=valueStyle }style="padding: 4px; border-bottom: 1px solid #999;"{/capture}
{ts}Submitted For{/ts}
|
{$displayName}
|
{ts}Date{/ts}
|
{$currentDate}
|
{ts}Contact Summary{/ts}
|
{$contactLink}
|
{$grouptitle}
|
{foreach from=$values item=value key=valueName}
{$valueName}
|
{$value}
|
{/foreach}
|
', @tpl_ovid_uf_notify, 0, 1) ,
('Petition - signature added', 'Thank you for signing {$petition.title} - {contact.display_name}
', '{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}{$greeting},{/if}
Thank you for signing {$petition.title}.
', '{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}{$greeting}, {/if}
Thank you for signing {$petition.title}.
{include file="CRM/Campaign/Page/Petition/SocialNetwork.tpl" petition_id=$survey_id noscript=true emailMode=true}
', @tpl_ovid_petition_sign, 1, 0),
('Petition - signature added', 'Thank you for signing {$petition.title} - {contact.display_name}
', '{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}{$greeting},{/if}
Thank you for signing {$petition.title}.
', '{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}{$greeting}, {/if}
Thank you for signing {$petition.title}.
{include file="CRM/Campaign/Page/Petition/SocialNetwork.tpl" petition_id=$survey_id noscript=true emailMode=true}
', @tpl_ovid_petition_sign, 0, 1) ,
('Petition - need verification', 'Confirmation of signature needed for {$petition.title} - {contact.display_name}
', '{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}{$greeting},{/if}
Thank you for signing {$petition.title}.
In order to complete your signature, we must confirm your e-mail.
Please do so by visiting the following email confirmation web page:
{$petition.confirmUrlPlainText}
If you did not sign this petition, please ignore this message.
', '{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}{$greeting}, {/if}
Thank you for signing {$petition.title}.
In order to complete your signature, we must confirm your e-mail.
Please do so by visiting the following web page by clicking
on the link below or pasting the link into your browser.
Email confirmation page: {$petition.confirmUrl}
If you did not sign this petition, please ignore this message.
', @tpl_ovid_petition_confirmation_needed, 1, 0),
('Petition - need verification', 'Confirmation of signature needed for {$petition.title} - {contact.display_name}
', '{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}{$greeting},{/if}
Thank you for signing {$petition.title}.
In order to complete your signature, we must confirm your e-mail.
Please do so by visiting the following email confirmation web page:
{$petition.confirmUrlPlainText}
If you did not sign this petition, please ignore this message.
', '{assign var="greeting" value="{contact.email_greeting}"}{if $greeting}{$greeting}, {/if}
Thank you for signing {$petition.title}.
In order to complete your signature, we must confirm your e-mail.
Please do so by visiting the following web page by clicking
on the link below or pasting the link into your browser.
Email confirmation page: {$petition.confirmUrl}
If you did not sign this petition, please ignore this message.
', @tpl_ovid_petition_confirmation_needed, 0, 1) ;
INSERT INTO civicrm_msg_template
(msg_title, msg_subject, msg_text, msg_html, workflow_id, is_default, is_reserved) VALUES
('Sample CiviMail Newsletter Template', 'Sample CiviMail Newsletter', '', '
|
Greetings {contact.display_name},
This is a sample template designed to help you get started creating and sending your own CiviMail messages. This template uses an HTML layout that is generally compatible with the wide variety of email clients that your recipients might be using (e.g. Gmail, Outlook, Yahoo, etc.).
You can select this "Sample CiviMail Newsletter Template" from the "Use Template" drop-down in Step 3 of creating a mailing, and customize it to your needs. Then check the "Save as New Template" box on the bottom the page to save your customized version for use in future mailings.
The logo you use must be uploaded to your server. Copy and paste the URL path to the logo into the <img src= tag in the HTML at the top. Click "Source" or the Image button if you are using the text editor.
Edit the color of the links and headers using the color button or by editing the HTML.
Your newsletter message and donation appeal can go here. Click the link button to create links - remember to use a fully qualified URL starting with http:// in all your links!
To use CiviMail:
Sincerely,
Your Team
|
|
News and Events |
Featured Events
Fundraising Dinner
Training Meeting
Board of Directors Annual Meeting
Community Events
Bake Sale
Charity Auction
Art Exhibit
Important Dates
Tuesday August 27
Wednesday September 8
Thursday September 29
Saturday October 1
Sunday October 20
|
|
Helpful Tips
Tokens
Click "Insert Tokens" to dynamically insert names, addresses, and other contact data of your recipients.
Plain Text Version
Some people refuse HTML emails altogether. We recommend sending a plain-text version of your important communications to accommodate them. Luckily, CiviCRM accommodates for this! Just click "Plain Text" and copy and paste in some text. Line breaks (carriage returns) and fully qualified URLs like http://www.example.com are all you get, no HTML here!
Play by the Rules
The address of the sender is required by the Can Spam Act law. This is an available token called domain.address. An unsubscribe or opt-out link is also required. There are several available tokens for this. {action.optOutUrl} creates a link for recipients to click if they want to opt out of receiving emails from your organization. {action.unsubscribeUrl} creates a link to unsubscribe from the specific mailing list used to send this message. Click on "Insert Tokens" to find these and look for tokens named "Domain" or "Unsubscribe". This sample template includes both required tokens at the bottom of the message. You can also configure a default Mailing Footer containing these tokens.
Composing Offline
If you prefer to compose an HTML email offline in your own text editor, you can upload this HTML content into CiviMail or simply click "Source" and then copy and paste the HTML in.
Images
Most email clients these days (Outlook, Gmail, etc) block image loading by default. This is to protect their users from annoying or harmful email. Not much we can do about this, so encourage recipients to add you to their contacts or "whitelist". Also use images sparingly, do not rely on images to convey vital information, and always use HTML "alt" tags which describe the image content.
|
|
Click here to unsubscribe from this mailing list.
Our mailing address is:
{domain.address}
|
' ,NULL, 1, 0);
INSERT INTO civicrm_msg_template
(msg_title, msg_subject, msg_text, msg_html, workflow_id, is_default, is_reserved) VALUES
('Sample Responsive Design Newsletter - Single Column Template', 'Sample Responsive Design Newsletter - Single Column', '', '
|
Organization or Program Name Here |
|
|
|
|
|
Headline Here |
|
|
Your Heading Here |
|
{contact.email_greeting},
Replace with your text and images, and remember to link the facebook and twitter links in the footer to your pages. Have fun!
|
Read More |
|
|
|
|
|
|
|
|
Your Heading Here |
|
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna
|
Read More |
|
|
|
|
|
|
|
|
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna
|
|
|
|
|
|
|
|
Remember to link the facebook and twitter links below to your pages!
|
Read More |
|
|
|
|
|
' ,NULL, 1, 0);
INSERT INTO civicrm_msg_template
(msg_title, msg_subject, msg_text, msg_html, workflow_id, is_default, is_reserved) VALUES
('Sample Responsive Design Newsletter - Two Column Template', 'Sample Responsive Design Newsletter - Two Column', '', '
|
Organization or Program Name Here |
|
|
|
|
Hero Story Heading |
|
|
Subheading Here |
|
Replace with your text and images, and remember to link the facebook and twitter links in the footer to your pages. Have fun! |
|
|
|
|
Section Heading Here |
|
|
|
Heading Here |
|
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna |
Read More |
|
|
|
|
|
|
|
Heading Here |
|
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna |
Read More |
|
|
|
|
|
|
|
Heading Here |
|
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna |
Read More |
|
|
|
|
|
|
|
Heading Here |
|
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna |
Read More |
|
|
|
Remember to link the facebook and twitter links below to your pages!
|
|
|
' ,NULL, 1, 0);
-- CRM-8358
INSERT INTO `civicrm_job`
( domain_id, run_frequency, last_run, name, description, api_entity, api_action, parameters, is_active )
VALUES
( @domainID, 'Daily' , NULL, 'CiviCRM Update Check', 'Checks for CiviCRM version updates. Important for keeping the database secure. Also sends anonymous usage statistics to civicrm.org to to assist in prioritizing ongoing development efforts.', 'job', 'version_check', NULL, 1),
( @domainID, 'Always' , NULL, 'Send Scheduled Mailings', 'Sends out scheduled CiviMail mailings', 'job', 'process_mailing', NULL, 0),
( @domainID, 'Hourly' , NULL, 'Fetch Bounces', 'Fetches bounces from mailings and writes them to mailing statistics', 'job', 'fetch_bounces', NULL, 0),
( @domainID, 'Hourly' , NULL, 'Process Inbound Emails', 'Inserts activity for a contact or a case by retrieving inbound emails from a mail directory', 'job', 'fetch_activities', NULL, 0),
( @domainID, 'Daily' , NULL, 'Process Pledges', 'Updates pledge records and sends out reminders', 'job', 'process_pledge','send_reminders=[1 or 0] optional- 1 to send payment reminders', 0),
( @domainID, 'Daily' , NULL, 'Geocode and Parse Addresses', 'Retrieves geocodes (lat and long) and / or parses street addresses (populates street number, street name, etc.)', 'job', 'geocode', 'geocoding=[1 or 0] required\nparse=[1 or 0] required\nstart=[contact ID] optional-begin with this contact ID\nend=[contact ID] optional-process contacts with IDs less than this\nthrottle=[1 or 0] optional-1 adds five second sleep', 0),
( @domainID, 'Daily' , NULL, 'Update Greetings and Addressees','Goes through contact records and updates email and postal greetings, or addressee value', 'job', 'update_greeting','ct=[Individual or Household or Organization] required\ngt=[email_greeting or postal_greeting or addressee] required\nforce=[0 or 1] optional-0 update contacts with null value, 1 update all\nlimit=Number optional-Limit the number of contacts to update', 0),
( @domainID, 'Daily' , NULL, 'Mail Reports', 'Generates and sends out reports via email', 'job', 'mail_report','instanceId=[ID of report instance] required\nformat=[csv or print] optional-output CSV or print-friendly HTML, else PDF', 0),
( @domainID, 'Daily' , NULL, 'Send Scheduled Reminders', 'Sends out scheduled reminders via email', 'job', 'send_reminder', NULL, 0),
( @domainID, 'Always' , NULL, 'Update Participant Statuses', 'Updates pending event participant statuses based on time', 'job', 'process_participant', NULL, 0),
( @domainID, 'Daily' , NULL, 'Update Membership Statuses', 'Updates membership statuses. WARNING: Membership renewal reminders have been migrated to the Schedule Reminders functionality, which supports multiple renewal reminders.', 'job', 'process_membership', NULL, 0),
( @domainID, 'Always' , NULL, 'Process Survey Respondents', 'Releases reserved survey respondents when they have been reserved for longer than the Release Frequency days specified for that survey.', 'job', 'process_respondent',NULL, 0),
( @domainID, 'Hourly' , NULL, 'Clean-up Temporary Data and Files','Removes temporary data and files, and clears old data from cache tables. Recommend running this job every hour to help prevent database and file system bloat.', 'job', 'cleanup', NULL, 0),
( @domainID, 'Always' , NULL, 'Send Scheduled SMS', 'Sends out scheduled SMS', 'job', 'process_sms', NULL, 0),
( @domainID, 'Always' , NULL, 'Rebuild Smart Group Cache', 'Rebuilds the smart group cache.', 'job', 'group_rebuild', 'limit=Number optional-Limit the number of smart groups rebuild', 0),
( @domainID, 'Daily' , NULL, 'Disable expired relationships','Disables relationships that have expired (ie. those relationships whose end date is in the past).', 'job', 'disable_expired_relationships', NULL, 0),
( @domainID, 'Daily' , NULL, 'Validate Email Address from Mailings.', 'Updates the reset_date on an email address to indicate that there was a valid delivery to this email address.', 'mailing', 'update_email_resetdate', 'minDays, maxDays=Consider mailings that have completed between minDays and maxDays', 0);
SELECT @option_value_rel_id := value FROM civicrm_option_value WHERE option_group_id = @option_group_id_arel AND name = 'Income Account is';
SELECT @option_value_rel_id_exp := value FROM civicrm_option_value WHERE option_group_id = @option_group_id_arel AND name = 'Expense Account is';
SELECT @option_value_rel_id_ar := value FROM civicrm_option_value WHERE option_group_id = @option_group_id_arel AND name = 'Accounts Receivable Account is';
SELECT @option_value_rel_id_as := value FROM civicrm_option_value WHERE option_group_id = @option_group_id_arel AND name = 'Asset Account is';
SELECT @option_value_rel_id_cg := value FROM civicrm_option_value WHERE option_group_id = @option_group_id_arel AND name = 'Cost of Sales Account is';
SELECT @option_value_rel_id_dr := value FROM civicrm_option_value WHERE option_group_id = @option_group_id_arel AND name = 'Deferred Revenue Account is';
SELECT @financial_type_id_dtn := max(id) FROM civicrm_financial_type WHERE name = 'Donation';
SELECT @financial_type_id_md := max(id) FROM civicrm_financial_type WHERE name = 'Member Dues';
SELECT @financial_type_id_cc := max(id) FROM civicrm_financial_type WHERE name = 'Campaign Contribution';
SELECT @financial_type_id_ef := max(id) FROM civicrm_financial_type WHERE name = 'Event Fee';
SELECT @financial_account_id_dtn := max(id) FROM civicrm_financial_account WHERE name = 'Donation';
SELECT @financial_account_id_md := max(id) FROM civicrm_financial_account WHERE name = 'Member Dues';
SELECT @financial_account_id_cc := max(id) FROM civicrm_financial_account WHERE name = 'Campaign Contribution';
SELECT @financial_account_id_ef := max(id) FROM civicrm_financial_account WHERE name = 'Event Fee';
SELECT @financial_account_id_bf := max(id) FROM civicrm_financial_account WHERE name = 'Banking Fees';
SELECT @financial_account_id_ap := max(id) FROM civicrm_financial_account WHERE name = 'Accounts Receivable';
SELECT @financial_account_id_ar := max(id) FROM civicrm_financial_account WHERE name = 'Deposit Bank Account';
SELECT @financial_account_id_pp := max(id) FROM civicrm_financial_account WHERE name = 'Payment Processor Account';
SELECT @financial_account_id_pr := max(id) FROM civicrm_financial_account WHERE name = 'Premiums';
SELECT @financial_account_id_dref := max(id) FROM civicrm_financial_account WHERE name = 'Deferred Revenue - Event Fee';
SELECT @financial_account_id_drmd := max(id) FROM civicrm_financial_account WHERE name = 'Deferred Revenue - Member Dues';
INSERT INTO `civicrm_entity_financial_account`
( entity_table, entity_id, account_relationship, financial_account_id )
VALUES
( 'civicrm_financial_type', @financial_type_id_dtn, @option_value_rel_id, @financial_account_id_dtn ),
( 'civicrm_financial_type', @financial_type_id_dtn, @option_value_rel_id_exp, @financial_account_id_bf ),
( 'civicrm_financial_type', @financial_type_id_dtn, @option_value_rel_id_ar, @financial_account_id_ap ),
( 'civicrm_financial_type', @financial_type_id_dtn, @option_value_rel_id_cg, @financial_account_id_pr ),
( 'civicrm_financial_type', @financial_type_id_md, @option_value_rel_id, @financial_account_id_md ),
( 'civicrm_financial_type', @financial_type_id_md, @option_value_rel_id_exp, @financial_account_id_bf ),
( 'civicrm_financial_type', @financial_type_id_md, @option_value_rel_id_ar, @financial_account_id_ap ),
( 'civicrm_financial_type', @financial_type_id_md, @option_value_rel_id_cg, @financial_account_id_pr ),
( 'civicrm_financial_type', @financial_type_id_md, @option_value_rel_id_dr, @financial_account_id_drmd ),
( 'civicrm_financial_type', @financial_type_id_cc, @option_value_rel_id, @financial_account_id_cc ),
( 'civicrm_financial_type', @financial_type_id_cc, @option_value_rel_id_exp, @financial_account_id_bf ),
( 'civicrm_financial_type', @financial_type_id_cc, @option_value_rel_id_ar, @financial_account_id_ap ),
( 'civicrm_financial_type', @financial_type_id_cc, @option_value_rel_id_cg, @financial_account_id_pr ),
( 'civicrm_financial_type', @financial_type_id_ef, @option_value_rel_id_exp, @financial_account_id_bf ),
( 'civicrm_financial_type', @financial_type_id_ef, @option_value_rel_id_ar, @financial_account_id_ap ),
( 'civicrm_financial_type', @financial_type_id_ef, @option_value_rel_id, @financial_account_id_ef ),
( 'civicrm_financial_type', @financial_type_id_ef, @option_value_rel_id_dr, @financial_account_id_dref ),
( 'civicrm_financial_type', @financial_type_id_ef, @option_value_rel_id_cg, @financial_account_id_pr );
-- CRM-11516
INSERT INTO civicrm_entity_financial_account (entity_table, entity_id, account_relationship, financial_account_id)
SELECT 'civicrm_option_value', cov.id, @option_value_rel_id_as, @financial_account_id_ar FROM `civicrm_option_group` cog
LEFT JOIN civicrm_option_value cov ON cog.id = cov.option_group_id
WHERE cog.name = 'payment_instrument' AND cov.name NOT IN ('Credit Card', 'Debit Card');
SELECT @option_value_cc_id := max(id) FROM `civicrm_option_value` WHERE `option_group_id` = @option_group_id_pi AND `name` = 'Credit Card';
SELECT @option_value_dc_id := max(id) FROM `civicrm_option_value` WHERE `option_group_id` = @option_group_id_pi AND `name` = 'Debit Card';
INSERT INTO `civicrm_entity_financial_account`
( entity_table, entity_id, account_relationship, financial_account_id )
VALUES
( 'civicrm_option_value', @option_value_cc_id, @option_value_rel_id_as, @financial_account_id_pp),
( 'civicrm_option_value', @option_value_dc_id, @option_value_rel_id_as, @financial_account_id_pp);
-- CRM-9714
SELECT @financial_type_id := max(id) FROM `civicrm_financial_type` WHERE `name` = 'Member Dues';
INSERT INTO `civicrm_price_set` ( `name`, `title`, `is_active`, `extends`, `is_quick_config`, `financial_type_id`, `is_reserved` )
VALUES ( 'default_contribution_amount', 'Contribution Amount', '1', '2', '1', NULL,1),
( 'default_membership_type_amount', 'Membership Amount', '1', '3', '1', @financial_type_id,1);
SELECT @setID := max(id) FROM civicrm_price_set WHERE name = 'default_contribution_amount' AND extends = 2 AND is_quick_config = 1 ;
INSERT INTO `civicrm_price_field` (`price_set_id`, `name`, `label`, `html_type`,`weight`, `is_display_amounts`, `options_per_line`, `is_active`, `is_required`,`visibility_id` )
VALUES ( @setID, 'contribution_amount', 'Contribution Amount', 'Text', '1', '1', '1', '1', '1', '1' );
SELECT @fieldID := max(id) FROM civicrm_price_field WHERE name = 'contribution_amount' AND price_set_id = @setID;
INSERT INTO `civicrm_price_field_value` ( `price_field_id`, `name`, `label`, `amount`, `weight`, `is_default`, `is_active`, `financial_type_id`)
VALUES ( @fieldID, 'contribution_amount', 'Contribution Amount', '1', '1', '0', '1', 1);
-- CRM-13833
INSERT INTO civicrm_option_group (`name`, `title`, `is_reserved`, `is_active`) VALUES ('soft_credit_type', 'Soft Credit Types', 1, 1);
SELECT @option_group_id_soft_credit_type := max(id) from civicrm_option_group where name = 'soft_credit_type';
INSERT INTO `civicrm_option_value` (`option_group_id`, `label`, `value`, `name`, `weight`, `is_default`, `is_active`, `is_reserved`)
VALUES
(@option_group_id_soft_credit_type , 'In Honor of', 1, 'in_honor_of', 1, 0, 1, 1),
(@option_group_id_soft_credit_type , 'In Memory of', 2, 'in_memory_of', 2, 0, 1, 1),
(@option_group_id_soft_credit_type , 'Solicited', 3, 'solicited', 3, 1, 1, 1),
(@option_group_id_soft_credit_type , 'Hộ gia đình', 4, 'household', 4, 0, 1, 0),
(@option_group_id_soft_credit_type , 'Workplace Giving', 5, 'workplace', 5, 0, 1, 0),
(@option_group_id_soft_credit_type , 'Foundation Affiliate', 6, 'foundation_affiliate', 6, 0, 1, 0),
(@option_group_id_soft_credit_type , '3rd-party Service', 7, '3rd-party_service', 7, 0, 1, 0),
(@option_group_id_soft_credit_type , 'Donor-advised Fund', 8, 'donor-advised_fund', 8, 0, 1, 0),
(@option_group_id_soft_credit_type , 'Matched Gift', 9, 'matched_gift', 9, 0, 1, 0),
(@option_group_id_soft_credit_type , 'Personal Campaign Page', 10, 'pcp', 10, 0, 1, 1),
(@option_group_id_soft_credit_type , 'Gift', 11, 'gift', 11, 0, 1, 1);
-- Auto-install core extension.
-- Note this is a limited interim technique for installing core extensions - the goal is that core extensions would be installed
-- in the setup routine based on their tags & using the standard extension install api.
-- do not try this at home folks.
INSERT IGNORE INTO civicrm_extension (type, full_name, name, label, file, is_active) VALUES ('module', 'sequentialcreditnotes', 'Sequential credit notes', 'Sequential credit notes', 'sequentialcreditnotes', 1);
-- +--------------------------------------------------------------------+
-- | Copyright CiviCRM LLC. All rights reserved. |
-- | |
-- | This work is published under the GNU AGPLv3 license with some |
-- | permitted exceptions and without any warranty. For full license |
-- | and copyright information, see https://civicrm.org/licensing |
-- +--------------------------------------------------------------------+
-- Navigation Menu, Preferences and Mail Settings
--
-- Generated from civicrm_navigation.tpl
-- DO NOT EDIT. Generated by CRM_Core_CodeGen
SELECT @domainID := id FROM civicrm_domain where name = 'Default Domain Name';
-- Initial default state of system preferences
-- mail settings
INSERT INTO civicrm_mail_settings (domain_id, name, is_default, domain) VALUES (@domainID, 'default', true, 'EXAMPLE.ORG');
-- activity and case dashlets
INSERT INTO `civicrm_dashboard`
( `domain_id`, `name`, `label`, `url`, `permission`, `permission_operator`, `is_active`, `fullscreen_url`, `is_reserved`, `cache_minutes`)
VALUES
( @domainID, 'blog', 'CiviCRM News', 'civicrm/dashlet/blog?reset=1', 'access CiviCRM', NULL, 1, 'civicrm/dashlet/blog?reset=1&context=dashletFullscreen', 1, 1440),
( @domainID, 'getting-started', 'CiviCRM Resources', 'civicrm/dashlet/getting-started?reset=1', 'access CiviCRM', NULL, 1, 'civicrm/dashlet/getting-started?reset=1&context=dashletFullscreen', 1, 7200),
( @domainID, 'activity', 'Hoạt động', 'civicrm/dashlet/activity?reset=1', 'access CiviCRM', NULL, 1, 'civicrm/dashlet/activity?reset=1&context=dashletFullscreen', 1, 7200),
( @domainID, 'myCases', 'My Cases', 'civicrm/dashlet/myCases?reset=1', 'access my cases and activities', NULL, 1, 'civicrm/dashlet/myCases?reset=1&context=dashletFullscreen', 1, 60),
( @domainID, 'allCases', 'All Cases', 'civicrm/dashlet/allCases?reset=1', 'access all cases and activities', NULL, 1, 'civicrm/dashlet/allCases?reset=1&context=dashletFullscreen', 1, 60),
( @domainID, 'casedashboard', 'Case Dashboard Dashlet', 'civicrm/dashlet/casedashboard?reset=1', 'access my cases and activities,access all cases and activities', 'OR', 1, 'civicrm/dashlet/casedashboard?reset=1&context=dashletFullscreen', 1, 60);
-- event badge
INSERT INTO civicrm_print_label (title, name, description, label_format_name, label_type_id, is_default, is_reserved, is_active, data)
VALUES
('Annual Conference Hanging Badge (Avery 5395)', 'Annual_Conference_Hanging_Badge', 'For our annual conference', 'Avery 5395', 1, 1, 1, 1, '{"title":"Annual Conference Hanging Badge (Avery 5395)","label_format_name":"Avery 5395","description":"For our annual conference","token":{"1":"{event.title}","2":"{contact.display_name}","3":"{contact.current_employer}","4":"{event.start_date}"},"font_name":{"1":"dejavusans","2":"dejavusans","3":"dejavusans","4":"dejavusans"},"font_size":{"1":"9","2":"20","3":"15","4":"9"},"font_style":{"1":"","2":"","3":"","4":""},"text_alignment":{"1":"L","2":"C","3":"C","4":"R"},"barcode_type":"barcode","barcode_alignment":"R","image_1":"","image_2":"","is_default":"1","is_active":"1","is_reserved":"1","_qf_default":"Layout:next","_qf_Layout_refresh":"Save and Preview"}');
-- navigation
INSERT INTO civicrm_navigation
( domain_id, label, name, url, permission, permission_operator, parent_id, is_active, has_separator, weight )
VALUES
( @domainID, 'Home', 'Home', 'civicrm/dashboard?reset=1', NULL, '', NULL, 1, NULL, 0);
INSERT INTO civicrm_navigation
( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight, icon )
VALUES
( @domainID, NULL, 'Search', 'Search', NULL, '', NULL, '1', NULL, 10, 'crm-i fa-search' );
SET @searchlastID:=LAST_INSERT_ID();
INSERT INTO civicrm_navigation
( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight )
VALUES
( @domainID, 'civicrm/contact/search?reset=1', 'Find Contacts', 'Find Contacts', NULL, '', @searchlastID, '1', NULL, 1 ),
( @domainID, 'civicrm/contact/search/advanced?reset=1', 'Advanced Search', 'Advanced Search', NULL, '', @searchlastID, '1', NULL, 2 ),
( @domainID, 'civicrm/contact/search/custom?csid=15&reset=1', 'Full-text Search', 'Full-text Search', NULL, '', @searchlastID, '1', NULL, 3 ),
( @domainID, 'civicrm/contact/search/builder?reset=1', 'Search Builder', 'Search Builder', NULL, '', @searchlastID, '1', '1', 4 ),
( @domainID, 'civicrm/case/search?reset=1', 'Find Cases', 'Find Cases', 'access my cases and activities,access all cases and activities', 'OR', @searchlastID, '1', NULL, 5 ),
( @domainID, 'civicrm/contribute/search?reset=1', 'Find Contributions', 'Find Contributions', 'access CiviContribute', '', @searchlastID, '1', NULL, 6 ),
( @domainID, 'civicrm/mailing?reset=1', 'Find Mailings', 'Find Mailings', 'access CiviMail', '', @searchlastID, '1', NULL, 7 ),
( @domainID, 'civicrm/member/search?reset=1', 'Find Memberships', 'Find Memberships', 'access CiviMember', '', @searchlastID, '1', NULL, 8 ),
( @domainID, 'civicrm/event/search?reset=1', 'Find Participants', 'Find Participants', 'access CiviEvent', '', @searchlastID, '1', NULL, 9 ),
( @domainID, 'civicrm/pledge/search?reset=1', 'Find Pledges', 'Find Pledges', 'access CiviPledge', '', @searchlastID, '1', NULL, 10 ),
( @domainID, 'civicrm/activity/search?reset=1', 'Find Activities', 'Find Activities', NULL, '', @searchlastID, '1', '1', 11 );
INSERT INTO civicrm_navigation
( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight )
VALUES
( @domainID, 'civicrm/contact/search/custom/list?reset=1', 'Custom Searches', 'Custom Searches', NULL, '', @searchlastID, '1', NULL, 12 );
INSERT INTO civicrm_navigation
( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight, icon )
VALUES
( @domainID, NULL, 'Contacts', 'Contacts', NULL, '', NULL, '1', NULL, 20, 'crm-i fa-address-book-o' );
SET @contactlastID:=LAST_INSERT_ID();
INSERT INTO civicrm_navigation
( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight )
VALUES
( @domainID, 'civicrm/contact/add?reset=1&ct=Individual', 'New Individual', 'New Individual', 'add contacts', '', @contactlastID, '1', NULL, 1 ),
( @domainID, 'civicrm/contact/add?reset=1&ct=Household', 'New Household', 'New Household', 'add contacts', '', @contactlastID, '1', NULL, 2 ),
( @domainID, 'civicrm/contact/add?reset=1&ct=Organization', 'New Organization', 'New Organization', 'add contacts', '', @contactlastID, '1', 1, 3 ),
( @domainID, 'civicrm/report/list?compid=99&reset=1', 'Contact Reports', 'Contact Reports', 'access CiviReport', '', @contactlastID, '1', 1, 4 );
INSERT INTO civicrm_navigation
( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight )
VALUES
( @domainID, 'civicrm/activity?reset=1&action=add&context=standalone', 'New Activity', 'New Activity', NULL, '', @contactlastID, '1', NULL, 5 ),
( @domainID, 'civicrm/activity/email/add?atype=3&action=add&reset=1&context=standalone', 'New Email', 'New Email', NULL, '', @contactlastID, '1', '1', 6 ),
( @domainID, 'civicrm/import/contact?reset=1', 'Import Contacts', 'Import Contacts', 'import contacts', '', @contactlastID, '1', NULL, 7 ),
( @domainID, 'civicrm/import/activity?reset=1', 'Import Activities', 'Import Activities', 'import contacts', '', @contactlastID, '1', '1', 8 ),
( @domainID, 'civicrm/group/add?reset=1', 'New Group', 'New Group', 'edit groups', '', @contactlastID, '1', NULL, 9 ),
( @domainID, 'civicrm/group?reset=1', 'Manage Groups', 'Manage Groups', 'access CiviCRM', '', @contactlastID, '1', '1', 10 ),
( @domainID, 'civicrm/tag?reset=1&action=add', 'New Tag', 'New Tag', 'manage tags', '', @contactlastID, '1', NULL, 11 ),
( @domainID, 'civicrm/tag?reset=1', 'Manage Tags (Categories)', 'Manage Tags (Categories)', 'manage tags', '', @contactlastID, '1','1', 12 ),
( @domainID, 'civicrm/contact/deduperules?reset=1', 'Find and Merge Duplicate Contacts', 'Find and Merge Duplicate Contacts', 'administer dedupe rules,merge duplicate contacts', 'OR', @contactlastID, '1', NULL, 13 );
INSERT INTO civicrm_navigation
( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight, icon )
VALUES
( @domainID, NULL, 'Contributions', 'Contributions', 'access CiviContribute', '', NULL, '1', NULL, 30, 'crm-i fa-credit-card' );
SET @contributionlastID:=LAST_INSERT_ID();
INSERT INTO civicrm_navigation
( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight )
VALUES
( @domainID, 'civicrm/contribute?reset=1', 'Dashboard', 'Dashboard', 'access CiviContribute', '', @contributionlastID, '1', NULL, 1 ),
( @domainID, 'civicrm/contribute/add?reset=1&action=add&context=standalone', 'New Contribution', 'New Contribution', 'access CiviContribute,edit contributions', 'AND', @contributionlastID, '1', NULL, 2 ),
( @domainID, 'civicrm/contribute/search?reset=1', 'Find Contributions', 'Find Contributions', 'access CiviContribute', '', @contributionlastID, '1', NULL, 3 ),
( @domainID, 'civicrm/report/list?compid=2&reset=1', 'Contribution Reports', 'Contribution Reports', 'access CiviContribute', '', @contributionlastID, '1', 1, 4 ),
( @domainID, 'civicrm/contribute/import?reset=1', 'Import Contributions', 'Import Contributions', 'access CiviContribute,edit contributions', 'AND', @contributionlastID, '1', '1', 5 ),
( @domainID, 'civicrm/batch?reset=1', 'Batch Data Entry', 'Batch Data Entry', 'access CiviContribute', '', @contributionlastID, '1', NULL, 7 );
INSERT INTO civicrm_navigation
( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight )
VALUES
( @domainID,NULL, 'Pledges', 'Pledges', 'access CiviPledge', '', @contributionlastID, '1', 1, 6 );
SET @pledgelastID:=LAST_INSERT_ID();
INSERT INTO civicrm_navigation
( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight )
VALUES
( @domainID,NULL, 'Accounting Batches', 'Accounting Batches', 'view own manual batches,view all manual batches', 'OR', @contributionlastID, '1', 1, 8 );
SET @financialTransactionID:=LAST_INSERT_ID();
INSERT INTO civicrm_navigation
( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight )
VALUES
( @domainID, 'civicrm/pledge?reset=1', 'Dashboard', 'Dashboard', 'access CiviPledge', '', @pledgelastID, '1', NULL, 1 ),
( @domainID, 'civicrm/pledge/add?reset=1&action=add&context=standalone', 'New Pledge', 'New Pledge', 'access CiviPledge,edit pledges', 'AND', @pledgelastID, '1', NULL, 2 ),
( @domainID, 'civicrm/pledge/search?reset=1', 'Find Pledges', 'Find Pledges', 'access CiviPledge', '', @pledgelastID, '1', NULL, 3 ),
( @domainID, 'civicrm/report/list?compid=6&reset=1', 'Pledge Reports', 'Pledge Reports', 'access CiviPledge', '', @pledgelastID, '1', 0, 4 ),
( @domainID, 'civicrm/admin/contribute/add?reset=1&action=add', 'New Contribution Page', 'New Contribution Page', 'access CiviContribute,administer CiviCRM', 'AND', @contributionlastID, '1', NULL, 9 ),
( @domainID, 'civicrm/admin/contribute?reset=1', 'Manage Contribution Pages', 'Manage Contribution Pages', 'access CiviContribute,administer CiviCRM', 'AND', @contributionlastID, '1', '1', 10 ),
( @domainID, 'civicrm/admin/pcp?reset=1&page_type=contribute', 'Personal Campaign Pages', 'Personal Campaign Pages', 'access CiviContribute,administer CiviCRM', 'AND', @contributionlastID, '1', NULL, 11 ),
( @domainID, 'civicrm/admin/contribute/managePremiums?reset=1', 'Premiums (Thank-you Gifts)', 'Premiums', 'access CiviContribute,administer CiviCRM', 'AND', @contributionlastID, '1', 1, 12 ),
( @domainID, 'civicrm/admin/price?reset=1&action=add', 'New Price Set', 'New Price Set', 'access CiviContribute,administer CiviCRM', 'AND', @contributionlastID, '1', NULL, 13 ),
( @domainID, 'civicrm/admin/price?reset=1', 'Manage Price Sets', 'Manage Price Sets', 'access CiviContribute,administer CiviCRM', 'AND', @contributionlastID, '1', 1, 14 ),
( @domainID, 'civicrm/financial/batch?reset=1&action=add', 'New Batch', 'New Batch', 'create manual batch', 'AND', @financialTransactionID, '1', NULL, 1 ),
( @domainID, 'civicrm/financial/financialbatches?reset=1&batchStatus=1', 'Open Batches', 'Open Batches', 'view own manual batches,view all manual batches', 'OR', @financialTransactionID, '1', NULL, 2 ),
( @domainID, 'civicrm/financial/financialbatches?reset=1&batchStatus=2', 'Closed Batches', 'Closed Batches', 'view own manual batches,view all manual batches', 'OR', @financialTransactionID, '1', NULL, 3 ),
( @domainID, 'civicrm/financial/financialbatches?reset=1&batchStatus=5', 'Exported Batches', 'Exported Batches', 'view own manual batches,view all manual batches', 'OR', @financialTransactionID, '1', NULL, 4 );
INSERT INTO civicrm_navigation
( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight, icon )
VALUES
( @domainID, NULL, 'Events', 'Events', 'access CiviEvent', '', NULL, '1', NULL, 40, 'crm-i fa-calendar' );
SET @eventlastID:=LAST_INSERT_ID();
INSERT INTO civicrm_navigation
( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight )
VALUES
( @domainID, 'civicrm/event?reset=1', 'Dashboard', 'CiviEvent Dashboard', 'access CiviEvent', '', @eventlastID, '1', NULL, 1 ),
( @domainID, 'civicrm/participant/add?reset=1&action=add&context=standalone', 'Register Event Participant', 'Register Event Participant', 'access CiviEvent,edit event participants', 'AND', @eventlastID, '1', NULL, 2 ),
( @domainID, 'civicrm/event/search?reset=1', 'Find Participants', 'Find Participants', 'access CiviEvent', '', @eventlastID, '1', NULL, 3 ),
( @domainID, 'civicrm/report/list?compid=1&reset=1', 'Event Reports', 'Event Reports', 'access CiviEvent', '', @eventlastID, '1', 1, 4 ),
( @domainID, 'civicrm/event/import?reset=1', 'Import Participants','Import Participants', 'access CiviEvent,edit event participants', 'AND', @eventlastID, '1', '1', 5 ),
( @domainID, 'civicrm/event/add?reset=1&action=add', 'New Event', 'New Event', 'access CiviEvent,edit all events', 'AND', @eventlastID, '1', NULL, 6 ),
( @domainID, 'civicrm/event/manage?reset=1', 'Manage Events', 'Manage Events', 'access CiviEvent,edit all events', 'AND', @eventlastID, '1', 1, 7 ),
( @domainID, 'civicrm/admin/pcp?reset=1&page_type=event', 'Personal Campaign Pages', 'Personal Campaign Pages', 'access CiviEvent,administer CiviCRM', 'AND', @eventlastID, '1', 1, 8 ),
( @domainID, 'civicrm/admin/eventTemplate?reset=1', 'Event Templates', 'Event Templates', 'access CiviEvent,edit all events', 'AND', @eventlastID, '1', 1, 9 ),
( @domainID, 'civicrm/admin/price?reset=1&action=add', 'New Price Set', 'New Price Set', 'access CiviEvent,edit all events', 'AND', @eventlastID, '1', NULL, 10 ),
( @domainID, 'civicrm/admin/price?reset=1', 'Manage Price Sets', 'Manage Price Sets', 'access CiviEvent,edit all events', 'AND', @eventlastID, '1', NULL, 11 );
INSERT INTO civicrm_navigation
( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight, icon )
VALUES
( @domainID, NULL, 'Mailings', 'Mailings', 'access CiviMail,create mailings,approve mailings,schedule mailings,send SMS', 'OR', NULL, '1', NULL, 50, 'crm-i fa-envelope-o' );
SET @mailinglastID:=LAST_INSERT_ID();
INSERT INTO civicrm_navigation
( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight )
VALUES
( @domainID, 'civicrm/mailing/send?reset=1', 'New Mailing', 'New Mailing', 'access CiviMail,create mailings', 'OR', @mailinglastID, '1', NULL, 1 ),
( @domainID, 'civicrm/mailing/browse/unscheduled?reset=1&scheduled=false', 'Draft and Unscheduled Mailings', 'Draft and Unscheduled Mailings', 'access CiviMail,create mailings,schedule mailings', 'OR', @mailinglastID, '1', NULL, 2 ),
( @domainID, 'civicrm/mailing/browse/scheduled?reset=1&scheduled=true', 'Scheduled and Sent Mailings', 'Scheduled and Sent Mailings', 'access CiviMail,approve mailings,create mailings,schedule mailings', 'OR', @mailinglastID, '1', NULL, 3 ),
( @domainID, 'civicrm/mailing/browse/archived?reset=1', 'Archived Mailings', 'Archived Mailings', 'access CiviMail,create mailings', 'OR', @mailinglastID, '1', NULL, 4 ),
( @domainID, 'civicrm/report/list?compid=4&reset=1', 'Mailing Reports', 'Mailing Reports', 'access CiviMail', '', @mailinglastID, '1', 1, 5 ),
( @domainID, 'civicrm/admin/component?reset=1', 'Headers, Footers, and Automated Messages', 'Headers, Footers, and Automated Messages', 'access CiviMail,administer CiviCRM', 'AND', @mailinglastID, '1', NULL, 6 ),
( @domainID, 'civicrm/admin/messageTemplates?reset=1', 'Message Templates', 'Message Templates', 'edit message templates', '', @mailinglastID, '1', NULL, 7 ),
( @domainID, 'civicrm/admin/options/from_email_address?reset=1', 'From Email Addresses', 'From Email Addresses', 'administer CiviCRM', '', @mailinglastID, '1', 1, 8 ),
( @domainID, 'civicrm/sms/send?reset=1', 'New SMS', 'New SMS', 'send SMS', NULL, @mailinglastID, '1', NULL, 9 ),
( @domainID, 'civicrm/mailing/browse?reset=1&sms=1', 'Find Mass SMS', 'Find Mass SMS', 'send SMS', NULL, @mailinglastID, '1', 1, 10 ),
( @domainID, 'civicrm/a/#/abtest/new', 'New A/B Test', 'New A/B Test', 'access CiviMail', '', @mailinglastID, '1', NULL, 15 ),
( @domainID, 'civicrm/a/#/abtest', 'Manage A/B Tests', 'Manage A/B Tests', 'access CiviMail', '', @mailinglastID, '1', 1, 16 );
INSERT INTO civicrm_navigation
( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight, icon )
VALUES
( @domainID, NULL, 'Memberships', 'Memberships', 'access CiviMember', '', NULL, '1', NULL, 60, 'crm-i fa-id-badge' );
SET @memberlastID:=LAST_INSERT_ID();
INSERT INTO civicrm_navigation
( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight )
VALUES
( @domainID, 'civicrm/member?reset=1', 'Dashboard', 'Dashboard', 'access CiviMember', '', @memberlastID, '1', NULL, 1 ),
( @domainID, 'civicrm/member/add?reset=1&action=add&context=standalone', 'New Membership', 'New Membership', 'access CiviMember,edit memberships', 'AND', @memberlastID, '1', NULL, 2 ),
( @domainID, 'civicrm/member/search?reset=1', 'Find Memberships', 'Find Memberships','access CiviMember', '', @memberlastID, '1', NULL, 3 ),
( @domainID, 'civicrm/report/list?compid=3&reset=1', 'Membership Reports', 'Membership Reports', 'access CiviMember', '', @memberlastID, '1', 1, 4 ),
( @domainID, 'civicrm/batch?reset=1', 'Batch Data Entry', 'Batch Data Entry','access CiviContribute', '', @memberlastID, '1', NULL, 5 ),
( @domainID, 'civicrm/member/import?reset=1', 'Import Memberships', 'Import Members', 'access CiviMember,edit memberships', 'AND', @memberlastID, '1', 1, 6 ),
( @domainID, 'civicrm/admin/price?reset=1&action=add', 'New Price Set', 'New Price Set', 'access CiviMember,administer CiviCRM', 'AND', @memberlastID, '1', NULL, 7 ),
( @domainID, 'civicrm/admin/price?reset=1', 'Manage Price Sets', 'Manage Price Sets', 'access CiviMember,administer CiviCRM', 'AND', @memberlastID, '1', NULL, 8 );
INSERT INTO civicrm_navigation
( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight, icon )
VALUES
( @domainID, NULL, 'Campaigns', 'Campaigns', 'interview campaign contacts,release campaign contacts,reserve campaign contacts,manage campaign,administer CiviCampaign,gotv campaign contacts', 'OR', NULL, '1', NULL, 70, 'crm-i fa-bullhorn' );
SET @campaignlastID:=LAST_INSERT_ID();
INSERT INTO civicrm_navigation
( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight )
VALUES
( @domainID, 'civicrm/campaign?reset=1', 'Dashboard', 'Dashboard', 'manage campaign,administer CiviCampaign', 'OR', @campaignlastID, '1', NULL, 1 );
SET @campaigndashboardlastID:=LAST_INSERT_ID();
INSERT INTO civicrm_navigation
( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight )
VALUES
( @domainID, 'civicrm/campaign?reset=1&subPage=survey', 'Surveys', 'Survey Dashboard', 'manage campaign,administer CiviCampaign', 'OR', @campaigndashboardlastID, '1', NULL, 1 ),
( @domainID, 'civicrm/campaign?reset=1&subPage=petition', 'Petitions', 'Petition Dashboard', 'manage campaign,administer CiviCampaign', 'OR', @campaigndashboardlastID, '1', NULL, 2 ),
( @domainID, 'civicrm/campaign?reset=1&subPage=campaign', 'Campaigns', 'Campaign Dashboard', 'manage campaign,administer CiviCampaign', 'OR', @campaigndashboardlastID, '1', NULL, 3 ),
( @domainID, 'civicrm/campaign/add?reset=1', 'New Campaign', 'New Campaign', 'manage campaign,administer CiviCampaign', 'OR', @campaignlastID, '1', NULL, 2 ),
( @domainID, 'civicrm/survey/add?reset=1', 'New Survey', 'New Survey', 'manage campaign,administer CiviCampaign', 'OR', @campaignlastID, '1', NULL, 3 ),
( @domainID, 'civicrm/petition/add?reset=1', 'New Petition', 'New Petition', 'manage campaign,administer CiviCampaign', 'OR', @campaignlastID, '1', NULL, 4 ),
( @domainID, 'civicrm/survey/search?reset=1&op=reserve', 'Reserve Respondents', 'Reserve Respondents', 'administer CiviCampaign,manage campaign,reserve campaign contacts', 'OR', @campaignlastID, '1', NULL, 5 ),
( @domainID, 'civicrm/survey/search?reset=1&op=interview', 'Interview Respondents', 'Interview Respondents', 'administer CiviCampaign,manage campaign,interview campaign contacts', 'OR', @campaignlastID, '1', NULL, 6 ),
( @domainID, 'civicrm/survey/search?reset=1&op=release', 'Release Respondents', 'Release Respondents', 'administer CiviCampaign,manage campaign,release campaign contacts', 'OR', @campaignlastID, '1', NULL, 7 ),
( @domainID, 'civicrm/report/list?compid=9&reset=1', 'Campaign Reports', 'Campaign Reports', 'interview campaign contacts,release campaign contacts,reserve campaign contacts,manage campaign,administer CiviCampaign,gotv campaign contacts', 'OR', @campaignlastID, '1', 1, 8 ),
( @domainID, 'civicrm/campaign/vote?reset=1', 'Conduct Survey', 'Conduct Survey', 'administer CiviCampaign,manage campaign,reserve campaign contacts,interview campaign contacts', 'OR', @campaignlastID, '1', NULL, 9 ),
( @domainID, 'civicrm/campaign/gotv?reset=1', 'GOTV (Voter Tracking)', 'Voter Listing', 'administer CiviCampaign,manage campaign,release campaign contacts,gotv campaign contacts', 'OR', @campaignlastID, '1', NULL, 10 );
INSERT INTO civicrm_navigation
( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight, icon )
VALUES
( @domainID, NULL, 'Cases', 'Cases', 'access my cases and activities,access all cases and activities', 'OR', NULL, '1', NULL, 80, 'crm-i fa-folder-open-o' );
SET @caselastID:=LAST_INSERT_ID();
INSERT INTO civicrm_navigation
( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight )
VALUES
( @domainID, 'civicrm/case?reset=1', 'Dashboard', 'Dashboard', 'access my cases and activities,access all cases and activities', 'OR', @caselastID, '1', NULL, 1 ),
( @domainID, 'civicrm/case/add?reset=1&action=add&atype=13&context=standalone', 'New Case', 'New Case', 'add cases,access all cases and activities', 'OR', @caselastID, '1', NULL, 2 ),
( @domainID, 'civicrm/case/search?reset=1', 'Find Cases', 'Find Cases', 'access my cases and activities,access all cases and activities', 'OR', @caselastID, '1', 1, 3 ),
( @domainID, 'civicrm/report/list?compid=7&reset=1', 'Case Reports', 'Case Reports', 'access my cases and activities,access all cases and activities,administer CiviCase', 'OR', @caselastID, '1', 0, 4 );
INSERT INTO civicrm_navigation
( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight, icon )
VALUES
( @domainID, NULL, 'Grants', 'Grants', 'access CiviGrant', '', NULL, '1', NULL, 90, 'crm-i fa-money' );
SET @grantlastID:=LAST_INSERT_ID();
INSERT INTO civicrm_navigation
( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight )
VALUES
( @domainID, 'civicrm/grant?reset=1', 'Dashboard', 'Dashboard', 'access CiviGrant', '', @grantlastID, '1', NULL, 1 ),
( @domainID, 'civicrm/grant/add?reset=1&action=add&context=standalone', 'New Grant', 'New Grant', 'access CiviGrant,edit grants', 'AND', @grantlastID, '1', NULL, 2 ),
( @domainID, 'civicrm/grant/search?reset=1', 'Find Grants', 'Find Grants', 'access CiviGrant', '', @grantlastID, '1', 1, 3 ),
( @domainID, 'civicrm/report/list?compid=5&reset=1', 'Grant Reports', 'Grant Reports', 'access CiviGrant', '', @grantlastID, '1', 0, 4 );
INSERT INTO civicrm_navigation
( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight, icon )
VALUES
( @domainID, NULL, 'Administer', 'Administer', 'administer CiviCRM', '', NULL, '1', NULL, 100, 'crm-i fa-gears' );
SET @adminlastID:=LAST_INSERT_ID();
INSERT INTO civicrm_navigation
( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight )
VALUES
( @domainID, 'civicrm/admin?reset=1', 'Administration Console', 'Administration Console', 'administer CiviCRM', '', @adminlastID, '1', NULL, 1 );
SET @adminConsolelastID:=LAST_INSERT_ID();
INSERT INTO civicrm_navigation
( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight )
VALUES
( @domainID, 'civicrm/a/#/status', 'System Status', 'System Status', 'administer CiviCRM', '', @adminConsolelastID, '1', NULL, 0 ),
( @domainID, 'civicrm/admin/configtask?reset=1', 'Configuration Checklist', 'Configuration Checklist', 'administer CiviCRM', '', @adminConsolelastID, '1', NULL, 1 );
INSERT INTO civicrm_navigation
( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight )
VALUES
( @domainID, NULL, 'Customize Data and Screens', 'Customize Data and Screens', 'administer CiviCRM', '', @adminlastID, '1', NULL, 3 );
SET @CustomizelastID:=LAST_INSERT_ID();
INSERT INTO civicrm_navigation
( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight )
VALUES
( @domainID, 'civicrm/admin/custom/group?reset=1', 'Custom Fields', 'Custom Fields', 'administer CiviCRM', '', @CustomizelastID, '1', NULL, 1 ),
( @domainID, 'civicrm/admin/uf/group?reset=1', 'Profiles', 'Profiles', 'administer CiviCRM', '', @CustomizelastID, '1', NULL, 2 ),
( @domainID, 'civicrm/tag?reset=1', 'Tags (Categories)', 'Tags (Categories)', 'administer CiviCRM', '', @CustomizelastID, '1', NULL, 3 ),
( @domainID, 'civicrm/admin/options/activity_type?reset=1', 'Activity Types', 'Activity Types', 'administer CiviCRM', '', @CustomizelastID, '1', NULL, 4 ),
( @domainID, 'civicrm/admin/reltype?reset=1', 'Relationship Types', 'Relationship Types', 'administer CiviCRM', '', @CustomizelastID, '1', NULL, 5 ),
( @domainID, 'civicrm/admin/options/subtype?reset=1', 'Contact Types','Contact Types', 'administer CiviCRM', '', @CustomizelastID, '1', NULL, 6 ),
( @domainID, 'civicrm/admin/setting/preferences/display?reset=1', 'Display Preferences', 'Display Preferences', 'administer CiviCRM', '', @CustomizelastID, '1', NULL, 9 ),
( @domainID, 'civicrm/admin/setting/search?reset=1', 'Search Preferences', 'Search Preferences', 'administer CiviCRM', '', @CustomizelastID, '1', NULL, 10 ),
( @domainID, 'civicrm/admin/setting/preferences/date?reset=1', 'Date Preferences', 'Date Preferences', 'administer CiviCRM', '', @CustomizelastID, '1', NULL, 11 ),
( @domainID, 'civicrm/admin/menu?reset=1', 'Navigation Menu', 'Navigation Menu', 'administer CiviCRM', '', @CustomizelastID, '1', NULL, 12 ),
( @domainID, 'civicrm/admin/options/wordreplacements?reset=1','Word Replacements','Word Replacements', 'administer CiviCRM', '', @CustomizelastID, '1', NULL, 13 ),
( @domainID, 'civicrm/admin/options/custom_search?reset=1', 'Manage Custom Searches', 'Manage Custom Searches', 'administer CiviCRM', '', @CustomizelastID, '1', NULL, 14 );
INSERT INTO civicrm_navigation
( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight )
VALUES
( @domainID, 'civicrm/admin/options?action=browse&reset=1', 'Dropdown Options', 'Dropdown Options', 'administer CiviCRM', '', @CustomizelastID, '1', NULL, 8 );
SET @optionListlastID:=LAST_INSERT_ID();
INSERT INTO civicrm_navigation
( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight )
VALUES
( @domainID, 'civicrm/admin/options/gender?reset=1', 'Gender Options', 'Gender Options', 'administer CiviCRM', '', @optionListlastID, '1', NULL, 1 ),
( @domainID, 'civicrm/admin/options/individual_prefix?reset=1', 'Individual Prefixes (Ms, Mr...)', 'Individual Prefixes (Ms, Mr...)', 'administer CiviCRM', '', @optionListlastID, '1', NULL, 2 ),
( @domainID, 'civicrm/admin/options/individual_suffix?reset=1', 'Individual Suffixes (Jr, Sr...)', 'Individual Suffixes (Jr, Sr...)', 'administer CiviCRM', '', @optionListlastID, '1', NULL, 3 ),
( @domainID, 'civicrm/admin/options/instant_messenger_service?reset=1', 'Instant Messenger Services', 'Instant Messenger Services', 'administer CiviCRM', '', @optionListlastID, '1', NULL, 4 ),
( @domainID, 'civicrm/admin/locationType?reset=1', 'Location Types (Home, Work...)', 'Location Types (Home, Work...)', 'administer CiviCRM', '', @optionListlastID, '1', NULL, 5 ),
( @domainID, 'civicrm/admin/options/mobile_provider?reset=1', 'Mobile Phone Providers', 'Mobile Phone Providers', 'administer CiviCRM', '', @optionListlastID, '1', NULL, 6 ),
( @domainID, 'civicrm/admin/options/phone_type?reset=1', 'Phone Types', 'Phone Types', 'administer CiviCRM', '', @optionListlastID, '1', NULL, 7 ),
( @domainID, 'civicrm/admin/options/website_type?reset=1', 'Website Types', 'Website Types', 'administer CiviCRM', '', @optionListlastID, '1', NULL, 8 );
INSERT INTO civicrm_navigation
( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight )
VALUES
( @domainID, NULL, 'Communications', 'Communications', 'administer CiviCRM', '', @adminlastID, '1', NULL, 4 );
SET @communicationslastID:=LAST_INSERT_ID();
INSERT INTO civicrm_navigation
( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight )
VALUES
( @domainID, 'civicrm/admin/domain?action=update&reset=1', 'Organization Address and Contact Info', 'Organization Address and Contact Info', 'administer CiviCRM', '', @communicationslastID, '1', NULL, 1 ),
( @domainID, 'civicrm/admin/options/from_email_address?reset=1', 'FROM Email Addresses', 'FROM Email Addresses', 'administer CiviCRM', '', @communicationslastID, '1', NULL, 2 ),
( @domainID, 'civicrm/admin/messageTemplates?reset=1', 'Message Templates', 'Message Templates', 'administer CiviCRM', '', @communicationslastID, '1', NULL, 3 ),
( @domainID, 'civicrm/admin/scheduleReminders?reset=1', 'Schedule Reminders', 'Schedule Reminders', 'administer CiviCRM', '', @communicationslastID, '1', NULL, 4 ),
( @domainID, 'civicrm/admin/options/preferred_communication_method?reset=1', 'Preferred Communication Methods', 'Preferred Communication Methods', 'administer CiviCRM', '', @communicationslastID, '1', NULL, 5 ),
( @domainID, 'civicrm/admin/labelFormats?reset=1', 'Label Formats', 'Label Formats', 'administer CiviCRM', '', @communicationslastID, '1', NULL, 6 ),
( @domainID, 'civicrm/admin/pdfFormats?reset=1', 'Print Page (PDF) Formats', 'Print Page (PDF) Formats', 'administer CiviCRM', '', @communicationslastID, '1', NULL, 7 ),
( @domainID, 'civicrm/admin/options/communication_style?reset=1', 'Communication Style Options', 'Communication Style Options', 'administer CiviCRM', '', @communicationslastID, '1', NULL, 8 ),
( @domainID, 'civicrm/admin/options/email_greeting?reset=1', 'Email Greeting Formats', 'Email Greeting Formats', 'administer CiviCRM', '', @communicationslastID, '1', NULL, 9 ),
( @domainID, 'civicrm/admin/options/postal_greeting?reset=1', 'Postal Greeting Formats', 'Postal Greeting Formats', 'administer CiviCRM', '', @communicationslastID, '1', NULL, 10 ),
( @domainID, 'civicrm/admin/options/addressee?reset=1', 'Addressee Formats', 'Addressee Formats', 'administer CiviCRM', '', @communicationslastID, '1', NULL, 11 );
INSERT INTO civicrm_navigation
( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight )
VALUES
( @domainID, NULL, 'Localization', 'Localization', 'administer CiviCRM', '', @adminlastID, '1', NULL, 6 );
SET @locallastID:=LAST_INSERT_ID();
INSERT INTO civicrm_navigation
( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight )
VALUES
( @domainID, 'civicrm/admin/setting/localization?reset=1', 'Languages, Currency, Locations', 'Languages, Currency, Locations', 'administer CiviCRM', '', @locallastID, '1', NULL, 1 ),
( @domainID, 'civicrm/admin/setting/preferences/address?reset=1', 'Address Settings', 'Address Settings', 'administer CiviCRM', '', @locallastID, '1', NULL, 2 ),
( @domainID, 'civicrm/admin/setting/date?reset=1', 'Date Formats', 'Date Formats', 'administer CiviCRM', '', @locallastID, '1', NULL, 3 ),
( @domainID, 'civicrm/admin/options/languages?reset=1', 'Preferred Language Options', 'Preferred Language Options', 'administer CiviCRM', '', @locallastID, '1', NULL, 4 );
INSERT INTO civicrm_navigation
( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight )
VALUES
( @domainID, NULL, 'Users and Permissions', 'Users and Permissions', 'administer CiviCRM', '', @adminlastID, '1', NULL, 7 );
SET @usersPermslastID:=LAST_INSERT_ID();
INSERT INTO civicrm_navigation
( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight )
VALUES
( @domainID, 'civicrm/admin/access?reset=1', 'Permissions (Access Control)', 'Permissions (Access Control)', 'administer CiviCRM', '', @usersPermslastID, '1', NULL, 1 ),
( @domainID, 'civicrm/admin/synchUser?reset=1', 'Synchronize Users to Contacts', 'Synchronize Users to Contacts', 'administer CiviCRM', '', @usersPermslastID, '1', NULL, 2 );
INSERT INTO civicrm_navigation
( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight )
VALUES
( @domainID, NULL, 'System Settings', 'System Settings', 'administer CiviCRM', '', @adminlastID, '1', NULL, 8 );
SET @systemSettingslastID:=LAST_INSERT_ID();
INSERT INTO civicrm_navigation
( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight )
VALUES
( @domainID, 'civicrm/admin/setting/component?reset=1', 'Components', 'Enable Components', 'administer CiviCRM', '', @systemSettingslastID, '1', NULL, 1 ),
( @domainID, 'civicrm/a/#/cxn', 'Connections', 'Connections', 'administer CiviCRM', '', @systemSettingslastID, '1', NULL, 2 ),
( @domainID, 'civicrm/admin/extensions?reset=1', 'Extensions', 'Manage Extensions', 'administer CiviCRM', '', @systemSettingslastID, '1', 1, 3 ),
( @domainID, 'civicrm/admin/setting/updateConfigBackend?reset=1', 'Cleanup Caches and Update Paths', 'Cleanup Caches and Update Paths', 'administer CiviCRM', '', @systemSettingslastID, '1', NULL, 4 ),
( @domainID, 'civicrm/admin/setting/uf?reset=1', 'CMS Database Integration', 'CMS Integration', 'administer CiviCRM', '', @systemSettingslastID, '1', NULL, 5 ),
( @domainID, 'civicrm/admin/setting/debug?reset=1', 'Debugging and Error Handling','Debugging and Error Handling', 'administer CiviCRM', '', @systemSettingslastID, '1', NULL, 6 ),
( @domainID, 'civicrm/admin/setting/path?reset=1', 'Directories', 'Directories', 'administer CiviCRM', '', @systemSettingslastID, '1', NULL, 7 ),
( @domainID, 'civicrm/admin/mapping?reset=1', 'Import/Export Mappings', 'Import/Export Mappings', 'administer CiviCRM', '', @systemSettingslastID, '1', NULL, 8 ),
( @domainID, 'civicrm/admin/setting/mapping?reset=1', 'Mapping and Geocoding', 'Mapping and Geocoding', 'administer CiviCRM', '', @systemSettingslastID, '1', NULL, 9 ),
( @domainID, 'civicrm/admin/setting/misc?reset=1', 'Misc (Undelete, PDFs, Limits, Logging, Captcha, etc.)', 'Misc (Undelete, PDFs, Limits, Logging, Captcha, etc.)', 'administer CiviCRM', '', @systemSettingslastID, '1', NULL, 10 ),
( @domainID, 'civicrm/admin/setting/preferences/multisite?reset=1', 'Multi Site Settings', 'Multi Site Settings', 'administer CiviCRM', '', @systemSettingslastID, '1', NULL, 11 ),
( @domainID, 'civicrm/admin/options?reset=1', 'Option Groups', 'Option Groups', 'administer CiviCRM', '', @systemSettingslastID, '1', NULL, 12 ),
( @domainID, 'civicrm/admin/setting/smtp?reset=1', 'Outbound Email (SMTP/Sendmail)', 'Outbound Email', 'administer CiviCRM', '', @systemSettingslastID, '1', NULL, 13 ),
( @domainID, 'civicrm/admin/paymentProcessor?reset=1', 'Payment Processors', 'Payment Processors', 'administer CiviCRM', '', @systemSettingslastID, '1', NULL, 14 ),
( @domainID, 'civicrm/admin/setting/url?reset=1', 'Resource URLs', 'Resource URLs', 'administer CiviCRM', '', @systemSettingslastID, '1', NULL, 15 ),
( @domainID, 'civicrm/admin/options/safe_file_extension?reset=1', 'Safe File Extensions', 'Safe File Extensions','administer CiviCRM', '',@systemSettingslastID, '1', NULL, 16 ),
( @domainID, 'civicrm/admin/job?reset=1', 'Scheduled Jobs', 'Scheduled Jobs', 'administer CiviCRM', '', @systemSettingslastID, '1', NULL, 17 ),
( @domainID, 'civicrm/admin/sms/provider?reset=1', 'SMS Providers', 'SMS Providers', 'administer CiviCRM', '', @systemSettingslastID, '1', NULL, 18 );
-- begin component admin menus
INSERT INTO civicrm_navigation
( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight )
VALUES
( @domainID, NULL, 'CiviCampaign', 'CiviCampaign', 'administer CiviCampaign,administer CiviCRM', 'AND', @adminlastID, '1', NULL, 9 );
SET @adminCampaignlastID:=LAST_INSERT_ID();
INSERT INTO civicrm_navigation
( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight )
VALUES
( @domainID, 'civicrm/admin/campaign/surveyType?reset=1', 'Survey Types', 'Survey Types', 'administer CiviCampaign', '', @adminCampaignlastID, '1', NULL, 1 ),
( @domainID, 'civicrm/admin/options/campaign_type?reset=1', 'Campaign Types', 'Campaign Types', 'administer CiviCampaign', '', @adminCampaignlastID, '1', NULL, 2 ),
( @domainID, 'civicrm/admin/options/campaign_status?reset=1', 'Campaign Status', 'Campaign Status', 'administer CiviCampaign', '', @adminCampaignlastID, '1', NULL, 3 ),
( @domainID, 'civicrm/admin/options/engagement_index?reset=1', 'Engagement Index', 'Engagement Index', 'administer CiviCampaign', '', @adminCampaignlastID, '1', NULL, 4 ),
( @domainID, 'civicrm/admin/setting/preferences/campaign?reset=1', 'CiviCampaign Component Settings', 'CiviCampaign Component Settings','administer CiviCampaign', '', @adminCampaignlastID, '1', NULL, 5 );
INSERT INTO civicrm_navigation
( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight )
VALUES
( @domainID, NULL, 'CiviCase', 'CiviCase', 'administer CiviCase', NULL, @adminlastID, '1', NULL, 10 );
SET @adminCaselastID:=LAST_INSERT_ID();
INSERT INTO civicrm_navigation
( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight )
VALUES
( @domainID, 'civicrm/admin/setting/case?reset=1', 'CiviCase Settings', 'CiviCase Settings', 'administer CiviCase', NULL, @adminCaselastID, '1', NULL, 1 ),
( @domainID, 'civicrm/a/#/caseType', 'Case Types', 'Case Types', 'administer CiviCase', NULL, @adminCaselastID, '1', NULL, 2 ),
( @domainID, 'civicrm/admin/options/redaction_rule?reset=1', 'Redaction Rules', 'Redaction Rules', 'administer CiviCase', NULL, @adminCaselastID, '1', NULL, 3 ),
( @domainID, 'civicrm/admin/options/case_status?reset=1', 'Case Statuses', 'Case Statuses', 'administer CiviCase', NULL, @adminCaselastID, '1', NULL, 4 ),
( @domainID, 'civicrm/admin/options/encounter_medium?reset=1', 'Encounter Medium', 'Encounter Medium', 'administer CiviCase', NULL, @adminCaselastID, '1', NULL, 5 );
INSERT INTO civicrm_navigation
( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight )
VALUES
( @domainID, NULL, 'CiviContribute', 'CiviContribute', 'access CiviContribute,administer CiviCRM', 'AND', @adminlastID, '1', NULL, 11 );
SET @adminContributelastID:=LAST_INSERT_ID();
INSERT INTO civicrm_navigation
( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight )
VALUES
( @domainID, 'civicrm/admin/contribute?reset=1&action=add', 'New Contribution Page', 'New Contribution Page', 'access CiviContribute,administer CiviCRM', 'AND', @adminContributelastID, '1', NULL, 6 ),
( @domainID, 'civicrm/admin/contribute?reset=1', 'Manage Contribution Pages', 'Manage Contribution Pages', 'access CiviContribute,administer CiviCRM', 'AND', @adminContributelastID, '1', '1', 7 ),
( @domainID, 'civicrm/admin/pcp?reset=1&page_type=contribute', 'Personal Campaign Pages', 'Personal Campaign Pages', 'access CiviContribute,administer CiviCRM', 'AND', @adminContributelastID, '1', NULL, 8 ),
( @domainID, 'civicrm/admin/contribute/managePremiums?reset=1', 'Premiums (Thank-you Gifts)', 'Premiums', 'access CiviContribute,administer CiviCRM', 'AND', @adminContributelastID, '1', 1, 9 ),
( @domainID, 'civicrm/admin/financial/financialType?reset=1', 'Financial Types', 'Financial Types', 'access CiviContribute,administer CiviCRM', 'AND', @adminContributelastID, '1', NULL, 10),
( @domainID, 'civicrm/admin/financial/financialAccount?reset=1', 'Financial Accounts', 'Financial Accounts', 'access CiviContribute,administer CiviCRM', 'AND', @adminContributelastID, '1', NULL, 11),
( @domainID, 'civicrm/admin/options/payment_instrument?reset=1', 'Payment Methods', 'Payment Instruments', 'access CiviContribute,administer CiviCRM', 'AND', @adminContributelastID, '1', NULL, 12 ),
( @domainID, 'civicrm/admin/options/accept_creditcard?reset=1', 'Accepted Credit Cards', 'Accepted Credit Cards', 'access CiviContribute,administer CiviCRM', 'AND', @adminContributelastID, '1', NULL, 13 ),
( @domainID, 'civicrm/admin/options/soft_credit_type?reset=1', 'Soft Credit Types', 'Soft Credit Types', 'access CiviContribute,administer CiviCRM', 'AND', @adminContributelastID, '1', 1, 14 ),
( @domainID, 'civicrm/admin/price?reset=1&action=add', 'New Price Set', 'New Price Set', 'access CiviContribute,administer CiviCRM', 'AND', @adminContributelastID, '1', NULL, 15 ),
( @domainID, 'civicrm/admin/price?reset=1', 'Manage Price Sets', 'Manage Price Sets', 'access CiviContribute,administer CiviCRM', 'AND', @adminContributelastID, '1', NULL, 16 ),
( @domainID, 'civicrm/admin/paymentProcessor?reset=1', 'Payment Processors', 'Payment Processors', 'administer CiviCRM', '', @adminContributelastID, '1', NULL, 17 ),
( @domainID, 'civicrm/admin/setting/preferences/contribute?reset=1', 'CiviContribute Component Settings', 'CiviContribute Component Settings', 'administer CiviCRM', '', @adminContributelastID, '1', NULL, 18 ) ;
INSERT INTO civicrm_navigation
( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight )
VALUES
( @domainID, NULL, 'CiviEvent', 'CiviEvent', 'access CiviEvent,administer CiviCRM', 'AND', @adminlastID, '1', NULL, 12 );
SET @adminEventlastID:=LAST_INSERT_ID();
INSERT INTO civicrm_navigation
( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight )
VALUES
( @domainID, 'civicrm/event/add?reset=1&action=add', 'New Event', 'New Event', 'access CiviEvent,administer CiviCRM', 'AND', @adminEventlastID, '1', NULL, 1 ),
( @domainID, 'civicrm/event/manage?reset=1', 'Manage Events', 'Manage Events', 'access CiviEvent,administer CiviCRM', 'AND', @adminEventlastID, '1', 1, 2 ),
( @domainID, 'civicrm/admin/pcp?reset=1&page_type=event', 'Personal Campaign Pages', 'Personal Campaign Pages', 'access CiviEvent,administer CiviCRM', 'AND', @adminEventlastID, '1', 1, 3 ),
( @domainID, 'civicrm/admin/eventTemplate?reset=1', 'Event Templates', 'Event Templates', 'access CiviEvent,administer CiviCRM', 'AND', @adminEventlastID, '1', 1, 4 ),
( @domainID, 'civicrm/admin/price?reset=1&action=add', 'New Price Set', 'New Price Set', 'access CiviEvent,administer CiviCRM', 'AND', @adminEventlastID, '1', NULL, 5 ),
( @domainID, 'civicrm/admin/price?reset=1', 'Manage Price Sets', 'Manage Price Sets', 'access CiviEvent,administer CiviCRM', 'AND', @adminEventlastID, '1', 1, 6 ),
( @domainID, 'civicrm/admin/options/event_type?reset=1', 'Event Types', 'Event Types', 'access CiviEvent,administer CiviCRM', 'AND', @adminEventlastID, '1', NULL, 7 ),
( @domainID, 'civicrm/admin/participant_status?reset=1', 'Participant Statuses', 'Participant Statuses', 'access CiviEvent,administer CiviCRM', 'AND', @adminEventlastID, '1', NULL, 8 ),
( @domainID, 'civicrm/admin/options/participant_role?reset=1', 'Participant Roles', 'Participant Roles', 'access CiviEvent,administer CiviCRM', 'AND', @adminEventlastID, '1', NULL, 9 ),
( @domainID, 'civicrm/admin/options/participant_listing?reset=1', 'Participant Listing Options', 'Participant Listing Options', 'access CiviEvent,administer CiviCRM', 'AND', @adminEventlastID, '1', NULL, 10 ),
( @domainID, 'civicrm/admin/badgelayout?reset=1', 'Event Name Badge Layouts', 'Event Name Badge Layouts', 'access CiviEvent,administer CiviCRM', 'AND', @adminEventlastID, '1', NULL, 11 ),
( @domainID, 'civicrm/admin/paymentProcessor?reset=1', 'Payment Processors', 'Payment Processors', 'administer CiviCRM', '', @adminEventlastID, '1', NULL, 12),
( @domainID, 'civicrm/admin/setting/preferences/event?reset=1', 'CiviEvent Component Settings', 'CiviEvent Component Settings','access CiviEvent,administer CiviCRM', 'AND', @adminEventlastID, '1', NULL, 13 );
INSERT INTO civicrm_navigation
( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight )
VALUES
( @domainID, NULL, 'CiviGrant', 'CiviGrant', 'access CiviGrant,administer CiviCRM', 'AND', @adminlastID, '1', NULL, 13 );
SET @adminGrantlastID:=LAST_INSERT_ID();
INSERT INTO civicrm_navigation
( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight )
VALUES
( @domainID, 'civicrm/admin/options/grant_type?reset=1', 'Grant Types', 'Grant Types', 'access CiviGrant,administer CiviCRM', 'AND', @adminGrantlastID, '1', NULL, 1 ),
( @domainID, 'civicrm/admin/options/grant_status?reset=1', 'Grant Status', 'Grant Status', 'access CiviGrant,administer CiviCRM', 'AND', @adminGrantlastID, '1', NULL, 2 );
INSERT INTO civicrm_navigation
( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight )
VALUES
( @domainID, NULL, 'CiviMail', 'CiviMail', 'access CiviMail,administer CiviCRM', 'AND', @adminlastID, '1', NULL, 14 );
SET @adminMailinglastID:=LAST_INSERT_ID();
INSERT INTO civicrm_navigation
( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight )
VALUES
( @domainID, 'civicrm/admin/component?reset=1', 'Headers, Footers, and Automated Messages', 'Headers, Footers, and Automated Messages', 'access CiviMail,administer CiviCRM', 'AND', @adminMailinglastID, '1', NULL, 1 ),
( @domainID, 'civicrm/admin/messageTemplates?reset=1', 'Message Templates', 'Message Templates', 'administer CiviCRM', '', @adminMailinglastID, '1', NULL, 2 ),
( @domainID, 'civicrm/admin/options/from_email_address?reset=1', 'From Email Addresses', 'From Email Addresses', 'administer CiviCRM', '', @adminMailinglastID, '1', NULL, 3 ),
( @domainID, 'civicrm/admin/mailSettings?reset=1', 'Mail Accounts', 'Mail Accounts', 'access CiviMail,administer CiviCRM', 'AND', @adminMailinglastID, '1', NULL, 4 ),
( @domainID, 'civicrm/admin/mail?reset=1', 'Mailer Settings', 'Mailer Settings', 'access CiviMail,administer CiviCRM', 'AND', @adminMailinglastID, '1', NULL, 5 ),
( @domainID, 'civicrm/admin/setting/preferences/mailing?reset=1', 'CiviMail Component Settings', 'CiviMail Component Settings','access CiviMail,administer CiviCRM', 'AND', @adminMailinglastID, '1', NULL, 6 );
INSERT INTO civicrm_navigation
( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight )
VALUES
( @domainID, NULL, 'CiviMember', 'CiviMember', 'access CiviMember,administer CiviCRM', 'AND', @adminlastID, '1', NULL, 15 );
SET @adminMemberlastID:=LAST_INSERT_ID();
INSERT INTO civicrm_navigation
( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight )
VALUES
( @domainID, 'civicrm/admin/member/membershipType?reset=1', 'Membership Types', 'Membership Types', 'access CiviMember,administer CiviCRM', 'AND', @adminMemberlastID, '1', NULL, 1 ),
( @domainID, 'civicrm/admin/member/membershipStatus?reset=1', 'Membership Status Rules', 'Membership Status Rules', 'access CiviMember,administer CiviCRM', 'AND', @adminMemberlastID, '1', 1, 2 ),
( @domainID, 'civicrm/admin/price?reset=1&action=add', 'New Price Set', 'New Price Set', 'access CiviMember,administer CiviCRM', 'AND', @adminMemberlastID, '1', NULL, 3 ),
( @domainID, 'civicrm/admin/price?reset=1', 'Manage Price Sets', 'Manage Price Sets', 'access CiviMember,administer CiviCRM', 'AND', @adminMemberlastID, '1', NULL, 4 ),
( @domainID, 'civicrm/admin/setting/preferences/member?reset=1', 'CiviMember Component Settings', 'CiviMember Component Settings','access CiviMember,administer CiviCRM', 'AND', @adminMemberlastID, '1', NULL, 5 );
INSERT INTO civicrm_navigation
( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight )
VALUES
( @domainID, NULL, 'CiviReport', 'CiviReport', 'access CiviReport,administer CiviCRM', 'AND', @adminlastID, '1', NULL, 16 );
SET @adminReportlastID:=LAST_INSERT_ID();
INSERT INTO civicrm_navigation
( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight )
VALUES
( @domainID, 'civicrm/report/list?reset=1', 'All Reports', 'All Reports', 'access CiviReport', '', @adminReportlastID, '1', NULL, 1 ),
( @domainID, 'civicrm/admin/report/template/list?reset=1', 'Create New Report from Template', 'Create New Report from Template', 'administer Reports', '', @adminReportlastID, '1', NULL, 2 ),
( @domainID, 'civicrm/admin/report/options/report_template?reset=1', 'Manage Templates', 'Manage Templates', 'administer Reports', '', @adminReportlastID, '1', NULL, 3 ),
( @domainID, 'civicrm/admin/report/register?reset=1', 'Register Report', 'Register Report', 'administer Reports', '', @adminReportlastID, '1', NULL, 4 );
INSERT INTO civicrm_navigation
( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight, icon )
VALUES
( @domainID, NULL, 'Support', 'Support', NULL, '', NULL, '1', NULL, 110, 'crm-i fa-life-ring');
SET @adminHelplastID:=LAST_INSERT_ID();
INSERT INTO civicrm_navigation
( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight )
VALUES
( @domainID, 'https://civicrm.org/get-started?src=iam', 'Get started', 'Get started', NULL, 'AND', @adminHelplastID, '1', NULL, 1 ),
( @domainID, 'https://civicrm.org/documentation?src=iam', 'Documentation', 'Documentation', NULL, 'AND', @adminHelplastID, '1', NULL, 2 ),
( @domainID, 'https://civicrm.org/ask-a-question?src=iam', 'Ask a question', 'Ask a question', NULL, 'AND', @adminHelplastID, '1', NULL, 3 ),
( @domainID, 'https://civicrm.org/experts?src=iam', 'Get expert help', 'Get expert help', NULL, 'AND', @adminHelplastID, '1', NULL, 4 ),
( @domainID, 'https://civicrm.org/about?src=iam', 'About CiviCRM', 'About CiviCRM', NULL, 'AND', @adminHelplastID, '1', 1, 5 ),
( @domainID, 'https://civicrm.org/register-your-site?src=iam&sid={sid}', 'Register your site', 'Register your site', NULL, 'AND', @adminHelplastID, '1', NULL, 6 ),
( @domainID, 'https://civicrm.org/become-a-member?src=iam&sid={sid}', 'Join CiviCRM', 'Join CiviCRM', NULL, 'AND', @adminHelplastID, '1', NULL, 7 );
INSERT INTO civicrm_navigation
( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight )
VALUES
( @domainID, NULL, 'Developer', 'Developer', 'administer CiviCRM', '', @adminHelplastID, '1', 1, 8 );
SET @devellastID:=LAST_INSERT_ID();
INSERT INTO civicrm_navigation
( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight )
VALUES
( @domainID, 'civicrm/api3', 'Api Explorer v3', 'API Explorer', 'administer CiviCRM', '', @devellastID, '1', NULL, 1 ),
( @domainID, 'civicrm/api4#/explorer', 'Api Explorer v4', 'Api Explorer v4', 'administer CiviCRM', '', @devellastID, '1', NULL, 2 ),
( @domainID, 'https://civicrm.org/developer-documentation?src=iam', 'Developer Docs', 'Developer Docs', 'administer CiviCRM', '', @devellastID, '1', NULL, 3 );
INSERT INTO civicrm_navigation
( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight, icon )
VALUES
( @domainID, NULL, 'Reports', 'Reports', 'access CiviReport', '', NULL, '1', NULL, 95, 'crm-i fa-bar-chart' );
SET @reportlastID:=LAST_INSERT_ID();
INSERT INTO civicrm_navigation
( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight )
VALUES
( @domainID, 'civicrm/report/list?compid=99&reset=1', 'Contact Reports', 'Contact Reports', 'administer CiviCRM', '', @reportlastID, '1', 0, 1 );
INSERT INTO civicrm_navigation
( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight )
VALUES
( @domainID, 'civicrm/report/list?compid=2&reset=1', 'Contribution Reports', 'Contribution Reports', 'access CiviContribute', '', @reportlastID, '1', 0, 2 );
INSERT INTO civicrm_navigation
( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight )
VALUES
( @domainID, 'civicrm/report/list?compid=6&reset=1', 'Pledge Reports', 'Pledge Reports', 'access CiviPledge', '', @reportlastID, '1', 0, 3 );
INSERT INTO civicrm_navigation
( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight )
VALUES
( @domainID, 'civicrm/report/list?compid=1&reset=1', 'Event Reports', 'Event Reports', 'access CiviEvent', '', @reportlastID, '1', 0, 4 );
INSERT INTO civicrm_navigation
( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight )
VALUES
( @domainID, 'civicrm/report/list?compid=4&reset=1', 'Mailing Reports', 'Mailing Reports', 'access CiviMail', '', @reportlastID, '1', 0, 5 );
INSERT INTO civicrm_navigation
( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight )
VALUES
( @domainID, 'civicrm/report/list?compid=3&reset=1', 'Membership Reports', 'Membership Reports', 'access CiviMember', '', @reportlastID, '1', 0, 6 );
INSERT INTO civicrm_navigation
( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight )
VALUES
( @domainID, 'civicrm/report/list?compid=9&reset=1', 'Campaign Reports', 'Campaign Reports', 'interview campaign contacts,release campaign contacts,reserve campaign contacts,manage campaign,administer CiviCampaign,gotv campaign contacts', 'OR', @reportlastID, '1', 0, 7 );
INSERT INTO civicrm_navigation
( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight )
VALUES
( @domainID, 'civicrm/report/list?compid=7&reset=1', 'Case Reports', 'Case Reports', 'access my cases and activities,access all cases and activities,administer CiviCase', 'OR', @reportlastID, '1', 0, 8 );
INSERT INTO civicrm_navigation
( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight )
VALUES
( @domainID, 'civicrm/report/list?compid=5&reset=1', 'Grant Reports', 'Grant Reports', 'access CiviGrant', '', @reportlastID, '1', 0, 9 );
INSERT INTO civicrm_navigation
( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight )
VALUES
( @domainID, 'civicrm/report/list?reset=1', 'All Reports', 'All Reports', 'access CiviReport', '', @reportlastID, '1', 1, 10 ),
( @domainID, 'civicrm/report/list?myreports=1&reset=1', 'My Reports', 'My Reports', 'access CiviReport', '', @reportlastID, '1', 1, 11);
-- sample report instances
INSERT INTO `civicrm_report_instance`
( `domain_id`, `title`, `report_id`, `description`, `permission`, `form_values`)
VALUES
( @domainID, 'Constituent Summary', 'contact/summary', 'Provides a list of address and telephone information for constituent records in your system.', 'view all contacts', 'a:31:{s:6:"fields";a:4:{s:9:"sort_name";s:1:"1";s:14:"street_address";s:1:"1";s:4:"city";s:1:"1";s:10:"country_id";s:1:"1";}s:12:"sort_name_op";s:3:"has";s:15:"sort_name_value";s:0:"";s:9:"source_op";s:3:"has";s:12:"source_value";s:0:"";s:6:"id_min";s:0:"";s:6:"id_max";s:0:"";s:5:"id_op";s:3:"lte";s:8:"id_value";s:0:"";s:13:"country_id_op";s:2:"in";s:16:"country_id_value";a:0:{}s:20:"state_province_id_op";s:2:"in";s:23:"state_province_id_value";a:0:{}s:6:"gid_op";s:2:"in";s:9:"gid_value";a:0:{}s:8:"tagid_op";s:2:"in";s:11:"tagid_value";a:0:{}s:11:"custom_1_op";s:2:"in";s:14:"custom_1_value";a:0:{}s:11:"custom_2_op";s:2:"in";s:14:"custom_2_value";a:0:{}s:17:"custom_3_relative";s:1:"0";s:13:"custom_3_from";s:0:"";s:11:"custom_3_to";s:0:"";s:11:"description";s:92:"Provides a list of address and telephone information for constituent records in your system.";s:13:"email_subject";s:0:"";s:8:"email_to";s:0:"";s:8:"email_cc";s:0:"";s:10:"permission";s:17:"view all contacts";s:6:"groups";s:0:"";s:9:"domain_id";i:1;}');
INSERT INTO `civicrm_report_instance`
( `domain_id`, `title`, `report_id`, `description`, `permission`, `form_values`)
VALUES
( @domainID, 'Constituent Detail', 'contact/detail', 'Provides contact-related information on contributions, memberships, events and activities.', 'view all contacts', 'a:25:{s:6:"fields";a:30:{s:9:"sort_name";s:1:"1";s:10:"country_id";s:1:"1";s:15:"contribution_id";s:1:"1";s:12:"total_amount";s:1:"1";s:17:"financial_type_id";s:1:"1";s:12:"receive_date";s:1:"1";s:22:"contribution_status_id";s:1:"1";s:13:"membership_id";s:1:"1";s:18:"membership_type_id";s:1:"1";s:21:"membership_start_date";s:1:"1";s:19:"membership_end_date";s:1:"1";s:20:"membership_status_id";s:1:"1";s:14:"participant_id";s:1:"1";s:8:"event_id";s:1:"1";s:21:"participant_status_id";s:1:"1";s:7:"role_id";s:1:"1";s:25:"participant_register_date";s:1:"1";s:9:"fee_level";s:1:"1";s:10:"fee_amount";s:1:"1";s:15:"relationship_id";s:1:"1";s:20:"relationship_type_id";s:1:"1";s:12:"contact_id_b";s:1:"1";s:2:"id";s:1:"1";s:16:"activity_type_id";s:1:"1";s:7:"subject";s:1:"1";s:17:"source_contact_id";s:1:"1";s:18:"activity_date_time";s:1:"1";s:18:"activity_status_id";s:1:"1";s:17:"target_contact_id";s:1:"1";s:19:"assignee_contact_id";s:1:"1";}s:6:"id_min";s:0:"";s:6:"id_max";s:0:"";s:5:"id_op";s:3:"lte";s:8:"id_value";s:0:"";s:12:"sort_name_op";s:3:"has";s:15:"sort_name_value";s:0:"";s:6:"gid_op";s:2:"in";s:9:"gid_value";a:0:{}s:8:"tagid_op";s:2:"in";s:11:"tagid_value";a:0:{}s:11:"custom_1_op";s:2:"in";s:14:"custom_1_value";a:0:{}s:11:"custom_2_op";s:2:"in";s:14:"custom_2_value";a:0:{}s:17:"custom_3_relative";s:1:"0";s:13:"custom_3_from";s:0:"";s:11:"custom_3_to";s:0:"";s:11:"description";s:90:"Provides contact-related information on contributions, memberships, events and activities.";s:13:"email_subject";s:0:"";s:8:"email_to";s:0:"";s:8:"email_cc";s:0:"";s:10:"permission";s:17:"view all contacts";s:6:"groups";s:0:"";s:9:"domain_id";i:1;}');
INSERT INTO `civicrm_report_instance`
( `domain_id`, `title`, `report_id`, `description`, `permission`, `form_values`)
VALUES
( @domainID, 'Activity Details', 'activity', 'Provides a list of constituent activity including activity statistics for one/all contacts during a given date range(required)', 'view all contacts', 'a:26:{s:6:"fields";a:6:{s:16:"contact_assignee";s:1:"1";s:14:"contact_target";s:1:"1";s:16:"activity_type_id";s:1:"1";s:16:"activity_subject";s:1:"1";s:18:"activity_date_time";s:1:"1";s:9:"status_id";s:1:"1";}s:17:"contact_source_op";s:3:"has";s:20:"contact_source_value";s:0:"";s:19:"contact_assignee_op";s:3:"has";s:22:"contact_assignee_value";s:0:"";s:17:"contact_target_op";s:3:"has";s:20:"contact_target_value";s:0:"";s:15:"current_user_op";s:2:"eq";s:18:"current_user_value";s:1:"0";s:27:"activity_date_time_relative";s:10:"this.month";s:23:"activity_date_time_from";s:0:"";s:21:"activity_date_time_to";s:0:"";s:19:"activity_subject_op";s:3:"has";s:22:"activity_subject_value";s:0:"";s:19:"activity_type_id_op";s:2:"in";s:22:"activity_type_id_value";a:0:{}s:12:"status_id_op";s:2:"in";s:15:"status_id_value";a:0:{}s:11:"description";s:126:"Provides a list of constituent activity including activity statistics for one/all contacts during a given date range(required)";s:13:"email_subject";s:0:"";s:8:"email_to";s:0:"";s:8:"email_cc";s:0:"";s:10:"permission";s:17:"view all contacts";s:6:"groups";s:0:"";s:9:"group_bys";N;s:9:"domain_id";i:1;}');
INSERT INTO `civicrm_report_instance`
(`domain_id`, `title`, `report_id`, `description`, `permission`, `form_values`)
VALUES
( @domainID, 'Current Employers', 'contact/currentEmployer', 'Provides detail list of employer employee relationships along with employment details.', 'view all contacts', 'a:33:{s:6:"fields";a:5:{s:17:"organization_name";s:1:"1";s:9:"sort_name";s:1:"1";s:9:"job_title";s:1:"1";s:10:"start_date";s:1:"1";s:5:"email";s:1:"1";}s:20:"organization_name_op";s:3:"has";s:23:"organization_name_value";s:0:"";s:12:"sort_name_op";s:3:"has";s:15:"sort_name_value";s:0:"";s:6:"id_min";s:0:"";s:6:"id_max";s:0:"";s:5:"id_op";s:3:"lte";s:8:"id_value";s:0:"";s:19:"start_date_relative";s:1:"0";s:15:"start_date_from";s:0:"";s:13:"start_date_to";s:0:"";s:13:"country_id_op";s:2:"in";s:16:"country_id_value";a:0:{}s:20:"state_province_id_op";s:2:"in";s:23:"state_province_id_value";a:0:{}s:6:"gid_op";s:2:"in";s:9:"gid_value";a:0:{}s:8:"tagid_op";s:2:"in";s:11:"tagid_value";a:0:{}s:11:"custom_1_op";s:2:"in";s:14:"custom_1_value";a:0:{}s:11:"custom_2_op";s:2:"in";s:14:"custom_2_value";a:0:{}s:17:"custom_3_relative";s:1:"0";s:13:"custom_3_from";s:0:"";s:11:"custom_3_to";s:0:"";s:11:"description";s:98:"Provides detail list of employer employee relationships along with employment details Ex Join Date";s:13:"email_subject";s:0:"";s:8:"email_to";s:0:"";s:8:"email_cc";s:0:"";s:10:"permission";s:17:"view all contacts";s:9:"domain_id";i:1;}');
INSERT INTO `civicrm_report_instance`
( `domain_id`, `title`, `report_id`, `description`, `permission`, `form_values`)
VALUES
( @domainID, 'Relationships', 'contact/relationship', 'Gives relationship details between two contacts', 'view all contacts', 'a:28:{s:6:"fields";a:4:{s:11:"sort_name_a";s:1:"1";s:11:"sort_name_b";s:1:"1";s:9:"label_a_b";s:1:"1";s:9:"label_b_a";s:1:"1";}s:14:"sort_name_a_op";s:3:"has";s:17:"sort_name_a_value";s:0:"";s:14:"sort_name_b_op";s:3:"has";s:17:"sort_name_b_value";s:0:"";s:17:"contact_type_a_op";s:2:"in";s:20:"contact_type_a_value";a:0:{}s:17:"contact_type_b_op";s:2:"in";s:20:"contact_type_b_value";a:0:{}s:12:"is_active_op";s:2:"eq";s:15:"is_active_value";s:0:"";s:23:"relationship_type_id_op";s:2:"eq";s:26:"relationship_type_id_value";s:0:"";s:13:"country_id_op";s:2:"in";s:16:"country_id_value";a:0:{}s:20:"state_province_id_op";s:2:"in";s:23:"state_province_id_value";a:0:{}s:6:"gid_op";s:2:"in";s:9:"gid_value";a:0:{}s:8:"tagid_op";s:2:"in";s:11:"tagid_value";a:0:{}s:11:"description";s:19:"Relationship Report";s:13:"email_subject";s:0:"";s:8:"email_to";s:0:"";s:8:"email_cc";s:0:"";s:10:"permission";s:17:"view all contacts";s:6:"groups";s:0:"";s:9:"domain_id";i:1;}');
INSERT INTO `civicrm_report_instance`
( `domain_id`, `title`, `report_id`, `description`, `permission`, `form_values`)
VALUES
( @domainID, 'Activity Summary', 'activitySummary', 'Shows activity statistics by type / date', 'view all contacts', 'a:26:{s:6:"fields";a:4:{s:16:"activity_type_id";s:1:"1";s:9:"status_id";s:1:"1";s:8:"duration";s:1:"1";s:2:"id";s:1:"1";}s:12:"sort_name_op";s:3:"has";s:15:"sort_name_value";s:0:"";s:27:"activity_date_time_relative";s:0:"";s:23:"activity_date_time_from";s:0:"";s:21:"activity_date_time_to";s:0:"";s:19:"activity_type_id_op";s:2:"in";s:22:"activity_type_id_value";a:0:{}s:12:"status_id_op";s:2:"in";s:15:"status_id_value";a:0:{}s:14:"priority_id_op";s:2:"in";s:17:"priority_id_value";a:0:{}s:6:"gid_op";s:2:"in";s:9:"gid_value";a:0:{}s:9:"group_bys";a:2:{s:16:"activity_type_id";s:1:"1";s:9:"status_id";s:1:"1";}s:14:"group_bys_freq";a:1:{s:18:"activity_date_time";s:5:"MONTH";}s:9:"order_bys";a:1:{i:1;a:2:{s:6:"column";s:16:"activity_type_id";s:5:"order";s:3:"ASC";}}s:11:"description";s:40:"Shows activity statistics by type / date";s:13:"email_subject";s:0:"";s:8:"email_to";s:0:"";s:8:"email_cc";s:0:"";s:9:"row_count";s:0:"";s:10:"permission";s:17:"view all contacts";s:9:"parent_id";s:0:"";s:6:"groups";s:0:"";s:11:"instance_id";N;}');
-- Contribution reports
INSERT INTO `civicrm_report_instance`
( `domain_id`, `title`, `report_id`, `description`, `permission`, `form_values`)
VALUES
( @domainID, 'Contribution Summary', 'contribute/summary', 'Groups and totals contributions by criteria including contact, time period, contribution type, contributor location, etc.', 'access CiviContribute', 'a:42:{s:6:"fields";a:1:{s:12:"total_amount";s:1:"1";}s:13:"country_id_op";s:2:"in";s:16:"country_id_value";a:0:{}s:20:"state_province_id_op";s:2:"in";s:23:"state_province_id_value";a:0:{}s:21:"receive_date_relative";s:1:"0";s:17:"receive_date_from";s:0:"";s:15:"receive_date_to";s:0:"";s:25:"contribution_status_id_op";s:2:"in";s:28:"contribution_status_id_value";a:1:{i:0;s:1:"1";}s:20:"financial_type_id_op";s:2:"in";s:23:"financial_type_id_value";a:0:{}s:16:"total_amount_min";s:0:"";s:16:"total_amount_max";s:0:"";s:15:"total_amount_op";s:3:"lte";s:18:"total_amount_value";s:0:"";s:13:"total_sum_min";s:0:"";s:13:"total_sum_max";s:0:"";s:12:"total_sum_op";s:3:"lte";s:15:"total_sum_value";s:0:"";s:15:"total_count_min";s:0:"";s:15:"total_count_max";s:0:"";s:14:"total_count_op";s:3:"lte";s:17:"total_count_value";s:0:"";s:13:"total_avg_min";s:0:"";s:13:"total_avg_max";s:0:"";s:12:"total_avg_op";s:3:"lte";s:15:"total_avg_value";s:0:"";s:6:"gid_op";s:2:"in";s:9:"gid_value";a:0:{}s:8:"tagid_op";s:2:"in";s:11:"tagid_value";a:0:{}s:9:"group_bys";a:1:{s:12:"receive_date";s:1:"1";}s:14:"group_bys_freq";a:1:{s:12:"receive_date";s:5:"MONTH";}s:11:"description";s:80:"Shows contribution statistics by month / week / year .. country / state .. type.";s:13:"email_subject";s:0:"";s:8:"email_to";s:0:"";s:8:"email_cc";s:0:"";s:10:"permission";s:21:"access CiviContribute";s:6:"groups";s:0:"";s:6:"charts";s:0:"";s:9:"domain_id";i:1;}');
INSERT INTO `civicrm_report_instance`
( `domain_id`, `title`, `report_id`, `description`, `permission`, `form_values`)
VALUES
( @domainID, 'Contribution Details', 'contribute/detail', 'Lists specific contributions by criteria including contact, time period, contribution type, contributor location, etc. Contribution summary report points to this report for contribution details.', 'access CiviContribute', 'a:56:{s:6:"fields";a:7:{s:9:"sort_name";s:1:"1";s:5:"email";s:1:"1";s:5:"phone";s:1:"1";s:17:"financial_type_id";s:1:"1";s:12:"receive_date";s:1:"1";s:12:"total_amount";s:1:"1";s:10:"country_id";s:1:"1";}s:12:"sort_name_op";s:3:"has";s:15:"sort_name_value";s:0:"";s:6:"id_min";s:0:"";s:6:"id_max";s:0:"";s:5:"id_op";s:3:"lte";s:8:"id_value";s:0:"";s:21:"receive_date_relative";s:0:"";s:17:"receive_date_from";s:0:"";s:15:"receive_date_to";s:0:"";s:20:"financial_type_id_op";s:2:"in";s:23:"financial_type_id_value";a:0:{}s:24:"payment_instrument_id_op";s:2:"in";s:27:"payment_instrument_id_value";a:0:{}s:25:"contribution_status_id_op";s:2:"in";s:28:"contribution_status_id_value";a:1:{i:0;s:1:"1";}s:16:"total_amount_min";s:0:"";s:16:"total_amount_max";s:0:"";s:15:"total_amount_op";s:3:"lte";s:18:"total_amount_value";s:0:"";s:6:"gid_op";s:2:"in";s:9:"gid_value";a:0:{}s:13:"ordinality_op";s:2:"in";s:16:"ordinality_value";a:0:{}s:7:"note_op";s:3:"has";s:10:"note_value";s:0:"";s:17:"street_number_min";s:0:"";s:17:"street_number_max";s:0:"";s:16:"street_number_op";s:3:"lte";s:19:"street_number_value";s:0:"";s:14:"street_name_op";s:3:"has";s:17:"street_name_value";s:0:"";s:15:"postal_code_min";s:0:"";s:15:"postal_code_max";s:0:"";s:14:"postal_code_op";s:3:"lte";s:17:"postal_code_value";s:0:"";s:7:"city_op";s:3:"has";s:10:"city_value";s:0:"";s:12:"county_id_op";s:2:"in";s:15:"county_id_value";a:0:{}s:20:"state_province_id_op";s:2:"in";s:23:"state_province_id_value";a:0:{}s:13:"country_id_op";s:2:"in";s:16:"country_id_value";a:0:{}s:8:"tagid_op";s:2:"in";s:11:"tagid_value";a:0:{}s:9:"order_bys";a:1:{i:1;a:2:{s:6:"column";s:9:"sort_name";s:5:"order";s:3:"ASC";}}s:11:"description";s:194:"Lists specific contributions by criteria including contact, time period, contribution type, contributor location, etc. Contribution summary report points to this report for contribution details.";s:13:"email_subject";s:0:"";s:8:"email_to";s:0:"";s:8:"email_cc";s:0:"";s:10:"permission";s:21:"access CiviContribute";s:9:"parent_id";s:0:"";s:6:"groups";s:0:"";s:9:"domain_id";i:1;s:11:"is_reserved";b:0;}');
INSERT INTO `civicrm_report_instance`
( `domain_id`, `title`, `report_id`, `description`, `permission`, `form_values`)
VALUES
( @domainID, 'Repeat Contributions', 'contribute/repeat', 'Given two date ranges, shows contacts who contributed in both the date ranges with the amount contributed in each and the percentage increase / decrease.', 'access CiviContribute', 'a:29:{s:6:"fields";a:3:{s:9:"sort_name";s:1:"1";s:13:"total_amount1";s:1:"1";s:13:"total_amount2";s:1:"1";}s:22:"receive_date1_relative";s:13:"previous.year";s:18:"receive_date1_from";s:0:"";s:16:"receive_date1_to";s:0:"";s:22:"receive_date2_relative";s:9:"this.year";s:18:"receive_date2_from";s:0:"";s:16:"receive_date2_to";s:0:"";s:17:"total_amount1_min";s:0:"";s:17:"total_amount1_max";s:0:"";s:16:"total_amount1_op";s:3:"lte";s:19:"total_amount1_value";s:0:"";s:17:"total_amount2_min";s:0:"";s:17:"total_amount2_max";s:0:"";s:16:"total_amount2_op";s:3:"lte";s:19:"total_amount2_value";s:0:"";s:25:"contribution_status_id_op";s:2:"in";s:28:"contribution_status_id_value";a:1:{i:0;s:1:"1";}s:6:"gid_op";s:2:"in";s:9:"gid_value";a:0:{}s:8:"tagid_op";s:2:"in";s:11:"tagid_value";a:0:{}s:9:"group_bys";a:1:{s:2:"id";s:1:"1";}s:11:"description";s:140:"Given two date ranges, shows contacts (and their contributions) who contributed in both the date ranges with percentage increase / decrease.";s:13:"email_subject";s:0:"";s:8:"email_to";s:0:"";s:8:"email_cc";s:0:"";s:10:"permission";s:21:"access CiviContribute";s:6:"groups";s:0:"";s:9:"domain_id";i:1;}');
INSERT INTO `civicrm_report_instance`
( `domain_id`, `title`, `report_id`, `description`, `permission`, `form_values`)
VALUES
( @domainID, 'SYBUNT (some year but not this year)', 'contribute/sybunt', 'Some year(s) but not this year. Provides a list of constituents who donated at some time in the history of your organization but did not donate during the time period you specify.', 'access CiviContribute', 'a:18:{s:6:"fields";a:3:{s:9:"sort_name";s:1:"1";s:5:"email";s:1:"1";s:5:"phone";s:1:"1";}s:12:"sort_name_op";s:3:"has";s:15:"sort_name_value";s:0:"";s:6:"yid_op";s:2:"eq";s:9:"yid_value";s:4:"2011";s:25:"contribution_status_id_op";s:2:"in";s:28:"contribution_status_id_value";a:1:{i:0;s:1:"1";}s:6:"gid_op";s:2:"in";s:9:"gid_value";a:0:{}s:8:"tagid_op";s:2:"in";s:11:"tagid_value";a:0:{}s:11:"description";s:179:"Some year(s) but not this year. Provides a list of constituents who donated at some time in the history of your organization but did not donate during the time period you specify.";s:13:"email_subject";s:0:"";s:8:"email_to";s:0:"";s:8:"email_cc";s:0:"";s:10:"permission";s:21:"access CiviContribute";s:6:"charts";s:0:"";s:9:"domain_id";i:1;}');
INSERT INTO `civicrm_report_instance`
( `domain_id`, `title`, `report_id`, `description`, `permission`, `form_values`)
VALUES
( @domainID, 'LYBUNT (last year but not this year)', 'contribute/lybunt', 'Last year but not this year. Provides a list of constituents who donated last year but did not donate during the time period you specify as the current year.', 'access CiviContribute', 'a:19:{s:6:"fields";a:5:{s:9:"sort_name";s:1:"1";s:5:"email";s:1:"1";s:5:"phone";s:1:"1";s:22:"last_year_total_amount";s:1:"1";s:23:"civicrm_life_time_total";s:1:"1";}s:12:"sort_name_op";s:3:"has";s:15:"sort_name_value";s:0:"";s:6:"yid_op";s:2:"eq";s:9:"yid_value";s:4:"2011";s:25:"contribution_status_id_op";s:2:"in";s:28:"contribution_status_id_value";a:1:{i:0;s:1:"1";}s:6:"gid_op";s:2:"in";s:9:"gid_value";a:0:{}s:8:"tagid_op";s:2:"in";s:11:"tagid_value";a:0:{}s:11:"description";s:157:"Last year but not this year. Provides a list of constituents who donated last year but did not donate during the time period you specify as the current year.";s:13:"email_subject";s:0:"";s:8:"email_to";s:0:"";s:8:"email_cc";s:0:"";s:10:"permission";s:21:"access CiviContribute";s:6:"groups";s:0:"";s:6:"charts";s:0:"";s:9:"domain_id";i:1;}');
INSERT INTO `civicrm_report_instance`
( `domain_id`, `title`, `report_id`, `description`, `permission`, `form_values`)
VALUES
( @domainID, 'Contributions by Organization', 'contribute/organizationSummary', 'Displays a detailed list of contributions grouped by organization, which includes contributions made by employees for the organisation.', 'access CiviContribute', 'a:20:{s:6:"fields";a:5:{s:17:"organization_name";s:1:"1";s:9:"sort_name";s:1:"1";s:12:"total_amount";s:1:"1";s:22:"contribution_status_id";s:1:"1";s:12:"receive_date";s:1:"1";}s:20:"organization_name_op";s:3:"has";s:23:"organization_name_value";s:0:"";s:23:"relationship_type_id_op";s:2:"eq";s:26:"relationship_type_id_value";s:5:"4_b_a";s:21:"receive_date_relative";s:1:"0";s:17:"receive_date_from";s:0:"";s:15:"receive_date_to";s:0:"";s:16:"total_amount_min";s:0:"";s:16:"total_amount_max";s:0:"";s:15:"total_amount_op";s:3:"lte";s:18:"total_amount_value";s:0:"";s:25:"contribution_status_id_op";s:2:"in";s:28:"contribution_status_id_value";a:1:{i:0;s:1:"1";}s:11:"description";s:193:"Displays a detailed contribution report for Organization relationships with contributors, as to if contribution done was from an employee of some organization or from that Organization itself.";s:13:"email_subject";s:0:"";s:8:"email_to";s:0:"";s:8:"email_cc";s:0:"";s:10:"permission";s:21:"access CiviContribute";s:9:"domain_id";i:1;}');
INSERT INTO `civicrm_report_instance`
( `domain_id`, `title`, `report_id`, `description`, `permission`, `form_values`)
VALUES
( @domainID, 'Contributions by Household', 'contribute/householdSummary', 'Displays a detailed list of contributions grouped by household which includes contributions made by members of the household.', 'access CiviContribute', 'a:21:{s:6:"fields";a:5:{s:14:"household_name";s:1:"1";s:9:"sort_name";s:1:"1";s:12:"total_amount";s:1:"1";s:22:"contribution_status_id";s:1:"1";s:12:"receive_date";s:1:"1";}s:17:"household_name_op";s:3:"has";s:20:"household_name_value";s:0:"";s:23:"relationship_type_id_op";s:2:"eq";s:26:"relationship_type_id_value";s:5:"6_b_a";s:21:"receive_date_relative";s:1:"0";s:17:"receive_date_from";s:0:"";s:15:"receive_date_to";s:0:"";s:16:"total_amount_min";s:0:"";s:16:"total_amount_max";s:0:"";s:15:"total_amount_op";s:3:"lte";s:18:"total_amount_value";s:0:"";s:25:"contribution_status_id_op";s:2:"in";s:28:"contribution_status_id_value";a:1:{i:0;s:1:"1";}s:11:"description";s:213:"Provides a detailed report for Contributions made by contributors(Or Household itself) who are having a relationship with household (For ex a Contributor is Head of Household for some household or is a member of.)";s:13:"email_subject";s:0:"";s:8:"email_to";s:0:"";s:8:"email_cc";s:0:"";s:10:"permission";s:21:"access CiviContribute";s:6:"groups";s:0:"";s:9:"domain_id";i:1;}');
INSERT INTO `civicrm_report_instance`
( `domain_id`, `title`, `report_id`, `description`, `permission`, `form_values`)
VALUES
( @domainID, 'Top Donors', 'contribute/topDonor', 'Provides a list of the top donors during a time period you define. You can include as many donors as you want (for example, top 100 of your donors).', 'access CiviContribute', 'a:20:{s:6:"fields";a:2:{s:12:"display_name";s:1:"1";s:12:"total_amount";s:1:"1";}s:21:"receive_date_relative";s:9:"this.year";s:17:"receive_date_from";s:0:"";s:15:"receive_date_to";s:0:"";s:15:"total_range_min";s:0:"";s:15:"total_range_max";s:0:"";s:14:"total_range_op";s:2:"eq";s:17:"total_range_value";s:0:"";s:20:"financial_type_id_op";s:2:"in";s:23:"financial_type_id_value";a:0:{}s:25:"contribution_status_id_op";s:2:"in";s:28:"contribution_status_id_value";a:1:{i:0;s:1:"1";}s:6:"gid_op";s:2:"in";s:9:"gid_value";a:0:{}s:11:"description";s:148:"Provides a list of the top donors during a time period you define. You can include as many donors as you want (for example, top 100 of your donors).";s:13:"email_subject";s:0:"";s:8:"email_to";s:0:"";s:8:"email_cc";s:0:"";s:10:"permission";s:21:"access CiviContribute";s:6:"groups";s:0:"";}');
INSERT INTO `civicrm_report_instance`
( `domain_id`, `title`, `report_id`, `description`, `permission`, `form_values`)
VALUES
( @domainID, 'Soft Credits', 'contribute/softcredit', 'Shows contributions made by contacts that have been soft-credited to other contacts.', 'access CiviContribute', 'a:23:{s:6:"fields";a:5:{s:21:"display_name_creditor";s:1:"1";s:24:"display_name_constituent";s:1:"1";s:14:"email_creditor";s:1:"1";s:14:"phone_creditor";s:1:"1";s:6:"amount";s:1:"1";}s:5:"id_op";s:2:"in";s:8:"id_value";a:0:{}s:21:"receive_date_relative";s:1:"0";s:17:"receive_date_from";s:0:"";s:15:"receive_date_to";s:0:"";s:25:"contribution_status_id_op";s:2:"in";s:28:"contribution_status_id_value";a:1:{i:0;s:1:"1";}s:10:"amount_min";s:0:"";s:10:"amount_max";s:0:"";s:9:"amount_op";s:3:"lte";s:12:"amount_value";s:0:"";s:6:"gid_op";s:2:"in";s:9:"gid_value";a:0:{}s:8:"tagid_op";s:2:"in";s:11:"tagid_value";a:0:{}s:11:"description";s:20:"Soft Credit details.";s:13:"email_subject";s:0:"";s:8:"email_to";s:0:"";s:8:"email_cc";s:0:"";s:10:"permission";s:21:"access CiviContribute";s:6:"groups";s:0:"";s:9:"domain_id";i:1;}');
INSERT INTO `civicrm_report_instance`
( `domain_id`, `title`, `report_id`, `description`, `permission`, `form_values`)
VALUES
(@domainID,'Contribution Aggregate by Relationship', 'contribute/history','List contact\'s donation history, grouped by year, along with contributions attributed to any of the contact\'s related contacts.', 'access CiviContribute','a:41:{s:6:"fields";a:7:{s:9:"sort_name";s:1:"1";s:20:"relationship_type_id";s:1:"1";s:17:"civicrm_upto_2009";s:1:"1";i:2010;s:1:"1";i:2011;s:1:"1";i:2012;s:1:"1";i:2013;s:1:"1";}s:12:"sort_name_op";s:3:"has";s:15:"sort_name_value";s:0:"";s:6:"id_min";s:0:"";s:6:"id_max";s:0:"";s:5:"id_op";s:3:"lte";s:8:"id_value";s:0:"";s:23:"relationship_type_id_op";s:2:"in";s:26:"relationship_type_id_value";a:0:{}s:12:"this_year_op";s:2:"eq";s:15:"this_year_value";s:0:"";s:13:"other_year_op";s:2:"eq";s:16:"other_year_value";s:0:"";s:21:"receive_date_relative";s:0:"";s:17:"receive_date_from";s:0:"";s:15:"receive_date_to";s:0:"";s:25:"contribution_status_id_op";s:2:"in";s:28:"contribution_status_id_value";a:1:{i:0;s:1:"1";}s:20:"financial_type_id_op";s:2:"in";s:23:"financial_type_id_value";a:0:{}s:16:"total_amount_min";s:0:"";s:16:"total_amount_max";s:0:"";s:15:"total_amount_op";s:3:"lte";s:18:"total_amount_value";s:0:"";s:13:"total_sum_min";s:0:"";s:13:"total_sum_max";s:0:"";s:12:"total_sum_op";s:3:"lte";s:15:"total_sum_value";s:0:"";s:6:"gid_op";s:2:"in";s:9:"gid_value";a:0:{}s:8:"tagid_op";s:2:"in";s:11:"tagid_value";a:0:{}s:11:"description";s:127:"List contact''s donation history, grouped by year, along with contributions attributed to any of the contact''s related contacts.";s:13:"email_subject";s:0:"";s:8:"email_to";s:0:"";s:8:"email_cc";s:0:"";s:10:"permission";s:21:"access CiviContribute";s:9:"parent_id";s:0:"";s:6:"groups";s:0:"";s:9:"domain_id";i:1;s:11:"is_reserved";b:0;}');
INSERT INTO `civicrm_report_instance`
( `domain_id`, `title`, `report_id`, `description`, `permission`, `form_values`)
VALUES
( @domainID, 'Personal Campaign Page Summary', 'contribute/pcp', 'Summarizes amount raised and number of contributors for each Personal Campaign Page.', 'access CiviContribute', 'a:22:{s:6:"fields";a:8:{s:9:"sort_name";s:1:"1";s:10:"page_title";s:1:"1";s:5:"title";s:1:"1";s:11:"goal_amount";s:1:"1";s:8:"amount_1";s:1:"1";s:8:"amount_2";s:1:"1";s:7:"soft_id";s:1:"1";s:12:"receive_date";s:1:"1";}s:12:"sort_name_op";s:3:"has";s:15:"sort_name_value";s:0:"";s:6:"id_min";s:0:"";s:6:"id_max";s:0:"";s:5:"id_op";s:3:"lte";s:8:"id_value";s:0:"";s:13:"page_title_op";s:3:"has";s:16:"page_title_value";s:0:"";s:8:"title_op";s:3:"has";s:11:"title_value";s:0:"";s:12:"amount_2_min";s:0:"";s:12:"amount_2_max";s:0:"";s:11:"amount_2_op";s:3:"lte";s:14:"amount_2_value";s:0:"";s:11:"description";s:35:"Shows Personal Campaign Page Report";s:13:"email_subject";s:0:"";s:8:"email_to";s:0:"";s:8:"email_cc";s:0:"";s:10:"permission";s:21:"access CiviContribute";s:6:"groups";s:0:"";s:9:"domain_id";i:1;}');
INSERT INTO `civicrm_report_instance`
( `domain_id`, `title`, `report_id`, `description`, `permission`, `form_values`)
VALUES
( @domainID, 'Pledge Detail', 'pledge/detail', 'List of pledges including amount pledged, pledge status, next payment date, balance due, total amount paid etc.', 'access CiviPledge', 'a:27:{s:6:"fields";a:4:{s:9:"sort_name";s:1:"1";s:10:"country_id";s:1:"1";s:6:"amount";s:1:"1";s:9:"status_id";s:1:"1";}s:12:"sort_name_op";s:3:"has";s:15:"sort_name_value";s:0:"";s:6:"id_min";s:0:"";s:6:"id_max";s:0:"";s:5:"id_op";s:3:"lte";s:8:"id_value";s:0:"";s:27:"pledge_create_date_relative";s:1:"0";s:23:"pledge_create_date_from";s:0:"";s:21:"pledge_create_date_to";s:0:"";s:17:"pledge_amount_min";s:0:"";s:17:"pledge_amount_max";s:0:"";s:16:"pledge_amount_op";s:3:"lte";s:19:"pledge_amount_value";s:0:"";s:6:"sid_op";s:2:"in";s:9:"sid_value";a:0:{}s:6:"gid_op";s:2:"in";s:9:"gid_value";a:0:{}s:8:"tagid_op";s:2:"in";s:11:"tagid_value";a:0:{}s:11:"description";s:13:"Pledge Report";s:13:"email_subject";s:0:"";s:8:"email_to";s:0:"";s:8:"email_cc";s:0:"";s:10:"permission";s:17:"access CiviPledge";s:6:"groups";s:0:"";s:9:"domain_id";i:1;}');
INSERT INTO `civicrm_report_instance`
( `domain_id`, `title`, `report_id`, `description`, `permission`, `form_values`)
VALUES
( @domainID, 'Pledged But not Paid', 'pledge/pbnp', 'Pledged but not Paid Report', 'access CiviPledge', 'a:17:{s:6:"fields";a:5:{s:9:"sort_name";s:1:"1";s:18:"pledge_create_date";s:1:"1";s:6:"amount";s:1:"1";s:14:"scheduled_date";s:1:"1";s:10:"country_id";s:1:"1";}s:27:"pledge_create_date_relative";s:1:"0";s:23:"pledge_create_date_from";s:0:"";s:21:"pledge_create_date_to";s:0:"";s:20:"financial_type_id_op";s:2:"in";s:23:"financial_type_id_value";a:0:{}s:6:"gid_op";s:2:"in";s:9:"gid_value";a:0:{}s:8:"tagid_op";s:2:"in";s:11:"tagid_value";a:0:{}s:11:"description";s:27:"Pledged but not Paid Report";s:13:"email_subject";s:0:"";s:8:"email_to";s:0:"";s:8:"email_cc";s:0:"";s:10:"permission";s:17:"access CiviPledge";s:6:"groups";s:0:"";s:9:"domain_id";i:1;}');
INSERT INTO `civicrm_report_instance`
( `domain_id`, `title`, `report_id`, `description`, `permission`, `form_values`)
VALUES
( @domainID, 'Bookkeeping Transactions', 'contribute/bookkeeping', 'Provides transaction details for all contributions and payments, including Transaction #, Invoice ID, Payment Instrument and Check #.', 'access CiviContribute', 'a:40:{s:6:"fields";a:12:{s:9:"sort_name";s:1:"1";s:21:"debit_accounting_code";s:1:"1";s:22:"credit_accounting_code";s:1:"1";s:17:"financial_type_id";s:1:"1";s:12:"receive_date";s:1:"1";s:22:"contribution_status_id";s:1:"1";s:2:"id";s:1:"1";s:12:"check_number";s:1:"1";s:21:"payment_instrument_id";s:1:"1";s:9:"trxn_date";s:1:"1";s:7:"trxn_id";s:1:"1";s:6:"amount";s:1:"1";}s:12:"sort_name_op";s:3:"has";s:15:"sort_name_value";s:0:"";s:6:"id_min";s:0:"";s:6:"id_max";s:0:"";s:5:"id_op";s:3:"lte";s:8:"id_value";s:0:"";s:24:"debit_accounting_code_op";s:2:"in";s:27:"debit_accounting_code_value";a:0:{}s:25:"credit_accounting_code_op";s:2:"in";s:28:"credit_accounting_code_value";a:0:{}s:13:"debit_name_op";s:2:"in";s:16:"debit_name_value";a:0:{}s:14:"credit_name_op";s:2:"in";s:17:"credit_name_value";a:0:{}s:20:"financial_type_id_op";s:2:"in";s:23:"financial_type_id_value";a:0:{}s:21:"receive_date_relative";s:1:"0";s:17:"receive_date_from";s:0:"";s:15:"receive_date_to";s:0:"";s:25:"contribution_status_id_op";s:2:"in";s:28:"contribution_status_id_value";a:1:{i:0;s:1:"1";}s:24:"payment_instrument_id_op";s:2:"in";s:27:"payment_instrument_id_value";a:0:{}s:18:"trxn_date_relative";s:1:"0";s:14:"trxn_date_from";s:0:"";s:12:"trxn_date_to";s:0:"";s:10:"amount_min";s:0:"";s:10:"amount_max";s:0:"";s:9:"amount_op";s:3:"lte";s:12:"amount_value";s:0:"";s:11:"description";s:133:"Provides transaction details for all contributions and payments, including Transaction #, Invoice ID, Payment Instrument and Check #.";s:13:"email_subject";s:0:"";s:8:"email_to";s:0:"";s:8:"email_cc";s:0:"";s:10:"permission";s:21:"access CiviContribute";s:9:"parent_id";s:0:"";s:6:"groups";s:0:"";s:9:"domain_id";i:1;s:11:"is_reserved";b:0;}');
INSERT INTO `civicrm_report_instance`
( `domain_id`, `title`, `report_id`, `description`, `permission`, `form_values`)
VALUES
( @domainID, 'Recurring Contributions', 'contribute/recur', 'Provides information about the status of recurring contributions', 'access CiviContribute', 'a:39:{s:6:"fields";a:7:{s:9:"sort_name";s:1:"1";s:6:"amount";s:1:"1";s:22:"contribution_status_id";s:1:"1";s:18:"frequency_interval";s:1:"1";s:14:"frequency_unit";s:1:"1";s:12:"installments";s:1:"1";s:8:"end_date";s:1:"1";}s:25:"contribution_status_id_op";s:2:"in";s:28:"contribution_status_id_value";a:1:{i:0;s:1:"5";}s:11:"currency_op";s:2:"in";s:14:"currency_value";a:0:{}s:20:"financial_type_id_op";s:2:"in";s:23:"financial_type_id_value";a:0:{}s:17:"frequency_unit_op";s:2:"in";s:20:"frequency_unit_value";a:0:{}s:22:"frequency_interval_min";s:0:"";s:22:"frequency_interval_max";s:0:"";s:21:"frequency_interval_op";s:3:"lte";s:24:"frequency_interval_value";s:0:"";s:16:"installments_min";s:0:"";s:16:"installments_max";s:0:"";s:15:"installments_op";s:3:"lte";s:18:"installments_value";s:0:"";s:19:"start_date_relative";s:0:"";s:15:"start_date_from";s:0:"";s:13:"start_date_to";s:0:"";s:37:"next_sched_contribution_date_relative";s:0:"";s:33:"next_sched_contribution_date_from";s:0:"";s:31:"next_sched_contribution_date_to";s:0:"";s:17:"end_date_relative";s:0:"";s:13:"end_date_from";s:0:"";s:11:"end_date_to";s:0:"";s:28:"calculated_end_date_relative";s:0:"";s:24:"calculated_end_date_from";s:0:"";s:22:"calculated_end_date_to";s:0:"";s:9:"order_bys";a:1:{i:1;a:1:{s:6:"column";s:1:"-";}}s:11:"description";s:41:"Shows all pending recurring contributions";s:13:"email_subject";s:0:"";s:8:"email_to";s:0:"";s:8:"email_cc";s:0:"";s:9:"row_count";s:0:"";s:14:"addToDashboard";s:1:"1";s:10:"permission";s:21:"access CiviContribute";s:9:"parent_id";s:0:"";s:11:"instance_id";N;}');
-- Membership reports
INSERT INTO `civicrm_report_instance`
( `domain_id`, `title`, `report_id`, `description`, `permission`, `form_values`)
VALUES
( @domainID, 'Membership Summary', 'member/summary', 'Provides a summary of memberships by type and join date.', 'access CiviMember', 'a:18:{s:6:"fields";a:2:{s:18:"membership_type_id";s:1:"1";s:12:"total_amount";s:1:"1";}s:29:"membership_join_date_relative";s:1:"0";s:25:"membership_join_date_from";s:0:"";s:23:"membership_join_date_to";s:0:"";s:21:"membership_type_id_op";s:2:"in";s:24:"membership_type_id_value";a:0:{}s:12:"status_id_op";s:2:"in";s:15:"status_id_value";a:0:{}s:25:"contribution_status_id_op";s:2:"in";s:28:"contribution_status_id_value";a:0:{}s:9:"group_bys";a:2:{s:9:"join_date";s:1:"1";s:18:"membership_type_id";s:1:"1";}s:14:"group_bys_freq";a:1:{s:9:"join_date";s:5:"MONTH";}s:11:"description";s:56:"Provides a summary of memberships by type and join date.";s:13:"email_subject";s:0:"";s:8:"email_to";s:0:"";s:8:"email_cc";s:0:"";s:10:"permission";s:17:"access CiviMember";s:9:"domain_id";i:1;}');
INSERT INTO `civicrm_report_instance`
( `domain_id`, `title`, `report_id`, `description`, `permission`, `form_values`)
VALUES
( @domainID, 'Membership Details', 'member/detail', 'Provides a list of members along with their membership status and membership details (Join Date, Start Date, End Date). Can also display contributions (payments) associated with each membership.', 'access CiviMember', 'a:28:{s:6:"fields";a:5:{s:9:"sort_name";s:1:"1";s:18:"membership_type_id";s:1:"1";s:21:"membership_start_date";s:1:"1";s:19:"membership_end_date";s:1:"1";s:4:"name";s:1:"1";}s:12:"sort_name_op";s:3:"has";s:15:"sort_name_value";s:0:"";s:6:"id_min";s:0:"";s:6:"id_max";s:0:"";s:5:"id_op";s:3:"lte";s:8:"id_value";s:0:"";s:29:"membership_join_date_relative";s:1:"0";s:25:"membership_join_date_from";s:0:"";s:23:"membership_join_date_to";s:0:"";s:23:"owner_membership_id_min";s:0:"";s:23:"owner_membership_id_max";s:0:"";s:22:"owner_membership_id_op";s:3:"lte";s:25:"owner_membership_id_value";s:0:"";s:6:"tid_op";s:2:"in";s:9:"tid_value";a:0:{}s:6:"sid_op";s:2:"in";s:9:"sid_value";a:0:{}s:6:"gid_op";s:2:"in";s:9:"gid_value";a:0:{}s:8:"tagid_op";s:2:"in";s:11:"tagid_value";a:0:{}s:11:"description";s:119:"Provides a list of members along with their membership status and membership details (Join Date, Start Date, End Date).";s:13:"email_subject";s:0:"";s:8:"email_to";s:0:"";s:8:"email_cc";s:0:"";s:10:"permission";s:17:"access CiviMember";s:9:"domain_id";i:1;}');
INSERT INTO `civicrm_report_instance`
( `domain_id`, `title`, `report_id`, `description`, `permission`, `form_values`)
VALUES
( @domainID, 'Contribution and Membership Details', 'member/contributionDetail', 'Contribution details for any type of contribution, plus associated membership information for contributions which are in payment for memberships.', 'access CiviMember', 'a:67:{s:6:"fields";a:12:{s:9:"sort_name";s:1:"1";s:5:"email";s:1:"1";s:5:"phone";s:1:"1";s:17:"financial_type_id";s:1:"1";s:12:"receive_date";s:1:"1";s:12:"total_amount";s:1:"1";s:18:"membership_type_id";s:1:"1";s:21:"membership_start_date";s:1:"1";s:19:"membership_end_date";s:1:"1";s:9:"join_date";s:1:"1";s:22:"membership_status_name";s:1:"1";s:10:"country_id";s:1:"1";}s:12:"sort_name_op";s:3:"has";s:15:"sort_name_value";s:0:"";s:6:"id_min";s:0:"";s:6:"id_max";s:0:"";s:5:"id_op";s:3:"lte";s:8:"id_value";s:0:"";s:21:"receive_date_relative";s:1:"0";s:17:"receive_date_from";s:0:"";s:15:"receive_date_to";s:0:"";s:20:"financial_type_id_op";s:2:"in";s:23:"financial_type_id_value";a:0:{}s:24:"payment_instrument_id_op";s:2:"in";s:27:"payment_instrument_id_value";a:0:{}s:25:"contribution_status_id_op";s:2:"in";s:28:"contribution_status_id_value";a:0:{}s:16:"total_amount_min";s:0:"";s:16:"total_amount_max";s:0:"";s:15:"total_amount_op";s:3:"lte";s:18:"total_amount_value";s:0:"";s:6:"gid_op";s:2:"in";s:9:"gid_value";a:0:{}s:13:"ordinality_op";s:2:"in";s:16:"ordinality_value";a:0:{}s:29:"membership_join_date_relative";s:1:"0";s:25:"membership_join_date_from";s:0:"";s:23:"membership_join_date_to";s:0:"";s:30:"membership_start_date_relative";s:1:"0";s:26:"membership_start_date_from";s:0:"";s:24:"membership_start_date_to";s:0:"";s:28:"membership_end_date_relative";s:1:"0";s:24:"membership_end_date_from";s:0:"";s:22:"membership_end_date_to";s:0:"";s:23:"owner_membership_id_min";s:0:"";s:23:"owner_membership_id_max";s:0:"";s:22:"owner_membership_id_op";s:3:"lte";s:25:"owner_membership_id_value";s:0:"";s:6:"tid_op";s:2:"in";s:9:"tid_value";a:0:{}s:6:"sid_op";s:2:"in";s:9:"sid_value";a:0:{}s:17:"street_number_min";s:0:"";s:17:"street_number_max";s:0:"";s:16:"street_number_op";s:3:"lte";s:19:"street_number_value";s:0:"";s:14:"street_name_op";s:3:"has";s:17:"street_name_value";s:0:"";s:15:"postal_code_min";s:0:"";s:15:"postal_code_max";s:0:"";s:14:"postal_code_op";s:3:"lte";s:17:"postal_code_value";s:0:"";s:7:"city_op";s:3:"has";s:10:"city_value";s:0:"";s:12:"county_id_op";s:2:"in";s:15:"county_id_value";a:0:{}s:20:"state_province_id_op";s:2:"in";s:23:"state_province_id_value";a:0:{}s:13:"country_id_op";s:2:"in";s:16:"country_id_value";a:0:{}s:8:"tagid_op";s:2:"in";s:11:"tagid_value";a:0:{}s:11:"description";s:35:"Contribution and Membership Details";s:13:"email_subject";s:0:"";s:8:"email_to";s:0:"";s:8:"email_cc";s:0:"";s:10:"permission";s:1:"0";s:9:"domain_id";i:1;}{s:6:"fields";a:12:{s:9:"sort_name";s:1:"1";s:5:"email";s:1:"1";s:5:"phone";s:1:"1";s:17:"financial_type_id";s:1:"1";s:12:"receive_date";s:1:"1";s:12:"total_amount";s:1:"1";s:18:"membership_type_id";s:1:"1";s:21:"membership_start_date";s:1:"1";s:19:"membership_end_date";s:1:"1";s:9:"join_date";s:1:"1";s:22:"membership_status_name";s:1:"1";s:10:"country_id";s:1:"1";}s:12:"sort_name_op";s:3:"has";s:15:"sort_name_value";s:0:"";s:6:"id_min";s:0:"";s:6:"id_max";s:0:"";s:5:"id_op";s:3:"lte";s:8:"id_value";s:0:"";s:21:"receive_date_relative";s:1:"0";s:17:"receive_date_from";s:0:"";s:15:"receive_date_to";s:0:"";s:20:"financial_type_id_op";s:2:"in";s:23:"financial_type_id_value";a:0:{}s:24:"payment_instrument_id_op";s:2:"in";s:27:"payment_instrument_id_value";a:0:{}s:25:"contribution_status_id_op";s:2:"in";s:28:"contribution_status_id_value";a:0:{}s:16:"total_amount_min";s:0:"";s:16:"total_amount_max";s:0:"";s:15:"total_amount_op";s:3:"lte";s:18:"total_amount_value";s:0:"";s:6:"gid_op";s:2:"in";s:9:"gid_value";a:0:{}s:13:"ordinality_op";s:2:"in";s:16:"ordinality_value";a:0:{}s:29:"membership_join_date_relative";s:1:"0";s:25:"membership_join_date_from";s:0:"";s:23:"membership_join_date_to";s:0:"";s:30:"membership_start_date_relative";s:1:"0";s:26:"membership_start_date_from";s:0:"";s:24:"membership_start_date_to";s:0:"";s:28:"membership_end_date_relative";s:1:"0";s:24:"membership_end_date_from";s:0:"";s:22:"membership_end_date_to";s:0:"";s:23:"owner_membership_id_min";s:0:"";s:23:"owner_membership_id_max";s:0:"";s:22:"owner_membership_id_op";s:3:"lte";s:25:"owner_membership_id_value";s:0:"";s:6:"tid_op";s:2:"in";s:9:"tid_value";a:0:{}s:6:"sid_op";s:2:"in";s:9:"sid_value";a:0:{}s:17:"street_number_min";s:0:"";s:17:"street_number_max";s:0:"";s:16:"street_number_op";s:3:"lte";s:19:"street_number_value";s:0:"";s:14:"street_name_op";s:3:"has";s:17:"street_name_value";s:0:"";s:15:"postal_code_min";s:0:"";s:15:"postal_code_max";s:0:"";s:14:"postal_code_op";s:3:"lte";s:17:"postal_code_value";s:0:"";s:7:"city_op";s:3:"has";s:10:"city_value";s:0:"";s:12:"county_id_op";s:2:"in";s:15:"county_id_value";a:0:{}s:20:"state_province_id_op";s:2:"in";s:23:"state_province_id_value";a:0:{}s:13:"country_id_op";s:2:"in";s:16:"country_id_value";a:0:{}s:8:"tagid_op";s:2:"in";s:11:"tagid_value";a:0:{}s:11:"description";s:35:"Contribution and Membership Details";s:13:"email_subject";s:0:"";s:8:"email_to";s:0:"";s:8:"email_cc";s:0:"";s:10:"permission";s:17:"access CiviMember";s:9:"domain_id";i:1;}');
INSERT INTO `civicrm_report_instance`
( `domain_id`, `title`, `report_id`, `description`, `permission`, `form_values`)
VALUES
( @domainID, 'Lapsed Memberships', 'member/lapse', 'Provides a list of memberships that have lapsed or will lapse by the date you specify.', 'access CiviMember', 'a:16:{s:6:"fields";a:5:{s:9:"sort_name";s:1:"1";s:18:"membership_type_id";s:1:"1";s:19:"membership_end_date";s:1:"1";s:4:"name";s:1:"1";s:10:"country_id";s:1:"1";}s:6:"tid_op";s:2:"in";s:9:"tid_value";a:0:{}s:28:"membership_end_date_relative";s:1:"0";s:24:"membership_end_date_from";s:0:"";s:22:"membership_end_date_to";s:0:"";s:6:"gid_op";s:2:"in";s:9:"gid_value";a:0:{}s:8:"tagid_op";s:2:"in";s:11:"tagid_value";a:0:{}s:11:"description";s:85:"Provides a list of memberships that lapsed or will lapse before the date you specify.";s:13:"email_subject";s:0:"";s:8:"email_to";s:0:"";s:8:"email_cc";s:0:"";s:10:"permission";s:17:"access CiviMember";s:9:"domain_id";i:1;}');
-- Event reports
INSERT INTO `civicrm_report_instance`
( `domain_id`, `title`, `report_id`, `description`, `permission`, `form_values`)
VALUES
( @domainID, 'Event Participants List', 'event/participantListing', 'Provides lists of participants for an event.', 'access CiviEvent', 'a:27:{s:6:"fields";a:4:{s:9:"sort_name";s:1:"1";s:8:"event_id";s:1:"1";s:9:"status_id";s:1:"1";s:7:"role_id";s:1:"1";}s:12:"sort_name_op";s:3:"has";s:15:"sort_name_value";s:0:"";s:8:"email_op";s:3:"has";s:11:"email_value";s:0:"";s:11:"event_id_op";s:2:"in";s:14:"event_id_value";a:0:{}s:6:"sid_op";s:2:"in";s:9:"sid_value";a:0:{}s:6:"rid_op";s:2:"in";s:9:"rid_value";a:0:{}s:34:"participant_register_date_relative";s:1:"0";s:30:"participant_register_date_from";s:0:"";s:28:"participant_register_date_to";s:0:"";s:6:"eid_op";s:2:"in";s:9:"eid_value";a:0:{}s:11:"custom_4_op";s:2:"in";s:14:"custom_4_value";a:0:{}s:16:"blank_column_end";s:0:"";s:11:"description";s:44:"Provides lists of participants for an event.";s:13:"email_subject";s:0:"";s:8:"email_to";s:0:"";s:8:"email_cc";s:0:"";s:10:"permission";s:16:"access CiviEvent";s:6:"groups";s:0:"";s:7:"options";N;s:9:"domain_id";i:1;}');
INSERT INTO `civicrm_report_instance`
( `domain_id`, `title`, `report_id`, `description`, `permission`, `form_values`)
VALUES
( @domainID, 'Event Income Summary', 'event/summary', 'Provides an overview of event income. You can include key information such as event ID, registration, attendance, and income generated to help you determine the success of an event.', 'access CiviEvent', 'a:18:{s:6:"fields";a:2:{s:5:"title";s:1:"1";s:13:"event_type_id";s:1:"1";}s:5:"id_op";s:2:"in";s:8:"id_value";a:0:{}s:16:"event_type_id_op";s:2:"in";s:19:"event_type_id_value";a:0:{}s:25:"event_start_date_relative";s:1:"0";s:21:"event_start_date_from";s:0:"";s:19:"event_start_date_to";s:0:"";s:23:"event_end_date_relative";s:1:"0";s:19:"event_end_date_from";s:0:"";s:17:"event_end_date_to";s:0:"";s:11:"description";s:181:"Provides an overview of event income. You can include key information such as event ID, registration, attendance, and income generated to help you determine the success of an event.";s:13:"email_subject";s:0:"";s:8:"email_to";s:0:"";s:8:"email_cc";s:0:"";s:10:"permission";s:16:"access CiviEvent";s:6:"charts";s:0:"";s:9:"domain_id";i:1;}');
INSERT INTO `civicrm_report_instance`
( `domain_id`, `title`, `report_id`, `description`, `permission`, `form_values`)
VALUES
( @domainID, 'Event Income Details', 'event/income', 'Helps you to analyze the income generated by an event. The report can include details by participant type, status and payment method.', 'access CiviEvent', 'a:7:{s:5:"id_op";s:2:"in";s:8:"id_value";N;s:11:"description";s:133:"Helps you to analyze the income generated by an event. The report can include details by participant type, status and payment method.";s:13:"email_subject";s:0:"";s:8:"email_to";s:0:"";s:8:"email_cc";s:0:"";s:10:"permission";s:16:"access CiviEvent";}');
INSERT INTO `civicrm_report_instance`
( `domain_id`, `title`, `report_id`, `description`, `permission`, `form_values`)
VALUES
( @domainID, 'Attendee List', 'event/participantListing', 'Provides lists of event attendees.', 'access CiviEvent', 'a:27:{s:6:"fields";a:4:{s:9:"sort_name";s:1:"1";s:8:"event_id";s:1:"1";s:9:"status_id";s:1:"1";s:7:"role_id";s:1:"1";}s:12:"sort_name_op";s:3:"has";s:15:"sort_name_value";s:0:"";s:8:"email_op";s:3:"has";s:11:"email_value";s:0:"";s:11:"event_id_op";s:2:"in";s:14:"event_id_value";a:0:{}s:6:"sid_op";s:2:"in";s:9:"sid_value";a:0:{}s:6:"rid_op";s:2:"in";s:9:"rid_value";a:0:{}s:34:"participant_register_date_relative";s:1:"0";s:30:"participant_register_date_from";s:0:"";s:28:"participant_register_date_to";s:0:"";s:6:"eid_op";s:2:"in";s:9:"eid_value";a:0:{}s:11:"custom_4_op";s:2:"in";s:14:"custom_4_value";a:0:{}s:16:"blank_column_end";s:0:"";s:11:"description";s:44:"Provides lists of participants for an event.";s:13:"email_subject";s:0:"";s:8:"email_to";s:0:"";s:8:"email_cc";s:0:"";s:10:"permission";s:16:"access CiviEvent";s:6:"groups";s:0:"";s:7:"options";N;s:9:"domain_id";i:1;}');
-- Grant reports
INSERT INTO `civicrm_report_instance`
( `domain_id`, `title`, `report_id`, `description`, `permission`, `form_values`)
VALUES
( @domainID, 'Grant Details', 'grant/detail', 'Grant Report Detail', 'access CiviGrant', 'a:40:{s:6:"fields";a:2:{s:9:"sort_name";s:1:"1";s:25:"application_received_date";s:1:"1";}s:12:"sort_name_op";s:3:"has";s:15:"sort_name_value";s:0:"";s:12:"gender_id_op";s:2:"in";s:15:"gender_id_value";a:0:{}s:6:"id_min";s:0:"";s:6:"id_max";s:0:"";s:5:"id_op";s:3:"lte";s:8:"id_value";s:0:"";s:13:"country_id_op";s:2:"in";s:16:"country_id_value";a:0:{}s:20:"state_province_id_op";s:2:"in";s:23:"state_province_id_value";a:0:{}s:13:"grant_type_op";s:2:"in";s:16:"grant_type_value";a:0:{}s:12:"status_id_op";s:2:"in";s:15:"status_id_value";a:0:{}s:18:"amount_granted_min";s:0:"";s:18:"amount_granted_max";s:0:"";s:17:"amount_granted_op";s:3:"lte";s:20:"amount_granted_value";s:0:"";s:20:"amount_requested_min";s:0:"";s:20:"amount_requested_max";s:0:"";s:19:"amount_requested_op";s:3:"lte";s:22:"amount_requested_value";s:0:"";s:34:"application_received_date_relative";s:1:"0";s:30:"application_received_date_from";s:0:"";s:28:"application_received_date_to";s:0:"";s:28:"money_transfer_date_relative";s:1:"0";s:24:"money_transfer_date_from";s:0:"";s:22:"money_transfer_date_to";s:0:"";s:23:"grant_due_date_relative";s:1:"0";s:19:"grant_due_date_from";s:0:"";s:17:"grant_due_date_to";s:0:"";s:11:"description";s:19:"Grant Report Detail";s:13:"email_subject";s:0:"";s:8:"email_to";s:0:"";s:8:"email_cc";s:0:"";s:10:"permission";s:16:"access CiviGrant";s:9:"domain_id";i:1;}');
INSERT INTO `civicrm_report_instance`
( `domain_id`, `title`, `report_id`, `description`, `permission`, `form_values`)
VALUES
( @domainID, 'Grant Statistics', 'grant/statistics', 'Grant Report Statistics', 'access CiviGrant', 'a:42:{s:6:"fields";a:2:{s:18:"summary_statistics";s:1:"1";s:13:"grant_type_id";s:1:"1";}s:34:"application_received_date_relative";s:1:"0";s:30:"application_received_date_from";s:0:"";s:28:"application_received_date_to";s:0:"";s:22:"decision_date_relative";s:1:"0";s:18:"decision_date_from";s:0:"";s:16:"decision_date_to";s:0:"";s:28:"money_transfer_date_relative";s:1:"0";s:24:"money_transfer_date_from";s:0:"";s:22:"money_transfer_date_to";s:0:"";s:23:"grant_due_date_relative";s:1:"0";s:19:"grant_due_date_from";s:0:"";s:17:"grant_due_date_to";s:0:"";s:13:"grant_type_op";s:2:"in";s:16:"grant_type_value";a:0:{}s:12:"status_id_op";s:2:"in";s:15:"status_id_value";a:0:{}s:20:"amount_requested_min";s:0:"";s:20:"amount_requested_max";s:0:"";s:19:"amount_requested_op";s:3:"lte";s:22:"amount_requested_value";s:0:"";s:18:"amount_granted_min";s:0:"";s:18:"amount_granted_max";s:0:"";s:17:"amount_granted_op";s:3:"lte";s:20:"amount_granted_value";s:0:"";s:24:"grant_report_received_op";s:2:"eq";s:27:"grant_report_received_value";s:0:"";s:12:"gender_id_op";s:2:"in";s:15:"gender_id_value";a:0:{}s:15:"contact_type_op";s:2:"in";s:18:"contact_type_value";a:0:{}s:12:"region_id_op";s:2:"in";s:15:"region_id_value";a:0:{}s:13:"country_id_op";s:2:"in";s:16:"country_id_value";a:0:{}s:11:"description";s:23:"Grant Report Statistics";s:13:"email_subject";s:0:"";s:8:"email_to";s:0:"";s:8:"email_cc";s:0:"";s:10:"permission";s:16:"access CiviGrant";s:9:"parent_id";s:0:"";s:9:"domain_id";i:1;}');
-- Mailing Reports
INSERT INTO `civicrm_report_instance`
( `domain_id`, `title`, `report_id`, `description`, `permission`, `form_values`)
VALUES
( @domainID, 'Mail Bounces', 'Mailing/bounce', 'Bounce Report for mailings', 'access CiviMail', 'a:33:{s:6:"fields";a:5:{s:2:"id";s:1:"1";s:10:"first_name";s:1:"1";s:9:"last_name";s:1:"1";s:11:"bounce_name";s:1:"1";s:5:"email";s:1:"1";}s:12:"sort_name_op";s:3:"has";s:15:"sort_name_value";s:0:"";s:9:"source_op";s:3:"has";s:12:"source_value";s:0:"";s:6:"id_min";s:0:"";s:6:"id_max";s:0:"";s:5:"id_op";s:3:"lte";s:8:"id_value";s:0:"";s:15:"mailing_name_op";s:2:"in";s:18:"mailing_name_value";a:0:{}s:19:"bounce_type_name_op";s:2:"eq";s:22:"bounce_type_name_value";s:0:"";s:6:"gid_op";s:2:"in";s:9:"gid_value";a:0:{}s:8:"tagid_op";s:2:"in";s:11:"tagid_value";a:0:{}s:11:"custom_1_op";s:2:"in";s:14:"custom_1_value";a:0:{}s:11:"custom_2_op";s:2:"in";s:14:"custom_2_value";a:0:{}s:17:"custom_3_relative";s:1:"0";s:13:"custom_3_from";s:0:"";s:11:"custom_3_to";s:0:"";s:9:"order_bys";a:1:{i:1;a:1:{s:6:"column";s:1:"-";}}s:11:"description";s:26:"Bounce Report for mailings";s:13:"email_subject";s:0:"";s:8:"email_to";s:0:"";s:8:"email_cc";s:0:"";s:10:"permission";s:15:"access CiviMail";s:6:"groups";s:0:"";s:6:"charts";s:0:"";s:9:"domain_id";i:1;}');
INSERT INTO `civicrm_report_instance`
( `domain_id`, `title`, `report_id`, `description`, `permission`, `form_values`)
VALUES
( @domainID, 'Mailing Summary', 'Mailing/summary','Summary statistics for mailings', 'access CiviMail','a:25:{s:6:"fields";a:5:{s:4:"name";s:1:"1";s:11:"queue_count";s:1:"1";s:15:"delivered_count";s:1:"1";s:12:"bounce_count";s:1:"1";s:17:"unique_open_count";s:1:"1";}s:15:"is_completed_op";s:2:"eq";s:18:"is_completed_value";s:1:"1";s:15:"mailing_name_op";s:2:"in";s:18:"mailing_name_value";a:0:{}s:9:"status_op";s:3:"has";s:12:"status_value";s:8:"Complete";s:11:"is_test_min";s:0:"";s:11:"is_test_max";s:0:"";s:10:"is_test_op";s:3:"lte";s:13:"is_test_value";s:1:"0";s:19:"start_date_relative";s:9:"this.year";s:15:"start_date_from";s:0:"";s:13:"start_date_to";s:0:"";s:17:"end_date_relative";s:9:"this.year";s:13:"end_date_from";s:0:"";s:11:"end_date_to";s:0:"";s:11:"description";s:31:"Summary statistics for mailings";s:13:"email_subject";s:0:"";s:8:"email_to";s:0:"";s:8:"email_cc";s:0:"";s:10:"permission";s:15:"access CiviMail";s:6:"groups";s:0:"";s:6:"charts";s:0:"";s:9:"domain_id";i:1;}');
INSERT INTO `civicrm_report_instance`
( `domain_id`, `title`, `report_id`, `description`, `permission`, `form_values`)
VALUES
( @domainID, 'Mail Opened', 'Mailing/opened', 'Display contacts who opened emails from a mailing', 'access CiviMail', 'a:31:{s:6:"fields";a:5:{s:2:"id";s:1:"1";s:10:"first_name";s:1:"1";s:9:"last_name";s:1:"1";s:12:"mailing_name";s:1:"1";s:5:"email";s:1:"1";}s:12:"sort_name_op";s:3:"has";s:15:"sort_name_value";s:0:"";s:9:"source_op";s:3:"has";s:12:"source_value";s:0:"";s:6:"id_min";s:0:"";s:6:"id_max";s:0:"";s:5:"id_op";s:3:"lte";s:8:"id_value";s:0:"";s:15:"mailing_name_op";s:2:"in";s:18:"mailing_name_value";a:0:{}s:6:"gid_op";s:2:"in";s:9:"gid_value";a:0:{}s:8:"tagid_op";s:2:"in";s:11:"tagid_value";a:0:{}s:11:"custom_1_op";s:2:"in";s:14:"custom_1_value";a:0:{}s:11:"custom_2_op";s:2:"in";s:14:"custom_2_value";a:0:{}s:17:"custom_3_relative";s:1:"0";s:13:"custom_3_from";s:0:"";s:11:"custom_3_to";s:0:"";s:9:"order_bys";a:1:{i:1;a:1:{s:6:"column";s:1:"-";}}s:11:"description";s:49:"Display contacts who opened emails from a mailing";s:13:"email_subject";s:0:"";s:8:"email_to";s:0:"";s:8:"email_cc";s:0:"";s:10:"permission";s:15:"access CiviMail";s:6:"groups";s:0:"";s:6:"charts";s:0:"";s:9:"domain_id";i:1;}');
INSERT INTO `civicrm_report_instance`
( `domain_id`, `title`, `report_id`, `description`, `permission`, `form_values`)
VALUES
( @domainID, 'Mail Clickthroughs', 'Mailing/clicks', 'Display clicks from each mailing', 'access CiviMail', 'a:31:{s:6:"fields";a:6:{s:2:"id";s:1:"1";s:10:"first_name";s:1:"1";s:9:"last_name";s:1:"1";s:12:"mailing_name";s:1:"1";s:5:"email";s:1:"1";s:3:"url";s:1:"1";}s:12:"sort_name_op";s:3:"has";s:15:"sort_name_value";s:0:"";s:9:"source_op";s:3:"has";s:12:"source_value";s:0:"";s:6:"id_min";s:0:"";s:6:"id_max";s:0:"";s:5:"id_op";s:3:"lte";s:8:"id_value";s:0:"";s:15:"mailing_name_op";s:2:"in";s:18:"mailing_name_value";a:0:{}s:6:"gid_op";s:2:"in";s:9:"gid_value";a:0:{}s:8:"tagid_op";s:2:"in";s:11:"tagid_value";a:0:{}s:11:"custom_1_op";s:2:"in";s:14:"custom_1_value";a:0:{}s:11:"custom_2_op";s:2:"in";s:14:"custom_2_value";a:0:{}s:17:"custom_3_relative";s:1:"0";s:13:"custom_3_from";s:0:"";s:11:"custom_3_to";s:0:"";s:9:"order_bys";a:1:{i:1;a:1:{s:6:"column";s:1:"-";}}s:11:"description";s:32:"Display clicks from each mailing";s:13:"email_subject";s:0:"";s:8:"email_to";s:0:"";s:8:"email_cc";s:0:"";s:10:"permission";s:15:"access CiviMail";s:6:"groups";s:0:"";s:6:"charts";s:0:"";s:9:"domain_id";i:1;}');
INSERT INTO `civicrm_report_instance`
( `domain_id`, `title`, `report_id`, `description`, `permission`, `form_values`)
VALUES
( @domainID, 'Mailing Details', 'mailing/detail', 'Provides reporting on Intended and Successful Deliveries, Unsubscribes and Opt-outs, Replies and Forwards.', 'access CiviMail', 'a:30:{s:6:"fields";a:6:{s:9:"sort_name";s:1:"1";s:12:"mailing_name";s:1:"1";s:11:"delivery_id";s:1:"1";s:14:"unsubscribe_id";s:1:"1";s:9:"optout_id";s:1:"1";s:5:"email";s:1:"1";}s:12:"sort_name_op";s:3:"has";s:15:"sort_name_value";s:0:"";s:6:"id_min";s:0:"";s:6:"id_max";s:0:"";s:5:"id_op";s:3:"lte";s:8:"id_value";s:0:"";s:13:"mailing_id_op";s:2:"in";s:16:"mailing_id_value";a:0:{}s:18:"delivery_status_op";s:2:"eq";s:21:"delivery_status_value";s:0:"";s:18:"is_unsubscribed_op";s:2:"eq";s:21:"is_unsubscribed_value";s:0:"";s:12:"is_optout_op";s:2:"eq";s:15:"is_optout_value";s:0:"";s:13:"is_replied_op";s:2:"eq";s:16:"is_replied_value";s:0:"";s:15:"is_forwarded_op";s:2:"eq";s:18:"is_forwarded_value";s:0:"";s:6:"gid_op";s:2:"in";s:9:"gid_value";a:0:{}s:9:"order_bys";a:1:{i:1;a:2:{s:6:"column";s:9:"sort_name";s:5:"order";s:3:"ASC";}}s:11:"description";s:21:"Mailing Detail Report";s:13:"email_subject";s:0:"";s:8:"email_to";s:0:"";s:8:"email_cc";s:0:"";s:10:"permission";s:15:"access CiviMail";s:9:"parent_id";s:0:"";s:6:"groups";s:0:"";s:9:"domain_id";i:1;}');
-- walk list survey report.
INSERT INTO `civicrm_report_instance`
( `domain_id`, `title`, `report_id`, `description`, `permission`, `form_values`)
VALUES
( @domainID, 'Survey Details', 'survey/detail', 'Detailed report for canvassing, phone-banking, walk lists or other surveys.', 'access CiviReport', 'a:39:{s:6:"fields";a:2:{s:9:"sort_name";s:1:"1";s:6:"result";s:1:"1";}s:22:"assignee_contact_id_op";s:2:"eq";s:25:"assignee_contact_id_value";s:0:"";s:12:"sort_name_op";s:3:"has";s:15:"sort_name_value";s:0:"";s:17:"street_number_min";s:0:"";s:17:"street_number_max";s:0:"";s:16:"street_number_op";s:3:"lte";s:19:"street_number_value";s:0:"";s:14:"street_name_op";s:3:"has";s:17:"street_name_value";s:0:"";s:15:"postal_code_min";s:0:"";s:15:"postal_code_max";s:0:"";s:14:"postal_code_op";s:3:"lte";s:17:"postal_code_value";s:0:"";s:7:"city_op";s:3:"has";s:10:"city_value";s:0:"";s:20:"state_province_id_op";s:2:"in";s:23:"state_province_id_value";a:0:{}s:13:"country_id_op";s:2:"in";s:16:"country_id_value";a:0:{}s:12:"survey_id_op";s:2:"in";s:15:"survey_id_value";a:0:{}s:12:"status_id_op";s:2:"eq";s:15:"status_id_value";s:1:"1";s:11:"custom_1_op";s:2:"in";s:14:"custom_1_value";a:0:{}s:11:"custom_2_op";s:2:"in";s:14:"custom_2_value";a:0:{}s:17:"custom_3_relative";s:1:"0";s:13:"custom_3_from";s:0:"";s:11:"custom_3_to";s:0:"";s:11:"description";s:75:"Detailed report for canvassing, phone-banking, walk lists or other surveys.";s:13:"email_subject";s:0:"";s:8:"email_to";s:0:"";s:8:"email_cc";s:0:"";s:10:"permission";s:17:"access CiviReport";s:6:"groups";s:0:"";s:9:"domain_id";i:1;}');
UPDATE civicrm_domain SET version = '5.24.4';
|