Remove ancient upgrade scripts part 2
authorColeman Watts <coleman@civicrm.org>
Mon, 19 Jan 2015 15:51:39 +0000 (10:51 -0500)
committerColeman Watts <coleman@civicrm.org>
Mon, 19 Jan 2015 15:51:39 +0000 (10:51 -0500)
142 files changed:
CRM/Upgrade/3.1.5.msg_template/civicrm_msg_template.tpl [deleted file]
CRM/Upgrade/3.1.5.msg_template/message_templates/event_online_receipt_html.tpl [deleted file]
CRM/Upgrade/3.1.5.msg_template/message_templates/event_online_receipt_text.tpl [deleted file]
CRM/Upgrade/3.1.alpha1.msg_template/civicrm_msg_template.tpl [deleted file]
CRM/Upgrade/3.1.alpha1.msg_template/message_templates/case_activity_html.tpl [deleted file]
CRM/Upgrade/3.1.alpha1.msg_template/message_templates/case_activity_subject.tpl [deleted file]
CRM/Upgrade/3.1.alpha1.msg_template/message_templates/case_activity_text.tpl [deleted file]
CRM/Upgrade/3.1.alpha1.msg_template/message_templates/contribution_dupalert_html.tpl [deleted file]
CRM/Upgrade/3.1.alpha1.msg_template/message_templates/contribution_dupalert_subject.tpl [deleted file]
CRM/Upgrade/3.1.alpha1.msg_template/message_templates/contribution_dupalert_text.tpl [deleted file]
CRM/Upgrade/3.1.alpha1.msg_template/message_templates/contribution_offline_receipt_html.tpl [deleted file]
CRM/Upgrade/3.1.alpha1.msg_template/message_templates/contribution_offline_receipt_subject.tpl [deleted file]
CRM/Upgrade/3.1.alpha1.msg_template/message_templates/contribution_offline_receipt_text.tpl [deleted file]
CRM/Upgrade/3.1.alpha1.msg_template/message_templates/contribution_online_receipt_html.tpl [deleted file]
CRM/Upgrade/3.1.alpha1.msg_template/message_templates/contribution_online_receipt_subject.tpl [deleted file]
CRM/Upgrade/3.1.alpha1.msg_template/message_templates/contribution_online_receipt_text.tpl [deleted file]
CRM/Upgrade/3.1.alpha1.msg_template/message_templates/contribution_recurring_notify_html.tpl [deleted file]
CRM/Upgrade/3.1.alpha1.msg_template/message_templates/contribution_recurring_notify_subject.tpl [deleted file]
CRM/Upgrade/3.1.alpha1.msg_template/message_templates/contribution_recurring_notify_text.tpl [deleted file]
CRM/Upgrade/3.1.alpha1.msg_template/message_templates/event_offline_receipt_html.tpl [deleted file]
CRM/Upgrade/3.1.alpha1.msg_template/message_templates/event_offline_receipt_subject.tpl [deleted file]
CRM/Upgrade/3.1.alpha1.msg_template/message_templates/event_offline_receipt_text.tpl [deleted file]
CRM/Upgrade/3.1.alpha1.msg_template/message_templates/event_online_receipt_html.tpl [deleted file]
CRM/Upgrade/3.1.alpha1.msg_template/message_templates/event_online_receipt_subject.tpl [deleted file]
CRM/Upgrade/3.1.alpha1.msg_template/message_templates/event_online_receipt_text.tpl [deleted file]
CRM/Upgrade/3.1.alpha1.msg_template/message_templates/friend_html.tpl [deleted file]
CRM/Upgrade/3.1.alpha1.msg_template/message_templates/friend_subject.tpl [deleted file]
CRM/Upgrade/3.1.alpha1.msg_template/message_templates/friend_text.tpl [deleted file]
CRM/Upgrade/3.1.alpha1.msg_template/message_templates/membership_offline_receipt_html.tpl [deleted file]
CRM/Upgrade/3.1.alpha1.msg_template/message_templates/membership_offline_receipt_subject.tpl [deleted file]
CRM/Upgrade/3.1.alpha1.msg_template/message_templates/membership_offline_receipt_text.tpl [deleted file]
CRM/Upgrade/3.1.alpha1.msg_template/message_templates/membership_online_receipt_html.tpl [deleted file]
CRM/Upgrade/3.1.alpha1.msg_template/message_templates/membership_online_receipt_subject.tpl [deleted file]
CRM/Upgrade/3.1.alpha1.msg_template/message_templates/membership_online_receipt_text.tpl [deleted file]
CRM/Upgrade/3.1.alpha1.msg_template/message_templates/participant_cancelled_html.tpl [deleted file]
CRM/Upgrade/3.1.alpha1.msg_template/message_templates/participant_cancelled_subject.tpl [deleted file]
CRM/Upgrade/3.1.alpha1.msg_template/message_templates/participant_cancelled_text.tpl [deleted file]
CRM/Upgrade/3.1.alpha1.msg_template/message_templates/participant_confirm_html.tpl [deleted file]
CRM/Upgrade/3.1.alpha1.msg_template/message_templates/participant_confirm_subject.tpl [deleted file]
CRM/Upgrade/3.1.alpha1.msg_template/message_templates/participant_confirm_text.tpl [deleted file]
CRM/Upgrade/3.1.alpha1.msg_template/message_templates/participant_expired_html.tpl [deleted file]
CRM/Upgrade/3.1.alpha1.msg_template/message_templates/participant_expired_subject.tpl [deleted file]
CRM/Upgrade/3.1.alpha1.msg_template/message_templates/participant_expired_text.tpl [deleted file]
CRM/Upgrade/3.1.alpha1.msg_template/message_templates/pcp_notify_html.tpl [deleted file]
CRM/Upgrade/3.1.alpha1.msg_template/message_templates/pcp_notify_subject.tpl [deleted file]
CRM/Upgrade/3.1.alpha1.msg_template/message_templates/pcp_notify_text.tpl [deleted file]
CRM/Upgrade/3.1.alpha1.msg_template/message_templates/pcp_status_change_html.tpl [deleted file]
CRM/Upgrade/3.1.alpha1.msg_template/message_templates/pcp_status_change_subject.tpl [deleted file]
CRM/Upgrade/3.1.alpha1.msg_template/message_templates/pcp_status_change_text.tpl [deleted file]
CRM/Upgrade/3.1.alpha1.msg_template/message_templates/pcp_supporter_notify_html.tpl [deleted file]
CRM/Upgrade/3.1.alpha1.msg_template/message_templates/pcp_supporter_notify_subject.tpl [deleted file]
CRM/Upgrade/3.1.alpha1.msg_template/message_templates/pcp_supporter_notify_text.tpl [deleted file]
CRM/Upgrade/3.1.alpha1.msg_template/message_templates/pledge_acknowledge_html.tpl [deleted file]
CRM/Upgrade/3.1.alpha1.msg_template/message_templates/pledge_acknowledge_subject.tpl [deleted file]
CRM/Upgrade/3.1.alpha1.msg_template/message_templates/pledge_acknowledge_text.tpl [deleted file]
CRM/Upgrade/3.1.alpha1.msg_template/message_templates/pledge_reminder_html.tpl [deleted file]
CRM/Upgrade/3.1.alpha1.msg_template/message_templates/pledge_reminder_subject.tpl [deleted file]
CRM/Upgrade/3.1.alpha1.msg_template/message_templates/pledge_reminder_text.tpl [deleted file]
CRM/Upgrade/3.1.alpha1.msg_template/message_templates/test_preview_html.tpl [deleted file]
CRM/Upgrade/3.1.alpha1.msg_template/message_templates/test_preview_subject.tpl [deleted file]
CRM/Upgrade/3.1.alpha1.msg_template/message_templates/test_preview_text.tpl [deleted file]
CRM/Upgrade/3.1.alpha1.msg_template/message_templates/uf_notify_html.tpl [deleted file]
CRM/Upgrade/3.1.alpha1.msg_template/message_templates/uf_notify_subject.tpl [deleted file]
CRM/Upgrade/3.1.alpha1.msg_template/message_templates/uf_notify_text.tpl [deleted file]
CRM/Upgrade/3.1.alpha2.msg_template/civicrm_msg_template.tpl [deleted file]
CRM/Upgrade/3.1.alpha2.msg_template/message_templates/case_activity_html.tpl [deleted file]
CRM/Upgrade/3.1.alpha2.msg_template/message_templates/contribution_dupalert_html.tpl [deleted file]
CRM/Upgrade/3.1.alpha2.msg_template/message_templates/contribution_offline_receipt_html.tpl [deleted file]
CRM/Upgrade/3.1.alpha2.msg_template/message_templates/contribution_online_receipt_html.tpl [deleted file]
CRM/Upgrade/3.1.alpha2.msg_template/message_templates/contribution_recurring_notify_html.tpl [deleted file]
CRM/Upgrade/3.1.alpha2.msg_template/message_templates/event_offline_receipt_html.tpl [deleted file]
CRM/Upgrade/3.1.alpha2.msg_template/message_templates/event_online_receipt_html.tpl [deleted file]
CRM/Upgrade/3.1.alpha2.msg_template/message_templates/friend_html.tpl [deleted file]
CRM/Upgrade/3.1.alpha2.msg_template/message_templates/membership_offline_receipt_html.tpl [deleted file]
CRM/Upgrade/3.1.alpha2.msg_template/message_templates/membership_online_receipt_html.tpl [deleted file]
CRM/Upgrade/3.1.alpha2.msg_template/message_templates/participant_cancelled_html.tpl [deleted file]
CRM/Upgrade/3.1.alpha2.msg_template/message_templates/participant_confirm_html.tpl [deleted file]
CRM/Upgrade/3.1.alpha2.msg_template/message_templates/participant_confirm_text.tpl [deleted file]
CRM/Upgrade/3.1.alpha2.msg_template/message_templates/participant_expired_html.tpl [deleted file]
CRM/Upgrade/3.1.alpha2.msg_template/message_templates/pcp_notify_html.tpl [deleted file]
CRM/Upgrade/3.1.alpha2.msg_template/message_templates/pcp_status_change_html.tpl [deleted file]
CRM/Upgrade/3.1.alpha2.msg_template/message_templates/pcp_supporter_notify_html.tpl [deleted file]
CRM/Upgrade/3.1.alpha2.msg_template/message_templates/pledge_acknowledge_html.tpl [deleted file]
CRM/Upgrade/3.1.alpha2.msg_template/message_templates/pledge_reminder_html.tpl [deleted file]
CRM/Upgrade/3.1.alpha2.msg_template/message_templates/uf_notify_html.tpl [deleted file]
CRM/Upgrade/3.1.beta1.msg_template/civicrm_msg_template.tpl [deleted file]
CRM/Upgrade/3.1.beta1.msg_template/message_templates/contribution_online_receipt_html.tpl [deleted file]
CRM/Upgrade/3.1.beta1.msg_template/message_templates/contribution_online_receipt_text.tpl [deleted file]
CRM/Upgrade/3.1.beta1.msg_template/message_templates/event_offline_receipt_html.tpl [deleted file]
CRM/Upgrade/3.1.beta1.msg_template/message_templates/event_offline_receipt_text.tpl [deleted file]
CRM/Upgrade/3.1.beta1.msg_template/message_templates/event_online_receipt_html.tpl [deleted file]
CRM/Upgrade/3.1.beta1.msg_template/message_templates/event_online_receipt_text.tpl [deleted file]
CRM/Upgrade/3.1.beta1.msg_template/message_templates/membership_online_receipt_html.tpl [deleted file]
CRM/Upgrade/3.1.beta1.msg_template/message_templates/membership_online_receipt_text.tpl [deleted file]
CRM/Upgrade/3.1.beta1.msg_template/message_templates/participant_cancelled_html.tpl [deleted file]
CRM/Upgrade/3.1.beta1.msg_template/message_templates/participant_cancelled_text.tpl [deleted file]
CRM/Upgrade/3.1.beta1.msg_template/message_templates/participant_expired_html.tpl [deleted file]
CRM/Upgrade/3.1.beta1.msg_template/message_templates/participant_expired_text.tpl [deleted file]
CRM/Upgrade/3.1.beta2.msg_template/civicrm_msg_template.tpl [deleted file]
CRM/Upgrade/3.1.beta2.msg_template/message_templates/contribution_offline_receipt_subject.tpl [deleted file]
CRM/Upgrade/3.1.beta2.msg_template/message_templates/membership_offline_receipt_subject.tpl [deleted file]
CRM/Upgrade/3.1.beta4.msg_template/civicrm_msg_template.tpl [deleted file]
CRM/Upgrade/3.1.beta4.msg_template/message_templates/event_online_receipt_text.tpl [deleted file]
CRM/Upgrade/3.1.beta4.msg_template/message_templates/pcp_status_change_html.tpl [deleted file]
CRM/Upgrade/3.1.beta4.msg_template/message_templates/pcp_status_change_text.tpl [deleted file]
CRM/Upgrade/Incremental/sql/2.1.2.mysql [deleted file]
CRM/Upgrade/Incremental/sql/2.2.0.mysql.tpl [deleted file]
CRM/Upgrade/Incremental/sql/2.2.1.mysql.tpl [deleted file]
CRM/Upgrade/Incremental/sql/2.2.3.mysql.tpl [deleted file]
CRM/Upgrade/Incremental/sql/2.2.6.mysql.tpl [deleted file]
CRM/Upgrade/Incremental/sql/2.2.7.mysql.tpl [deleted file]
CRM/Upgrade/Incremental/sql/2.2.alpha1.mysql.tpl [deleted file]
CRM/Upgrade/Incremental/sql/2.2.alpha3.mysql.tpl [deleted file]
CRM/Upgrade/Incremental/sql/2.2.beta1.mysql.tpl [deleted file]
CRM/Upgrade/Incremental/sql/2.2.beta2.mysql.tpl [deleted file]
CRM/Upgrade/Incremental/sql/2.2.beta3.mysql.tpl [deleted file]
CRM/Upgrade/Incremental/sql/2.2.beta4.mysql.tpl [deleted file]
CRM/Upgrade/Incremental/sql/3.0.0.mysql.tpl [deleted file]
CRM/Upgrade/Incremental/sql/3.0.1.mysql.tpl [deleted file]
CRM/Upgrade/Incremental/sql/3.0.2.mysql.tpl [deleted file]
CRM/Upgrade/Incremental/sql/3.0.3.mysql.tpl [deleted file]
CRM/Upgrade/Incremental/sql/3.0.4.mysql.tpl [deleted file]
CRM/Upgrade/Incremental/sql/3.0.5.mysql.tpl [deleted file]
CRM/Upgrade/Incremental/sql/3.0.alpha1.mysql.tpl [deleted file]
CRM/Upgrade/Incremental/sql/3.0.alpha2.mysql.tpl [deleted file]
CRM/Upgrade/Incremental/sql/3.0.alpha3.mysql.tpl [deleted file]
CRM/Upgrade/Incremental/sql/3.0.beta1.mysql.tpl [deleted file]
CRM/Upgrade/Incremental/sql/3.0.beta2.mysql.tpl [deleted file]
CRM/Upgrade/Incremental/sql/3.0.beta4.mysql.tpl [deleted file]
CRM/Upgrade/Incremental/sql/3.0.beta5.mysql.tpl [deleted file]
CRM/Upgrade/Incremental/sql/3.1.0.mysql.tpl [deleted file]
CRM/Upgrade/Incremental/sql/3.1.3.mysql.tpl [deleted file]
CRM/Upgrade/Incremental/sql/3.1.4.mysql.tpl [deleted file]
CRM/Upgrade/Incremental/sql/3.1.5.mysql.tpl [deleted file]
CRM/Upgrade/Incremental/sql/3.1.alpha1.mysql.tpl [deleted file]
CRM/Upgrade/Incremental/sql/3.1.alpha2.mysql.tpl [deleted file]
CRM/Upgrade/Incremental/sql/3.1.beta1.mysql.tpl [deleted file]
CRM/Upgrade/Incremental/sql/3.1.beta2.mysql.tpl [deleted file]
CRM/Upgrade/Incremental/sql/3.1.beta3.mysql.tpl [deleted file]
CRM/Upgrade/Incremental/sql/3.1.beta4.mysql.tpl [deleted file]
CRM/Upgrade/Incremental/sql/3.1.beta5.mysql.tpl [deleted file]
CRM/Upgrade/Incremental/sql/3.1.beta6.mysql.tpl [deleted file]

diff --git a/CRM/Upgrade/3.1.5.msg_template/civicrm_msg_template.tpl b/CRM/Upgrade/3.1.5.msg_template/civicrm_msg_template.tpl
deleted file mode 100644 (file)
index b3144ed..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-{php}
-  $dir = SMARTY_DIR . '/../../CRM/Upgrade/3.1.5.msg_template/message_templates';
-  $templates = array();
-  foreach (preg_grep('/\.tpl$/', scandir($dir)) as $filename) {
-    $parts = explode('_', basename($filename, '.tpl'));
-    $templates[] = array('type' => array_pop($parts), 'name' => implode('_', $parts), 'filename' => "$dir/$filename");
-  }
-  $this->assign('templates', $templates);
-{/php}
-
-{foreach from=$templates item=tpl}
-  {fetch assign=content file=$tpl.filename}
-  SELECT @workflow_id := MAX(id) FROM civicrm_option_value WHERE name = '{$tpl.name}';
-  SELECT @content := msg_{$tpl.type} FROM civicrm_msg_template WHERE workflow_id = @workflow_id AND is_reserved = 1 LIMIT 1;
-  UPDATE civicrm_msg_template SET msg_{$tpl.type} = '{$content|escape:"quotes"}' WHERE workflow_id = @workflow_id AND (is_reserved = 1 OR (is_default = 1 AND msg_{$tpl.type} = @content));
-{/foreach}
diff --git a/CRM/Upgrade/3.1.5.msg_template/message_templates/event_online_receipt_html.tpl b/CRM/Upgrade/3.1.5.msg_template/message_templates/event_online_receipt_html.tpl
deleted file mode 100644 (file)
index 61f6bb3..0000000
+++ /dev/null
@@ -1,433 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title></title>
-</head>
-<body>
-
-{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}
-
-<center>
- <table width="620" border="0" cellpadding="0" cellspacing="0" id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left;">
-
-  <!-- BEGIN HEADER -->
-  <!-- You can add table row(s) here with logo or other header elements -->
-  <!-- END HEADER -->
-
-  <!-- BEGIN CONTENT -->
-
-  <tr>
-   <td>
-
-    {if $event.confirm_email_text AND (not $isOnWaitlist AND not $isRequireApproval)}
-     <p>{$event.confirm_email_text|htmlize}</p>
-    {/if}
-
-    {if $isOnWaitlist}
-     <p>{ts}You have been added to the WAIT LIST for this event.{/ts}</p>
-     {if $isPrimary}
-       <p>{ts}If space becomes available you will receive an email with
-a link to a web page where you can complete your registration.{/ts}</p>
-     {/if}
-    {elseif $isRequireApproval}
-     <p>{ts}Your registration has been submitted.{/ts}</p>
-     {if $isPrimary}
-      <p>{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}</p>
-     {/if}
-    {elseif $is_pay_later}
-     <p>{$pay_later_receipt}</p> {* FIXME: this might be text rather than HTML *}
-    {else}
-     <p>{ts}Please print this confirmation for your records.{/ts}</p>
-    {/if}
-
-   </td>
-  </tr>
-  <tr>
-   <td>
-    <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
-     <tr>
-      <th {$headerStyle}>
-       {ts}Event Information and Location{/ts}
-      </th>
-     </tr>
-     <tr>
-      <td colspan="2" {$valueStyle}>
-       {$event.event_title}<br />
-       {$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}
-      </td>
-     </tr>
-
-     {if $event.participant_role neq 'Attendee' and $defaultRole}
-      <tr>
-       <td {$labelStyle}>
-        {ts}Participant Role{/ts}
-       </td>
-       <td {$valueStyle}>
-        {$event.participant_role}
-       </td>
-      </tr>
-     {/if}
-
-     {if $isShowLocation}
-      <tr>
-       <td colspan="2" {$valueStyle}>
-        {if $location.address.1.name}
-         {$location.address.1.name}<br />
-        {/if}
-        {if $location.address.1.street_address}
-         {$location.address.1.street_address}<br />
-        {/if}
-        {if $location.address.1.supplemental_address_1}
-         {$location.address.1.supplemental_address_1}<br />
-        {/if}
-        {if $location.address.1.supplemental_address_2}
-         {$location.address.1.supplemental_address_2}<br />
-        {/if}
-        {if $location.address.1.city}
-         {$location.address.1.city} {$location.address.1.postal_code}{if $location.address.1.postal_code_suffix} - {$location.address.1.postal_code_suffix}{/if}<br />
-        {/if}
-       </td>
-      </tr>
-     {/if}
-
-     {if $location.phone.1.phone || $location.email.1.email}
-      <tr>
-       <td colspan="2" {$labelStyle}>
-        {ts}Event Contacts:{/ts}
-       </td>
-      </tr>
-      {foreach from=$location.phone item=phone}
-       {if $phone.phone}
-        <tr>
-         <td {$labelStyle}>
-          {if $phone.phone_type}
-           {$phone.phone_type_display}
-          {else}
-           {ts}Phone{/ts}
-          {/if}
-         </td>
-         <td {$valueStyle}>
-          {$phone.phone}
-         </td>
-        </tr>
-       {/if}
-      {/foreach}
-      {foreach from=$location.email item=eventEmail}
-       {if $eventEmail.email}
-        <tr>
-         <td {$labelStyle}>
-          {ts}Email{/ts}
-         </td>
-         <td {$valueStyle}>
-          {$eventEmail.email}
-         </td>
-        </tr>
-       {/if}
-      {/foreach}
-     {/if}
-     <tr>
-      <td colspan="2" {$valueStyle}>
-       {capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture}
-       <a href="{$icalFeed}">{ts}Download iCalendar File{/ts}</a>
-      </td>
-     </tr>
-     {if $email}
-      <tr>
-       <th {$headerStyle}>
-        {ts}Registered Email{/ts}
-       </th>
-      </tr>
-      <tr>
-       <td colspan="2" {$valueStyle}>
-        {$email}
-       </td>
-      </tr>
-     {/if}
-
-
-     {if $event.is_monetary}
-
-      <tr>
-       <th {$headerStyle}>
-        {$event.fee_label}
-       </th>
-      </tr>
-
-      {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. *}
-           <tr>
-            <td colspan="2" {$labelStyle}>
-             {ts 1=$priceset+1}Participant %1{/ts} {$part.$priceset.info}
-            </td>
-           </tr>
-          {/if}
-         {/if}
-         <tr>
-          <td colspan="2" {$valueStyle}>
-           <table> {* FIXME: style this table so that it looks like the text version (justification, etc.) *}
-            <tr>
-             <th>{ts}Item{/ts}</th>
-             <th>{ts}Qty{/ts}</th>
-             <th>{ts}Each{/ts}</th>
-             <th>{ts}Total{/ts}</th>
-            </tr>
-            {foreach from=$value item=line}
-             <tr>
-              <td>
-               {$line.description|truncate:30:"..."}
-              </td>
-              <td>
-               {$line.qty}
-              </td>
-              <td>
-               {$line.unit_price|crmMoney}
-              </td>
-              <td>
-               {$line.line_total|crmMoney}
-              </td>
-             </tr>
-            {/foreach}
-           </table>
-          </td>
-         </tr>
-        {/if}
-       {/foreach}
-      {/if}
-
-      {if $amount && !$lineItem}
-       {foreach from=$amount item=amnt key=level}
-        <tr>
-         <td colspan="2" {$valueStyle}>
-          {$amnt.amount|crmMoney} {$amnt.label}
-         </td>
-        </tr>
-       {/foreach}
-      {/if}
-
-      {if $isPrimary}
-       <tr>
-        <td {$labelStyle}>
-         {ts}Total Amount{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$totalAmount|crmMoney} {if $hookDiscount.message}({$hookDiscount.message}){/if}
-        </td>
-       </tr>
-
-       {if $is_pay_later}
-        <tr>
-         <td colspan="2" {$labelStyle}>
-          {$pay_later_receipt}
-         </td>
-        </tr>
-       {/if}
-
-       {if $register_date}
-        <tr>
-         <td {$labelStyle}>
-          {ts}Registration Date{/ts}
-         </td>
-         <td {$valueStyle}>
-          {$register_date|crmDate}
-         </td>
-        </tr>
-       {/if}
-
-       {if $receive_date}
-        <tr>
-         <td {$labelStyle}>
-          {ts}Transaction Date{/ts}
-         </td>
-         <td {$valueStyle}>
-          {$receive_date|crmDate}
-         </td>
-        </tr>
-       {/if}
-
-       {if $contributionTypeName}
-        <tr>
-         <td {$labelStyle}>
-          {ts}Contribution Type{/ts}
-         </td>
-         <td {$valueStyle}>
-          {$contributionTypeName}
-         </td>
-        </tr>
-       {/if}
-
-       {if $trxn_id}
-        <tr>
-         <td {$labelStyle}>
-          {ts}Transaction #{/ts}
-         </td>
-         <td {$valueStyle}>
-          {$trxn_id}
-         </td>
-        </tr>
-       {/if}
-
-       {if $paidBy}
-        <tr>
-         <td {$labelStyle}>
-          {ts}Paid By{/ts}
-         </td>
-         <td {$valueStyle}>
-         {$paidBy}
-         </td>
-        </tr>
-       {/if}
-
-       {if $checkNumber}
-        <tr>
-         <td {$labelStyle}>
-          {ts}Check Number{/ts}
-         </td>
-         <td {$valueStyle}>
-          {$checkNumber}
-         </td>
-        </tr>
-       {/if}
-
-       {if $contributeMode ne 'notify' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
-        <tr>
-         <th {$headerStyle}>
-          {ts}Billing Name and Address{/ts}
-         </th>
-        </tr>
-        <tr>
-         <td colspan="2" {$valueStyle}>
-          {$billingName}<br />
-          {$address|nl2br}
-         </td>
-        </tr>
-       {/if}
-
-       {if $contributeMode eq 'direct' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
-        <tr>
-         <th {$headerStyle}>
-          {ts}Credit Card Information{/ts}
-         </th>
-        </tr>
-        <tr>
-         <td colspan="2" {$valueStyle}>
-          {$credit_card_type}<br />
-          {$credit_card_number}<br />
-          {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}
-         </td>
-        </tr>
-       {/if}
-
-      {/if}
-
-     {/if} {* End of conditional section for Paid events *}
-
-     {if $customPre}
-      <tr>
-       <th {$headerStyle}>
-        {$customPre_grouptitle}
-       </th>
-      </tr>
-      {foreach from=$customPre item=value key=customName}
-       {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
-        <tr>
-         <td {$labelStyle}>
-          {$customName}
-         </td>
-         <td {$valueStyle}>
-          {$value}
-         </td>
-        </tr>
-       {/if}
-      {/foreach}
-     {/if}
-
-     {if $customPost}
-      <tr>
-       <th {$headerStyle}>
-        {$customPost_grouptitle}
-       </th>
-      </tr>
-      {foreach from=$customPost item=value key=customName}
-       {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
-        <tr>
-         <td {$labelStyle}>
-          {$customName}
-         </td>
-         <td {$valueStyle}>
-          {$value}
-         </td>
-        </tr>
-       {/if}
-      {/foreach}
-     {/if}
-
-     {if $customProfile}
-      {foreach from=$customProfile item=value key=customName}
-       <tr>
-        <th {$headerStyle}>
-         {ts 1=$customName+1}Participant Information - Participant %1{/ts}
-        </th>
-       <tr>
-       {foreach from=$value item=val key=field}
-        {if $field eq 'additionalCustomPre' or $field eq 'additionalCustomPost'}
-         <tr>
-          <td colspan="2" {$labelStyle}>
-           {if $field eq 'additionalCustomPre'}
-            {$additionalCustomPre_grouptitle}
-           {else}
-            {$additionalCustomPost_grouptitle}
-           {/if}
-          </td>
-         </tr>
-         {foreach from=$val item=v key=f}
-          <tr>
-           <td {$labelStyle}>
-            {$f}
-           </td>
-           <td {$valueStyle}>
-            {$v}
-           </td>
-          </tr>
-         {/foreach}
-        {/if}
-       {/foreach}
-      {/foreach}
-     {/if}
-
-     {if $customGroup}
-      {foreach from=$customGroup item=value key=customName}
-       <tr>
-        <th {$headerStyle}>
-         {$customName}
-        </th>
-       </tr>
-       {foreach from=$value item=v key=n}
-        <tr>
-         <td {$labelStyle}>
-          {$n}
-         </td>
-         <td {$valueStyle}>
-          {$v}
-         </td>
-        </tr>
-       {/foreach}
-      {/foreach}
-     {/if}
-
-    </table>
-   </td>
-  </tr>
-
- </table>
-</center>
-
-</body>
-</html>
diff --git a/CRM/Upgrade/3.1.5.msg_template/message_templates/event_online_receipt_text.tpl b/CRM/Upgrade/3.1.5.msg_template/message_templates/event_online_receipt_text.tpl
deleted file mode 100644 (file)
index b50aa28..0000000
+++ /dev/null
@@ -1,227 +0,0 @@
-{if $event.confirm_email_text AND (not $isOnWaitlist AND not $isRequireApproval)}
-{$event.confirm_email_text}
-{/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}
-===========================================================
-{else}
-
-{ts}Please print this confirmation for your records.{/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 $event.participant_role neq 'Attendee' and $defaultRole}
-{ts}Participant Role{/ts}: {$event.participant_role}
-{/if}
-
-{if $isShowLocation}
-{if $location.address.1.name}
-
-{$location.address.1.name}
-{/if}
-{if $location.address.1.street_address}{$location.address.1.street_address}
-{/if}
-{if $location.address.1.supplemental_address_1}{$location.address.1.supplemental_address_1}
-{/if}
-{if $location.address.1.supplemental_address_2}{$location.address.1.supplemental_address_2}
-{/if}
-{if $location.address.1.city}{$location.address.1.city} {$location.address.1.postal_code}{if $location.address.1.postal_code_suffix} - {$location.address.1.postal_code_suffix}{/if}
-{/if}
-
-{/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}
-{/foreach}
-{foreach from=$location.email item=eventEmail}
-{if $eventEmail.email}
-
-{ts}Email{/ts}: {$eventEmail.email}{/if}{/foreach}
-{/if}
-
-{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 $email}
-
-===========================================================
-{ts}Registered Email{/ts}
-
-===========================================================
-{$email}
-{/if}
-{if $event.is_monetary} {* This section for Paid events only.*}
-
-===========================================================
-{$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}
----------------------------------------------------------
-{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}
-{/if}
-{/foreach}
-{/if}
-{if $amount && !$lineItem}
-{foreach from=$amount item=amnt key=level}{$amnt.amount|crmMoney} {$amnt.label}
-{/foreach}
-{/if}
-{if $isPrimary }
-
-{ts}Total Amount{/ts}: {$totalAmount|crmMoney} {if $hookDiscount.message}({$hookDiscount.message}){/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 $contributionTypeName}
-{ts}Contribution Type{/ts}: {$contributionTypeName}
-{/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 $contributeMode ne 'notify' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
-
-===========================================================
-{ts}Billing Name and Address{/ts}
-
-===========================================================
-{$billingName}
-{$address}
-{/if}
-
-{if $contributeMode eq 'direct' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
-===========================================================
-{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}
-
-
diff --git a/CRM/Upgrade/3.1.alpha1.msg_template/civicrm_msg_template.tpl b/CRM/Upgrade/3.1.alpha1.msg_template/civicrm_msg_template.tpl
deleted file mode 100644 (file)
index fddf69a..0000000
+++ /dev/null
@@ -1,89 +0,0 @@
-{* not sure how to define the below in Smarty, so doing it in PHP instead *}
-{php}
-  $ogNames = array(
-    'case'         => ts('Message Template Workflow for Cases',          array('escape' => 'sql')),
-    'contribution' => ts('Message Template Workflow for Contributions',  array('escape' => 'sql')),
-    'event'        => ts('Message Template Workflow for Events',         array('escape' => 'sql')),
-    'friend'       => ts('Message Template Workflow for Tell-a-Friend',  array('escape' => 'sql')),
-    'membership'   => ts('Message Template Workflow for Memberships',    array('escape' => 'sql')),
-    'meta'         => ts('Message Template Workflow for Meta Templates', array('escape' => 'sql')),
-    'pledge'       => ts('Message Template Workflow for Pledges',        array('escape' => 'sql')),
-    'uf'           => ts('Message Template Workflow for Profiles',       array('escape' => 'sql')),
-  );
-  $ovNames = array(
-    'case' => array(
-      'case_activity' => ts('Cases - Send Copy of an Activity', array('escape' => 'sql')),
-    ),
-    'contribution' => array(
-      'contribution_dupalert'         => ts('Contributions - Duplicate Organization Alert',                   array('escape' => 'sql')),
-      'contribution_offline_receipt'  => ts('Contributions - Receipt (off-line)',                             array('escape' => 'sql')),
-      'contribution_online_receipt'   => ts('Contributions - Receipt (on-line)',                              array('escape' => 'sql')),
-      'contribution_recurring_notify' => ts('Contributions - Recurring Start and End Notification',           array('escape' => 'sql')),
-      'pcp_notify'                    => ts('Personal Campaign Pages - Admin Notification',                   array('escape' => 'sql')),
-      'pcp_status_change'             => ts('Personal Campaign Pages - Supporter Status Change Notification', array('escape' => 'sql')),
-      'pcp_supporter_notify'          => ts('Personal Campaign Pages - Supporter Welcome',                    array('escape' => 'sql')),
-    ),
-    'event' => array(
-      'event_offline_receipt' => ts('Events - Registration Confirmation and Receipt (off-line)', array('escape' => 'sql')),
-      'event_online_receipt'  => ts('Events - Registration Confirmation and Receipt (on-line)',  array('escape' => 'sql')),
-      'participant_cancelled' => ts('Events - Registration Cancellation Notice',                 array('escape' => 'sql')),
-      'participant_confirm'   => ts('Events - Registration Confirmation Invite',                 array('escape' => 'sql')),
-      'participant_expired'   => ts('Events - Pending Registration Expiration Notice',           array('escape' => 'sql')),
-    ),
-    'friend' => array(
-      'friend' => ts('Tell-a-Friend Email', array('escape' => 'sql')),
-    ),
-    'membership' => array(
-      'membership_offline_receipt' => ts('Memberships - Signup and Renewal Receipts (off-line)', array('escape' => 'sql')),
-      'membership_online_receipt'  => ts('Memberships - Receipt (on-line)',                      array('escape' => 'sql')),
-    ),
-    'meta' => array(
-      'test_preview' => ts('Test-drive - Receipt Header', array('escape' => 'sql')),
-    ),
-    'pledge' => array(
-      'pledge_acknowledge' => ts('Pledges - Acknowledgement',  array('escape' => 'sql')),
-      'pledge_reminder'    => ts('Pledges - Payment Reminder', array('escape' => 'sql')),
-    ),
-    'uf' => array(
-      'uf_notify' => ts('Profiles - Admin Notification', array('escape' => 'sql')),
-    ),
-  );
-  $this->assign('ogNames',  $ogNames);
-  $this->assign('ovNames',  $ovNames);
-{/php}
-
-INSERT INTO civicrm_option_group
-  (name,                         {localize field='label'}label{/localize},            {localize field='description'}description{/localize},      is_reserved, is_active) VALUES
-{foreach from=$ogNames key=name item=description name=for_groups}
-    ('msg_tpl_workflow_{$name}', {localize}'{$description}'{/localize},               {localize}'{$description}'{/localize},                     0,           1) {if $smarty.foreach.for_groups.last};{else},{/if}
-{/foreach}
-
-{foreach from=$ogNames key=name item=description}
-  SELECT @tpl_ogid_{$name} := MAX(id) FROM civicrm_option_group WHERE name = 'msg_tpl_workflow_{$name}';
-{/foreach}
-
-INSERT INTO civicrm_option_value
-  (option_group_id,        name,       {localize field='label'}label{/localize},   value,                                  weight) VALUES
-{foreach from=$ovNames key=gName item=ovs name=for_groups}
-{foreach from=$ovs key=vName item=label name=for_values}
-      (@tpl_ogid_{$gName}, '{$vName}', {localize}'{$label}'{/localize},            {$smarty.foreach.for_values.iteration}, {$smarty.foreach.for_values.iteration}) {if $smarty.foreach.for_groups.last and $smarty.foreach.for_values.last};{else},{/if}
-{/foreach}
-{/foreach}
-
-{foreach from=$ovNames key=gName item=ovs}
-{foreach from=$ovs key=vName item=label}
-    SELECT @tpl_ovid_{$vName} := MAX(id) FROM civicrm_option_value WHERE option_group_id = @tpl_ogid_{$gName} AND name = '{$vName}';
-{/foreach}
-{/foreach}
-
-INSERT INTO civicrm_msg_template
-  (msg_title,      msg_subject,                  msg_text,                  msg_html,                  workflow_id,        is_default, is_reserved) VALUES
-{foreach from=$ovNames key=gName item=ovs name=for_groups}
-{foreach from=$ovs key=vName item=title name=for_values}
-      {fetch assign=subject file="`$smarty.const.SMARTY_DIR`/../../CRM/Upgrade/3.1.alpha1.msg_template/message_templates/`$vName`_subject.tpl"}
-      {fetch assign=text    file="`$smarty.const.SMARTY_DIR`/../../CRM/Upgrade/3.1.alpha1.msg_template/message_templates/`$vName`_text.tpl"}
-      {fetch assign=html    file="`$smarty.const.SMARTY_DIR`/../../CRM/Upgrade/3.1.alpha1.msg_template/message_templates/`$vName`_html.tpl"}
-      ('{$title}', '{$subject|escape:"quotes"}', '{$text|escape:"quotes"}', '{$html|escape:"quotes"}', @tpl_ovid_{$vName}, 1,          0),
-      ('{$title}', '{$subject|escape:"quotes"}', '{$text|escape:"quotes"}', '{$html|escape:"quotes"}', @tpl_ovid_{$vName}, 0,          1) {if $smarty.foreach.for_groups.last and $smarty.foreach.for_values.last};{else},{/if}
-{/foreach}
-{/foreach}
diff --git a/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/case_activity_html.tpl b/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/case_activity_html.tpl
deleted file mode 100644 (file)
index 453dba4..0000000
+++ /dev/null
@@ -1,83 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title></title>
-</head>
-<body>
-
-{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}
-
-<center>
- <table width="620" border="0" cellpadding="0" cellspacing="0" id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left;">
-
-  <!-- BEGIN HEADER -->
-  <!-- You can add table row(s) here with logo or other header elements -->
-  <!-- BEGIN HEADER -->
-
-  <!-- BEGIN CONTENT -->
-
-  <tr>
-   <td>
-    <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
-     <tr>
-      <th {$headerStyle}>
-       {ts}Activity Summary{/ts} - {$activityTypeName}
-      </th>
-     </tr>
-     {if $isCaseActivity}
-      <tr>
-       <td {$labelStyle}>
-        {ts}Your Case Role(s){/ts}
-       </td>
-       <td {$valueStyle}>
-        {$contact.role}
-       </td>
-      </tr>
-     {/if}
-     {foreach from=$activity.fields item=field}
-      <tr>
-       <td {$labelStyle}>
-        {$field.label}{if $field.category}({$field.category}){/if}
-       </td>
-       <td {$valueStyle}>
-        {if $field.type eq 'Date'}
-         {$field.value|crmDate:$config->dateformatDatetime}
-        {else}
-         {$field.value}
-        {/if}
-       </td>
-      </tr>
-     {/foreach}
-
-     {foreach from=$activity.customGroups key=customGroupName item=customGroup}
-      <tr>
-       <th {$headerStyle}>
-        {$customGroupName}
-       </th>
-      </tr>
-      {foreach from=$customGroup item=field}
-       <tr>
-        <td {$labelStyle}>
-         {$field.label}
-        </td>
-        <td {$valueStyle}>
-         {if $field.type eq 'Date'}
-          {$field.value|crmDate:$config->dateformatDatetime}
-         {else}
-          {$field.value}
-         {/if}
-        </td>
-       </tr>
-      {/foreach}
-     {/foreach}
-    </table>
-   </td>
-  </tr>
- </table>
-</center>
-
-</body>
-</html>
diff --git a/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/case_activity_subject.tpl b/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/case_activity_subject.tpl
deleted file mode 100644 (file)
index 6fc4c0c..0000000
+++ /dev/null
@@ -1 +0,0 @@
-{$activitySubject}
diff --git a/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/case_activity_text.tpl b/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/case_activity_text.tpl
deleted file mode 100644 (file)
index d8b0bd4..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-===========================================================
-{ts}Activity Summary{/ts} - {$activityTypeName}
-===========================================================
-{if $isCaseActivity}
-{ts}Your Case Role(s){/ts} : {$contact.role}
-{/if}
-
-{foreach from=$activity.fields item=field}
-{if $field.type eq 'Date'}
-{$field.label}{if $field.category}({$field.category}){/if} : {$field.value|crmDate:$config->dateformatDatetime}
-{else}
-{$field.label}{if $field.category}({$field.category}){/if} : {$field.value}
-{/if}
-{/foreach}
-
-{foreach from=$activity.customGroups key=customGroupName item=customGroup}
-==========================================================
-{$customGroupName}
-==========================================================
-{foreach from=$customGroup item=field}
-{if $field.type eq 'Date'}
-{$field.label} : {$field.value|crmDate:$config->dateformatDatetime}
-{else}
-{$field.label} : {$field.value}
-{/if}
-{/foreach}
-
-{/foreach}
diff --git a/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/contribution_dupalert_html.tpl b/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/contribution_dupalert_html.tpl
deleted file mode 100644 (file)
index 7b97164..0000000
+++ /dev/null
@@ -1,89 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title></title>
-</head>
-<body>
-
-{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}
-
-<center>
- <table width="620" border="0" cellpadding="0" cellspacing="0" id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left;">
-
-  <!-- BEGIN HEADER -->
-  <!-- You can add table row(s) here with logo or other header elements -->
-  <!-- BEGIN HEADER -->
-
-  <!-- BEGIN CONTENT -->
-
-  <tr>
-   <td>
-    <p>{ts}A contribution / membership signup was made on behalf of the organization listed below.{/ts}</p>
-    <p>{ts}The information provided matched multiple existing database records based on the configured
-Duplicate Matching Rules for your site.{/ts}</p>
-   </td>
-  </tr>
-  <tr>
-   <td>
-    <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
-     <tr>
-      <td {$labelStyle}>
-       {ts}Organization Name{/ts}
-      </td>
-      <td {$valueStyle}>
-       {$onBehalfName}
-      </td>
-     </tr>
-     <tr>
-      <td {$labelStyle}>
-       {ts}Organization Email{/ts}
-      </td>
-      <td {$valueStyle}>
-       {$onBehalfEmail}
-      </td>
-     </tr>
-     <tr>
-      <td {$labelStyle}>
-       {ts}Organization Contact ID{/ts}
-      </td>
-      <td {$valueStyle}>
-       {$onBehalfID}
-      </td>
-     </tr>
-    </table>
-   </td>
-  </tr>
-  <tr>
-   <td>
-    <p>{ts}If you think this may be a duplicate contact which should be merged with an existing record -
-Go to "CiviCRM >> Administer CiviCRM >> Find and Merge Duplicate Contacts". Use the strict
-rule for Organizations to find the potential duplicates and merge them if appropriate.{/ts}</p>
-   </td>
-  </tr>
-  {if $receiptMessage}
-   <tr>
-    <td>
-     <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
-      <tr>
-       <th {$headerStyle}>
-        {ts}Copy of Contribution Receipt{/ts}
-       </th>
-      </tr>
-      <tr>
-       <td colspan="2" {$valueStyle}>
-        {* FIXME: the below is most probably not HTML-ised *}
-        {$receiptMessage}
-       </td>
-      </tr>
-     </table>
-    </td>
-   </tr>
-  {/if}
- </table>
-</center>
-
-</body>
-</html>
diff --git a/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/contribution_dupalert_subject.tpl b/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/contribution_dupalert_subject.tpl
deleted file mode 100644 (file)
index 3e255fa..0000000
+++ /dev/null
@@ -1 +0,0 @@
-{ts}CiviContribute Alert: Possible Duplicate Contact Record{/ts}
diff --git a/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/contribution_dupalert_text.tpl b/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/contribution_dupalert_text.tpl
deleted file mode 100644 (file)
index 41af7bc..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-{ts}A contribution / membership signup was made on behalf of the organization listed below.{/ts}
-{ts}The information provided matched multiple existing database records based on the configured
-Duplicate Matching Rules for your site.{/ts}
-
-{ts}Organization Name{/ts}: {$onBehalfName}
-{ts}Organization Email{/ts}: {$onBehalfEmail}
-{ts}Organization Contact ID{/ts}: {$onBehalfID}
-
-{ts}If you think this may be a duplicate contact which should be merged with an existing record -
-Go to "CiviCRM >> Administer CiviCRM >> Find and Merge Duplicate Contacts". Use the strict
-rule for Organizations to find the potential duplicates and merge them if appropriate.{/ts}
-
-{if $receiptMessage}
-###########################################################
-{ts}Copy of Contribution Receipt{/ts}
-
-###########################################################
-{$receiptMessage}
-
-{/if}
diff --git a/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/contribution_offline_receipt_html.tpl b/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/contribution_offline_receipt_html.tpl
deleted file mode 100644 (file)
index ba6fb3f..0000000
+++ /dev/null
@@ -1,250 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title></title>
-</head>
-<body>
-
-{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}
-
-<center>
- <table width="620" border="0" cellpadding="0" cellspacing="0" id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left;">
-
-  <!-- BEGIN HEADER -->
-  <!-- You can add table row(s) here with logo or other header elements -->
-  <!-- BEGIN HEADER -->
-
-  <!-- BEGIN CONTENT -->
-
-  <tr>
-   <td>
-
-    {if $formValues.receipt_text}
-     <p>{$formValues.receipt_text}</p>
-    {else}
-     <p>{ts}Thank you for your support.{/ts}</p>
-    {/if}
-
-    <p>{ts}Please print this receipt for your records.{/ts}</p>
-
-   </td>
-  </tr>
-  <tr>
-   <td>
-    <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
-     <tr>
-      <th {$headerStyle}>
-       {ts}Contribution Information{/ts}
-      </th>
-     </tr>
-     <tr>
-      <td {$labelStyle}>
-       {ts}Contribution Type{/ts}
-      </td>
-      <td {$valueStyle}>
-       {$formValues.contributionType_name}
-      </td>
-     </tr>
-
-     {if $lineItem}
-      {foreach from=$lineItem item=value key=priceset}
-       <tr>
-        <td colspan="2" {$valueStyle}>
-         <table> {* FIXME: style this table so that it looks like the text version (justification, etc.) *}
-          <tr>
-           <th>{ts}Item{/ts}</th>
-           <th>{ts}Qty{/ts}</th>
-           <th>{ts}Each{/ts}</th>
-           <th>{ts}Total{/ts}</th>
-          </tr>
-          {foreach from=$value item=line}
-           <tr>
-            <td>
-             {$line.description|truncate:30:"..."}
-            </td>
-            <td>
-             {$line.qty}
-            </td>
-            <td>
-             {$line.unit_price|crmMoney}
-            </td>
-            <td>
-             {$line.line_total|crmMoney}
-            </td>
-           </tr>
-          {/foreach}
-         </table>
-        </td>
-       </tr>
-      {/foreach}
-     {/if}
-
-     <tr>
-      <td {$labelStyle}>
-       {ts}Total Amount{/ts}
-      </td>
-      <td {$valueStyle}>
-       {$formValues.total_amount|crmMoney}
-      </td>
-     </tr>
-
-     {if $receive_date}
-      <tr>
-       <td {$labelStyle}>
-        {ts}Received Date{/ts}
-       </td>
-       <td {$valueStyle}>
-        {$receive_date|truncate:10:''|crmDate}
-       </td>
-      </tr>
-     {/if}
-
-     {if $formValues.paidBy and !$formValues.hidden_CreditCard}
-      <tr>
-       <td {$labelStyle}>
-        {ts}Paid By{/ts}
-       </td>
-       <td {$valueStyle}>
-        {$formValues.paidBy}
-       </td>
-      </tr>
-      {if $formValues.check_number}
-       <tr>
-        <td {$labelStyle}>
-         {ts}Check Number{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$formValues.check_number}
-        </td>
-       </tr>
-      {/if}
-     {/if}
-
-     {if $formValues.trxn_id}
-      <tr>
-       <td {$labelStyle}>
-        {ts}Transaction ID{/ts}
-       </td>
-       <td {$valueStyle}>
-        {$formValues.trxn_id}
-       </td>
-      </tr>
-     {/if}
-
-     {if $ccContribution}
-      <tr>
-       <th {$headerStyle}>
-        {ts}Billing Name and Address{/ts}
-       </th>
-      </tr>
-      <tr>
-       <td colspan="2" {$valueStyle}>
-        {$billingName}<br />
-        {$address|nl2br}
-       </td>
-      </tr>
-      <tr>
-       <th {$headerStyle}>
-        {ts}Credit Card Information{/ts}
-       </th>
-      </tr>
-      <tr>
-       <td colspan="2" {$valueStyle}>
-        {$credit_card_type}<br />
-        {$credit_card_number}<br />
-        {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}
-       </td>
-      </tr>
-     {/if}
-
-     {if $customGroup}
-      {foreach from=$customGroup item=value key=customName}
-       <tr>
-        <th {$headerStyle}>
-         {$customName}
-        </th>
-       </tr>
-       {foreach from=$value item=v key=n}
-        <tr>
-         <td {$labelStyle}>
-          {$n}
-         </td>
-         <td {$valueStyle}>
-          {$v}
-         </td>
-        </tr>
-       {/foreach}
-      {/foreach}
-     {/if}
-
-     {if $formValues.honor_first_name}
-      <tr>
-       <th {$headerStyle}>
-        {$formValues.honor_type}
-       </th>
-      </tr>
-      <tr>
-       <td colspan="2" {$valueStyle}>
-        {$formValues.honor_prefix} {$formValues.honor_first_name} {$formValues.honor_last_name}<br />
-        {if $formValues.honor_email}
-         {ts}Honoree Email{/ts}: {$formValues.honor_email}
-        {/if}
-       </td>
-      </tr>
-     {/if}
-
-     {if $formValues.product_name}
-      <tr>
-       <th {$headerStyle}>
-        {ts}Premium Information{/ts}
-       </th>
-      </tr>
-      <tr>
-       <td colspan="2" {$labelStyle}>
-        {$formValues.product_name}
-       </td>
-      </tr>
-      {if $formValues.product_option}
-       <tr>
-        <td {$labelStyle}>
-         {ts}Option{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$formValues.product_option}
-        </td>
-       </tr>
-      {/if}
-      {if $formValues.product_sku}
-       <tr>
-        <td {$labelStyle}>
-         {ts}SKU{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$formValues.product_sku}
-        </td>
-       </tr>
-      {/if}
-      {if $fulfilled_date}
-       <tr>
-        <td {$labelStyle}>
-         {ts}Sent{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$fulfilled_date|truncate:10:''|crmDate}
-        </td>
-       </tr>
-      {/if}
-     {/if}
-
-    </table>
-   </td>
-  </tr>
-
- </table>
-</center>
-
-</body>
-</html>
diff --git a/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/contribution_offline_receipt_subject.tpl b/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/contribution_offline_receipt_subject.tpl
deleted file mode 100644 (file)
index 0eaffe3..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-{if $receiptType EQ 'contribution'}
-{ts}Contribution Receipt{/ts}
-{elseif $receiptType EQ 'membership signup'}
-{ts}Membership Confirmation and Receipt{/ts}
-{elseif $receiptType EQ 'membership renewal'}
-{ts}Membership Renewal Confirmation and Receipt{/ts}
-{else}
-{ts}Receipt{/ts}
-{/if}
diff --git a/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/contribution_offline_receipt_text.tpl b/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/contribution_offline_receipt_text.tpl
deleted file mode 100644 (file)
index 3d90ebd..0000000
+++ /dev/null
@@ -1,94 +0,0 @@
-{if $formValues.receipt_text}
-{$formValues.receipt_text}
-{else}{ts}Thank you for your support.{/ts}{/if}
-
-{ts}Please print this receipt for your records.{/ts}
-
-
-===========================================================
-{ts}Contribution Information{/ts}
-
-===========================================================
-{ts}Contribution Type{/ts}: {$formValues.contributionType_name}
-{if $lineItem}
-{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}
-{/if}
-
-{ts}Total Amount{/ts}: {$formValues.total_amount|crmMoney}
-{if $receive_date}
-{ts}Received Date{/ts}: {$receive_date|truncate:10:''|crmDate}
-{/if}
-{if $formValues.paidBy and !$formValues.hidden_CreditCard}
-{ts}Paid By{/ts}: {$formValues.paidBy}
-{if $formValues.check_number}
-{ts}Check Number{/ts}: {$formValues.check_number}
-{/if}
-{/if}
-{if $formValues.trxn_id}
-{ts}Transaction ID{/ts}: {$formValues.trxn_id}
-{/if}
-
-{if $ccContribution}
-===========================================================
-{ts}Billing Name and Address{/ts}
-
-===========================================================
-{$billingName}
-{$address}
-
-===========================================================
-{ts}Credit Card Information{/ts}
-
-===========================================================
-{$credit_card_type}
-{$credit_card_number}
-{ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}
-{/if}
-{if $customGroup}
-{foreach from=$customGroup item=value key=customName}
-===========================================================
-{$customName}
-===========================================================
-{foreach from=$value item=v key=n}
-{$n}: {$v}
-{/foreach}
-{/foreach}
-{/if}
-{if $formValues.honor_first_name}
-
-===========================================================
-{$formValues.honor_type}
-===========================================================
-{$formValues.honor_prefix} {$formValues.honor_first_name} {$formValues.honor_last_name}
-{if $formValues.honor_email}
-{ts}Honoree Email{/ts}: {$formValues.honor_email}
-{/if}
-{/if}
-
-{if $formValues.product_name}
-===========================================================
-{ts}Premium Information{/ts}
-
-===========================================================
-{$formValues.product_name}
-{if $formValues.product_option}
-{ts}Option{/ts}: {$formValues.product_option}
-{/if}
-{if $formValues.product_sku}
-{ts}SKU{/ts}: {$formValues.product_sku}
-{/if}
-{if $fulfilled_date}
-{ts}Sent{/ts}: {$fulfilled_date|crmDate}
-{/if}
-{/if}
diff --git a/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/contribution_online_receipt_html.tpl b/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/contribution_online_receipt_html.tpl
deleted file mode 100644 (file)
index 2e7eae8..0000000
+++ /dev/null
@@ -1,384 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title></title>
-</head>
-<body>
-
-{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}
-
-<center>
- <table width="620" border="0" cellpadding="0" cellspacing="0" id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left;">
-
-  <!-- BEGIN HEADER -->
-  <!-- You can add table row(s) here with logo or other header elements -->
-  <!-- BEGIN HEADER -->
-
-  <!-- BEGIN CONTENT -->
-
-  <tr>
-   <td>
-
-    {if $receipt_text}
-     <p>{$receipt_text}</p>
-    {/if}
-
-    {if $is_pay_later}
-     <p>{$pay_later_receipt}</p> {* FIXME: this might be text rather than HTML *}
-    {else}
-     <p>{ts}Please print this confirmation for your records.{/ts}</p>
-    {/if}
-
-   </td>
-  </tr>
-  <tr>
-   <td>
-    <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
-
-     {if $amount}
-
-
-      <tr>
-       <th {$headerStyle}>
-        {ts}Contribution Information{/ts}
-       </th>
-      </tr>
-
-      {if $lineItem and $priceSetID}
-
-       {foreach from=$lineItem item=value key=priceset}
-        <tr>
-         <td colspan="2" {$valueStyle}>
-          <table> {* FIXME: style this table so that it looks like the text version (justification, etc.) *}
-           <tr>
-            <th>{ts}Item{/ts}</th>
-            <th>{ts}Qty{/ts}</th>
-            <th>{ts}Each{/ts}</th>
-            <th>{ts}Total{/ts}</th>
-           </tr>
-           {foreach from=$value item=line}
-            <tr>
-             <td>
-              {$line.description|truncate:30:"..."}
-             </td>
-             <td>
-              {$line.qty}
-             </td>
-             <td>
-              {$line.unit_price|crmMoney}
-             </td>
-             <td>
-              {$line.line_total|crmMoney}
-             </td>
-            </tr>
-           {/foreach}
-          </table>
-         </td>
-        </tr>
-       {/foreach}
-       <tr>
-        <td {$labelStyle}>
-         {ts}Total Amount{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$amount|crmMoney}
-        </td>
-       </tr>
-
-      {else}
-
-       <tr>
-        <td {$labelStyle}>
-         {ts}Amount{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$amount|crmMoney} {if $amount_level} - {$amount_level}{/if}
-        </td>
-       </tr>
-
-      {/if}
-
-
-     {/if}
-
-
-     {if $receive_date}
-      <tr>
-       <td {$labelStyle}>
-        {ts}Date{/ts}
-       </td>
-       <td {$valueStyle}>
-        {$receive_date|crmDate}
-       </td>
-      </tr>
-     {/if}
-
-     {if $is_monetary and $trxn_id}
-      <tr>
-       <td {$labelStyle}>
-        {ts}Transaction #{/ts}
-       </td>
-       <td {$valueStyle}>
-        {$trxn_id}
-       </td>
-      </tr>
-     {/if}
-
-     {if $is_recur}
-      {if $contributeMode eq 'notify'}
-       <tr>
-        <td {$labelStyle}>
-         {ts 1=$cancelSubscriptionUrl}This is a recurring contribution. You can modify or cancel future contributions by <a href="%1">logging in to your account</a>.{/ts}
-        </td>
-       </tr>
-      {elseif $contributeMode eq 'directIPN' and $receiptFromEmail}
-       <tr>
-        <td {$labelStyle}>
-         {ts 1=$receiptFromEmail}This is a recurring contribution. To modify or cancel future contributions please contact us at %1.{/ts}
-        </td>
-       </tr>
-      {/if}
-     {/if}
-
-     {if $honor_block_is_active}
-      <tr>
-       <th {$headerStyle}>
-        {$honor_type}
-       </th>
-      </tr>
-      <tr>
-       <td colspan="2" {$labelStyle}>
-        {$honor_prefix} {$honor_first_name} {$honor_last_name}
-       </td>
-      </tr>
-      {if $honor_email}
-       <tr>
-        <td {$labelStyle}>
-         {ts}Honoree Email{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$honor_email}
-        </td>
-       </tr>
-      {/if}
-     {/if}
-
-     {if $pcpBlock}
-      <tr>
-       <th {$headerStyle}>
-        {ts}Personal Campaign Page{/ts}
-       </th>
-      </tr>
-      <tr>
-       <td {$labelStyle}>
-        {ts}Display In Honor Roll{/ts}
-       </td>
-       <td {$valueStyle}>
-        {if $pcp_display_in_roll}{ts}Yes{/ts}{else}{ts}No{/ts}{/if}
-       </td>
-      </tr>
-      {if $pcp_roll_nickname}
-       <tr>
-        <td {$labelStyle}>
-         {ts}Nickname{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$pcp_roll_nickname}
-        </td>
-       </tr>
-      {/if}
-      {if $pcp_personal_note}
-       <tr>
-        <td {$labelStyle}>
-         {ts}Personal Note{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$pcp_personal_note}
-        </td>
-       </tr>
-      {/if}
-     {/if}
-
-     {if $onBehalfName}
-      <tr>
-       <th {$headerStyle}>
-        {ts}On Behalf Of{/ts}
-       </th>
-      </tr>
-      <tr>
-       <td colspan="2" {$valueStyle}>
-        {$onBehalfName}<br />
-        {$onBehalfAddress|nl2br}<br />
-        {$onBehalfEmail}
-       </td>
-      </tr>
-     {/if}
-
-     {if ! ($contributeMode eq 'notify' OR $contributeMode eq 'directIPN') and $is_monetary}
-      {if $is_pay_later}
-       <tr>
-        <th {$headerStyle}>
-         {ts}Registered Email{/ts}
-        </th>
-       </tr>
-       <tr>
-        <td colspan="2" {$valueStyle}>
-         {$email}
-        </td>
-       </tr>
-      {elseif $amount GT 0}
-       <tr>
-        <th {$headerStyle}>
-         {ts}Billing Name and Address{/ts}
-        </th>
-       </tr>
-       <tr>
-        <td colspan="2" {$valueStyle}>
-         {$billingName}<br />
-         {$address|nl2br}<br />
-         {$email}
-        </td>
-       </tr>
-      {/if}
-     {/if}
-
-     {if $contributeMode eq 'direct' AND !$is_pay_later AND $amount GT 0}
-      <tr>
-       <th {$headerStyle}>
-        {ts}Credit Card Information{/ts}
-       </th>
-      </tr>
-      <tr>
-       <td colspan="2" {$valueStyle}>
-        {$credit_card_type}<br />
-        {$credit_card_number}<br />
-        {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}<br />
-       </td>
-      </tr>
-     {/if}
-
-     {if $selectPremium}
-      <tr>
-       <th {$headerStyle}>
-        {ts}Premium Information{/ts}
-       </th>
-      </tr>
-      <tr>
-       <td colspan="2" {$labelStyle}>
-        {$product_name}
-       </td>
-      </tr>
-      {if $option}
-       <tr>
-        <td {$labelStyle}>
-         {ts}Option{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$option}
-        </td>
-       </tr>
-      {/if}
-      {if $sku}
-       <tr>
-        <td {$labelStyle}>
-         {ts}SKU{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$sku}
-        </td>
-       </tr>
-      {/if}
-      {if $start_date}
-       <tr>
-        <td {$labelStyle}>
-         {ts}Start Date{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$start_date|crmDate}
-        </td>
-       </tr>
-      {/if}
-      {if $end_date}
-       <tr>
-        <td {$labelStyle}>
-         {ts}End Date{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$end_date|crmDate}
-        </td>
-       </tr>
-      {/if}
-      {if $contact_email OR $contact_phone}
-       <tr>
-        <td colspan="2" {$valueStyle}>
-         <p>{ts}For information about this premium, contact:{/ts}</p>
-         {if $contact_email}
-          <p>{$contact_email}</p>
-         {/if}
-         {if $contact_phone}
-          <p>{$contact_phone}</p>
-         {/if}
-        </td>
-       </tr>
-      {/if}
-      {if $is_deductible AND $price}
-        <tr>
-         <td colspan="2" {$valueStyle}>
-          <p>{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}</p>
-         </td>
-        </tr>
-      {/if}
-     {/if}
-
-     {if $customPre}
-      <tr>
-       <th {$headerStyle}>
-        {ts}{$customPre_grouptitle} {/ts}
-       </th>
-      </tr>
-      {foreach from=$customPre item=customValue key=customName}
-       {if ($trackingFields and ! in_array($customName, $trackingFields)) or ! $trackingFields}
-        <tr>
-         <td {$labelStyle}>
-          {$customName}
-         </td>
-         <td {$valueStyle}>
-          {$customValue}
-         </td>
-        </tr>
-       {/if}
-      {/foreach}
-     {/if}
-
-     {if $customPost}
-      <tr>
-       <th {$headerStyle}>
-        {ts}{$customPost_grouptitle}{/ts}
-       </th>
-      </tr>
-      {foreach from=$customPost item=customValue key=customName}
-       {if ($trackingFields and ! in_array($customName, $trackingFields)) or ! $trackingFields}
-        <tr>
-         <td {$labelStyle}>
-          {$customName}
-         </td>
-         <td {$valueStyle}>
-          {$customValue}
-         </td>
-        </tr>
-       {/if}
-      {/foreach}
-     {/if}
-
-    </table>
-   </td>
-  </tr>
-
- </table>
-</center>
-
-</body>
-</html>
diff --git a/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/contribution_online_receipt_subject.tpl b/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/contribution_online_receipt_subject.tpl
deleted file mode 100644 (file)
index 32d4e40..0000000
+++ /dev/null
@@ -1 +0,0 @@
-{if $is_pay_later}{ts}Invoice{/ts}{else}{ts}Receipt{/ts}{/if} - {$title}
diff --git a/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/contribution_online_receipt_text.tpl b/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/contribution_online_receipt_text.tpl
deleted file mode 100644 (file)
index 961bd9b..0000000
+++ /dev/null
@@ -1,177 +0,0 @@
-{if $receipt_text}
-{$receipt_text}
-{/if}
-{if $is_pay_later}
-
-===========================================================
-{$pay_later_receipt}
-===========================================================
-{else}
-
-{ts}Please print this receipt for your records.{/ts}
-{/if}
-
-{if $amount}
-===========================================================
-{ts}Contribution Information{/ts}
-
-===========================================================
-{if $lineItem and $priceSetID}
-{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}
-{ts}Amount{/ts}: {$amount|crmMoney} {if $amount_level } - {$amount_level} {/if}
-{/if}
-{/if}
-{if $receive_date}
-
-{ts}Date{/ts}: {$receive_date|crmDate}
-{/if}
-{if $is_monetary and $trxn_id}
-{ts}Transaction #{/ts}: {$trxn_id}
-{/if}
-
-{if $is_recur}
-{if $contributeMode eq 'notify'}
-{ts}This is a recurring contribution. You can modify or cancel future contributions by logging in to your account at:{/ts}
-
-{$cancelSubscriptionUrl}
-{elseif $contributeMode eq 'directIPN' and $receiptFromEmail}
-{ts 1=$receiptFromEmail}This is a recurring contribution. To modify or cancel future contributions please contact us at %1.{/ts}
-
-{/if}
-{/if}
-
-{if $honor_block_is_active }
-===========================================================
-{$honor_type}
-===========================================================
-{$honor_prefix} {$honor_first_name} {$honor_last_name}
-{if $honor_email}
-{ts}Honoree Email{/ts}: {$honor_email}
-{/if}
-
-{/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 $onBehalfName}
-===========================================================
-{ts}On Behalf Of{/ts}
-
-===========================================================
-{$onBehalfName}
-{$onBehalfAddress}
-
-{$onBehalfEmail}
-
-{/if}
-
-{if !( $contributeMode eq 'notify' OR $contributeMode eq 'directIPN' ) and $is_monetary}
-{if $is_pay_later}
-===========================================================
-{ts}Registered Email{/ts}
-
-===========================================================
-{$email}
-{elseif $amount GT 0}
-===========================================================
-{ts}Billing Name and Address{/ts}
-
-===========================================================
-{$billingName}
-{$address}
-
-{$email}
-{/if} {* End ! is_pay_later condition. *}
-{/if}
-{if $contributeMode eq 'direct' AND !$is_pay_later AND $amount GT 0}
-
-===========================================================
-{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}
-===========================================================
-{ts}{$customPre_grouptitle} {/ts}
-
-===========================================================
-{foreach from=$customPre item=customValue key=customName}
-{if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
- {$customName}: {$customValue}
-{/if}
-{/foreach}
-{/if}
-
-
-{if $customPost}
-===========================================================
-{ts}{$customPost_grouptitle}{/ts}
-
-===========================================================
-{foreach from=$customPost item=customValue key=customName}
-{if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
- {$customName}: {$customValue}
-{/if}
-{/foreach}
-{/if}
diff --git a/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/contribution_recurring_notify_html.tpl b/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/contribution_recurring_notify_html.tpl
deleted file mode 100644 (file)
index e9dc1a4..0000000
+++ /dev/null
@@ -1,71 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title></title>
-</head>
-<body>
-
-{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}
-
-<center>
- <table width="620" border="0" cellpadding="0" cellspacing="0" id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left;">
-
-  <!-- BEGIN HEADER -->
-  <!-- You can add table row(s) here with logo or other header elements -->
-  <!-- BEGIN HEADER -->
-
-  <!-- BEGIN CONTENT -->
-
-  <tr>
-   <td>
-
-    <p>{ts 1=$displayName}Dear %1{/ts},</p>
-
-    {if $recur_txnType eq 'START'}
-
-     <p>{ts}Thanks for your recurring contribution sign-up.{/ts}</p>
-     <p>{ts 1=$recur_frequency_interval 2=$recur_frequency_unit 3=$recur_installments}This recurring contribution will be automatically processed every %1 %2(s) for a total %3 installment.{/ts}</p>
-     <p>{ts}Start Date{/ts}: {$recur_start_date|crmDate}</p>
-     <p>{ts 1=$receipt_from_name 2=$receipt_from_email}You have pledged to make this recurring donation. You will be charged periodically (per frequency listed above), and you will receive an email receipt from %1 following each charge. These recurring donations will continue until you explicitly cancel the donation. You may change or cancel your recurring donation at anytime by logged in your account. If you have questions about recurring donations please contact us at %2.{/ts}</p>
-
-    {elseif $recur_txnType eq 'END'}
-
-     <p>{ts}Your recurring contribution term has ended.{/ts}</p>
-     <p>{ts 1=$recur_installments}You have successfully completed %1 recurring contributions. Thank you for your support.{/ts}</p>
-     <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
-      <tr>
-       <th {$headerStyle}>
-        {ts 1=$recur_installments}Interval of Subscription for %1 installments{/ts}
-       </th>
-      </tr>
-      <tr>
-       <td {$labelStyle}>
-        {ts}Start Date{/ts}
-       </td>
-       <td {$valueStyle}>
-        {$recur_start_date|crmDate}
-       </td>
-      </tr>
-      <tr>
-       <td {$labelStyle}>
-        {ts}End Date{/ts}
-       </td>
-       <td {$valueStyle}>
-        {$recur_end_date|crmDate}
-       </td>
-      </tr>
-     </table>
-
-    {/if}
-
-   </td>
-  </tr>
-
- </table>
-</center>
-
-</body>
-</html>
diff --git a/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/contribution_recurring_notify_subject.tpl b/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/contribution_recurring_notify_subject.tpl
deleted file mode 100644 (file)
index 0dfee3a..0000000
+++ /dev/null
@@ -1 +0,0 @@
-{ts}Recurring Contribution Notification{/ts}
diff --git a/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/contribution_recurring_notify_text.tpl b/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/contribution_recurring_notify_text.tpl
deleted file mode 100644 (file)
index b6a7c3e..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-{ts 1=$displayName}Dear %1{/ts},
-
-{if $recur_txnType eq 'START'}
-
-{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) for a total %3 installment.{/ts}
-
-
-{ts}Start Date{/ts}:  {$recur_start_date|crmDate}
-
-
-{ts 1=$receipt_from_name 2=$receipt_from_email}You have pledged to make this recurring donation. You will be charged periodically (per frequency listed above), and you will receive an email receipt from %1 following each charge. These recurring donations will continue until you explicitly cancel the donation. You may change or cancel your recurring donation at anytime by logged in your account. If you have questions about recurring donations please contact us at %2.{/ts}
-
-{elseif $recur_txnType eq 'END'}
-
-{ts}Your recurring contribution term has ended.{/ts}
-
-
-{ts 1=$recur_installments}You have successfully completed %1 recurring contributions. Thank you for your support.{/ts}
-
-
-==================================================
-{ts 1=$recur_installments}Interval of Subscription for %1 installments{/ts}
-
-==================================================
-{ts}Start Date{/ts}: {$recur_start_date|crmDate}
-
-{ts}End Date{/ts}: {$recur_end_date|crmDate}
-
-{/if}
diff --git a/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/event_offline_receipt_html.tpl b/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/event_offline_receipt_html.tpl
deleted file mode 100644 (file)
index 0398375..0000000
+++ /dev/null
@@ -1,433 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title></title>
-</head>
-<body>
-
-{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}
-
-<center>
- <table width="620" border="0" cellpadding="0" cellspacing="0" id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left;">
-
-  <!-- BEGIN HEADER -->
-  <!-- You can add table row(s) here with logo or other header elements -->
-  <!-- BEGIN HEADER -->
-
-  <!-- BEGIN CONTENT -->
-
-  <tr>
-   <td>
-
-    {if $event.confirm_email_text AND (not $isOnWaitlist AND not $isRequireApproval)}
-     <p>{$event.confirm_email_text}</p>
-    {/if}
-
-    {if $isOnWaitlist}
-     <p>{ts}You have been added to the WAIT LIST for this event.{/ts}</p>
-     {if $isPrimary}
-       <p>{ts}If space becomes available you will receive an email with
-a link to a web page where you can complete your registration.{/ts}</p>
-     {/if}
-    {elseif $isRequireApproval}
-     <p>{ts}Your registration has been submitted.{/ts}</p>
-     {if $isPrimary}
-      <p>{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}</p>
-     {/if}
-    {elseif $is_pay_later}
-     <p>{$pay_later_receipt}</p> {* FIXME: this might be text rather than HTML *}
-    {else}
-     <p>{ts}Please print this confirmation for your records.{/ts}</p>
-    {/if}
-
-   </td>
-  </tr>
-  <tr>
-   <td>
-    <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
-     <tr>
-      <th {$headerStyle}>
-       {ts}Event Information and Location{/ts}
-      </th>
-     </tr>
-     <tr>
-      <td colspan="2" {$valueStyle}>
-       {$event.event_title}<br />
-       {$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}
-      </td>
-     </tr>
-
-     {if $event.participant_role neq 'Attendee' and $defaultRole}
-      <tr>
-       <td {$labelStyle}>
-        {ts}Participant Role{/ts}
-       </td>
-       <td {$valueStyle}>
-        {$event.participant_role}
-       </td>
-      </tr>
-     {/if}
-
-     {if $isShowLocation}
-      <tr>
-       <td colspan="2" {$valueStyle}>
-        {if $location.address.1.name}
-         {$location.address.1.name}<br />
-        {/if}
-        {if $location.address.1.street_address}
-         {$location.address.1.street_address}<br />
-        {/if}
-        {if $location.address.1.supplemental_address_1}
-         {$location.address.1.supplemental_address_1}<br />
-        {/if}
-        {if $location.address.1.supplemental_address_2}
-         {$location.address.1.supplemental_address_2}<br />
-        {/if}
-        {if $location.address.1.city}
-         {$location.address.1.city} {$location.address.1.postal_code}{if $location.address.1.postal_code_suffix} - {$location.address.1.postal_code_suffix}{/if}<br />
-        {/if}
-       </td>
-      </tr>
-     {/if}
-
-     {if $location.phone.1.phone || $location.email.1.email}
-      <tr>
-       <td colspan="2" {$labelStyle}>
-        {ts}Event Contacts:{/ts}
-       </td>
-      </tr>
-      {foreach from=$location.phone item=phone}
-       {if $phone.phone}
-        <tr>
-         <td {$labelStyle}>
-          {if $phone.phone_type}
-           {$phone.phone_type_display}
-          {else}
-           {ts}Phone{/ts}
-          {/if}
-         </td>
-         <td {$valueStyle}>
-          {$phone.phone}
-         </td>
-        </tr>
-       {/if}
-      {/foreach}
-      {foreach from=$location.email item=eventEmail}
-       {if $eventEmail.email}
-        <tr>
-         <td {$labelStyle}>
-          {ts}Email{/ts}
-         </td>
-         <td {$valueStyle}>
-          {$eventEmail.email}
-         </td>
-        </tr>
-       {/if}
-      {/foreach}
-     {/if}
-     <tr>
-      <td colspan="2" {$valueStyle}>
-       {capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&id=`$event.id`" h=0 a=1}{/capture}
-       <a href="{$icalFeed}">{ts}Download iCalendar File{/ts}</a>
-      </td>
-     </tr>
-     {if $email}
-      <tr>
-       <th {$headerStyle}>
-        {ts}Registered Email{/ts}
-       </th>
-      </tr>
-      <tr>
-       <td colspan="2" {$valueStyle}>
-        {$email}
-       </td>
-      </tr>
-     {/if}
-
-
-     {if $event.is_monetary}
-
-      <tr>
-       <th {$headerStyle}>
-        {$event.fee_label}
-       </th>
-      </tr>
-
-      {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. *}
-           <tr>
-            <td colspan="2" {$labelStyle}>
-             {ts 1=$priceset+1}Participant %1{/ts}
-            </td>
-           </tr>
-          {/if}
-         {/if}
-         <tr>
-          <td colspan="2" {$valueStyle}>
-           <table> {* FIXME: style this table so that it looks like the text version (justification, etc.) *}
-            <tr>
-             <th>{ts}Item{/ts}</th>
-             <th>{ts}Qty{/ts}</th>
-             <th>{ts}Each{/ts}</th>
-             <th>{ts}Total{/ts}</th>
-            </tr>
-            {foreach from=$value item=line}
-             <tr>
-              <td>
-               {$line.description|truncate:30:"..."}
-              </td>
-              <td>
-               {$line.qty}
-              </td>
-              <td>
-               {$line.unit_price|crmMoney}
-              </td>
-              <td>
-               {$line.line_total|crmMoney}
-              </td>
-             </tr>
-            {/foreach}
-           </table>
-          </td>
-         </tr>
-        {/if}
-       {/foreach}
-      {/if}
-
-      {if $amount && !$lineItem}
-       {foreach from=$amount item=amnt key=level}
-        <tr>
-         <td colspan="2" {$valueStyle}>
-          {$amnt.amount|crmMoney} {$amnt.label}
-         </td>
-        </tr>
-       {/foreach}
-      {/if}
-
-      {if $isPrimary}
-       <tr>
-        <td {$labelStyle}>
-         {ts}Total Amount{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$totalAmount|crmMoney} {if $hookDiscount.message}({$hookDiscount.message}){/if}
-        </td>
-       </tr>
-
-       {if $is_pay_later}
-        <tr>
-         <td colspan="2" {$labelStyle}>
-          {$pay_later_receipt}
-         </td>
-        </tr>
-       {/if}
-
-       {if $register_date}
-        <tr>
-         <td {$labelStyle}>
-          {ts}Registration Date{/ts}
-         </td>
-         <td {$valueStyle}>
-          {$register_date|crmDate}
-         </td>
-        </tr>
-       {/if}
-
-       {if $receive_date}
-        <tr>
-         <td {$labelStyle}>
-          {ts}Transaction Date{/ts}
-         </td>
-         <td {$valueStyle}>
-          {$receive_date|crmDate}
-         </td>
-        </tr>
-       {/if}
-
-       {if $contributionTypeName}
-        <tr>
-         <td {$labelStyle}>
-          {ts}Contribution Type{/ts}
-         </td>
-         <td {$valueStyle}>
-          {$contributionTypeName}
-         </td>
-        </tr>
-       {/if}
-
-       {if $trxn_id}
-        <tr>
-         <td {$labelStyle}>
-          {ts}Transaction #{/ts}
-         </td>
-         <td {$valueStyle}>
-          {$trxn_id}
-         </td>
-        </tr>
-       {/if}
-
-       {if $paidBy}
-        <tr>
-         <td {$labelStyle}>
-          {ts}Paid By{/ts}
-         </td>
-         <td {$valueStyle}>
-         {$paidBy}
-         </td>
-        </tr>
-       {/if}
-
-       {if $checkNumber}
-        <tr>
-         <td {$labelStyle}>
-          {ts}Check Number{/ts}
-         </td>
-         <td {$valueStyle}>
-          {$checkNumber}
-         </td>
-        </tr>
-       {/if}
-
-       {if $contributeMode ne 'notify' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
-        <tr>
-         <th {$headerStyle}>
-          {ts}Billing Name and Address{/ts}
-         </th>
-        </tr>
-        <tr>
-         <td colspan="2" {$valueStyle}>
-          {$billingName}<br />
-          {$address|nl2br}
-         </td>
-        </tr>
-       {/if}
-
-       {if $contributeMode eq 'direct' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
-        <tr>
-         <th {$headerStyle}>
-          {ts}Credit Card Information{/ts}
-         </th>
-        </tr>
-        <tr>
-         <td colspan="2" {$valueStyle}>
-          {$credit_card_type}<br />
-          {$credit_card_number}<br />
-          {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}
-         </td>
-        </tr>
-       {/if}
-
-      {/if}
-
-     {/if} {* End of conditional section for Paid events *}
-
-     {if $customPre}
-      <tr>
-       <th {$headerStyle}>
-        {$customPre_grouptitle}
-       </th>
-      </tr>
-      {foreach from=$customPre item=value key=customName}
-       {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
-        <tr>
-         <td {$labelStyle}>
-          {$customName}
-         </td>
-         <td {$valueStyle}>
-          {$value}
-         </td>
-        </tr>
-       {/if}
-      {/foreach}
-     {/if}
-
-     {if $customPost}
-      <tr>
-       <th {$headerStyle}>
-        {$customPost_grouptitle}
-       </th>
-      </tr>
-      {foreach from=$customPost item=value key=customName}
-       {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
-        <tr>
-         <td {$labelStyle}>
-          {$customName}
-         </td>
-         <td {$valueStyle}>
-          {$value}
-         </td>
-        </tr>
-       {/if}
-      {/foreach}
-     {/if}
-
-     {if $customProfile}
-      {foreach from=$customProfile item=value key=customName}
-       <tr>
-        <th {$headerStyle}>
-         {ts 1=$customName+1}Participant Information - Participant %1{/ts}
-        </th>
-       <tr>
-       {foreach from=$value item=val key=field}
-        {if $field eq 'additionalCustomPre' or $field eq 'additionalCustomPost'}
-         <tr>
-          <td colspan="2" {$labelStyle}>
-           {if $field eq 'additionalCustomPre'}
-            {$additionalCustomPre_grouptitle}
-           {else}
-            {$additionalCustomPost_grouptitle}
-           {/if}
-          </td>
-         </tr>
-         {foreach from=$val item=v key=f}
-          <tr>
-           <td {$labelStyle}>
-            {$f}
-           </td>
-           <td {$valueStyle}>
-            {$v}
-           </td>
-          </tr>
-         {/foreach}
-        {/if}
-       {/foreach}
-      {/foreach}
-     {/if}
-
-     {if $customGroup}
-      {foreach from=$customGroup item=value key=customName}
-       <tr>
-        <th {$headerStyle}>
-         {$customName}
-        </th>
-       </tr>
-       {foreach from=$value item=v key=n}
-        <tr>
-         <td {$labelStyle}>
-          {$n}
-         </td>
-         <td {$valueStyle}>
-          {$v}
-         </td>
-        </tr>
-       {/foreach}
-      {/foreach}
-     {/if}
-
-    </table>
-   </td>
-  </tr>
-
- </table>
-</center>
-
-</body>
-</html>
diff --git a/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/event_offline_receipt_subject.tpl b/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/event_offline_receipt_subject.tpl
deleted file mode 100644 (file)
index 5cbe60c..0000000
+++ /dev/null
@@ -1 +0,0 @@
-{ts}Event Confirmation{/ts} - {$event.title}
diff --git a/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/event_offline_receipt_text.tpl b/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/event_offline_receipt_text.tpl
deleted file mode 100644 (file)
index 6e317be..0000000
+++ /dev/null
@@ -1,226 +0,0 @@
-{if $event.confirm_email_text AND (not $isOnWaitlist AND not $isRequireApproval)}
-{$event.confirm_email_text}
-{/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}
-===========================================================
-{else}
-
-{ts}Please print this confirmation for your records.{/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 $event.participant_role neq 'Attendee' and $defaultRole}
-{ts}Participant Role{/ts}: {$event.participant_role}
-{/if}
-
-{if $isShowLocation}
-{if $location.address.1.name}
-
-{$location.address.1.name}
-{/if}
-{if $location.address.1.street_address}{$location.address.1.street_address}
-{/if}
-{if $location.address.1.supplemental_address_1}{$location.address.1.supplemental_address_1}
-{/if}
-{if $location.address.1.supplemental_address_2}{$location.address.1.supplemental_address_2}
-{/if}
-{if $location.address.1.city}{$location.address.1.city} {$location.address.1.postal_code}{if $location.address.1.postal_code_suffix} - {$location.address.1.postal_code_suffix}{/if}
-{/if}
-
-{/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}
-{/foreach}
-{foreach from=$location.email item=eventEmail}
-{if $eventEmail.email}
-
-{ts}Email{/ts}: {$eventEmail.email}{/if}{/foreach}
-{/if}
-
-{capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&id=`$event.id`" h=0 a=1}{/capture}
-{ts}Download iCalendar File:{/ts} {$icalFeed}
-{if $email}
-
-===========================================================
-{ts}Registered Email{/ts}
-
-===========================================================
-{$email}
-{/if}
-{if $event.is_monetary} {* This section for Paid events only.*}
-
-===========================================================
-{$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}
----------------------------------------------------------
-{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}
-{/if}
-{/foreach}
-{/if}
-{if $amount && !$lineItem}
-{foreach from=$amount item=amnt key=level}{$amnt.amount|crmMoney} {$amnt.label}
-{/foreach}
-{/if}
-{if $isPrimary }
-
-{ts}Total Amount{/ts}: {$totalAmount|crmMoney} {if $hookDiscount.message}({$hookDiscount.message}){/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 $contributionTypeName}
-{ts}Contribution Type{/ts}: {$contributionTypeName}
-{/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 $contributeMode ne 'notify' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
-
-===========================================================
-{ts}Billing Name and Address{/ts}
-
-===========================================================
-{$billingName}
-{$address}
-{/if}
-
-{if $contributeMode eq 'direct' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
-===========================================================
-{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}
-
-
diff --git a/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/event_online_receipt_html.tpl b/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/event_online_receipt_html.tpl
deleted file mode 100644 (file)
index 0398375..0000000
+++ /dev/null
@@ -1,433 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title></title>
-</head>
-<body>
-
-{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}
-
-<center>
- <table width="620" border="0" cellpadding="0" cellspacing="0" id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left;">
-
-  <!-- BEGIN HEADER -->
-  <!-- You can add table row(s) here with logo or other header elements -->
-  <!-- BEGIN HEADER -->
-
-  <!-- BEGIN CONTENT -->
-
-  <tr>
-   <td>
-
-    {if $event.confirm_email_text AND (not $isOnWaitlist AND not $isRequireApproval)}
-     <p>{$event.confirm_email_text}</p>
-    {/if}
-
-    {if $isOnWaitlist}
-     <p>{ts}You have been added to the WAIT LIST for this event.{/ts}</p>
-     {if $isPrimary}
-       <p>{ts}If space becomes available you will receive an email with
-a link to a web page where you can complete your registration.{/ts}</p>
-     {/if}
-    {elseif $isRequireApproval}
-     <p>{ts}Your registration has been submitted.{/ts}</p>
-     {if $isPrimary}
-      <p>{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}</p>
-     {/if}
-    {elseif $is_pay_later}
-     <p>{$pay_later_receipt}</p> {* FIXME: this might be text rather than HTML *}
-    {else}
-     <p>{ts}Please print this confirmation for your records.{/ts}</p>
-    {/if}
-
-   </td>
-  </tr>
-  <tr>
-   <td>
-    <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
-     <tr>
-      <th {$headerStyle}>
-       {ts}Event Information and Location{/ts}
-      </th>
-     </tr>
-     <tr>
-      <td colspan="2" {$valueStyle}>
-       {$event.event_title}<br />
-       {$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}
-      </td>
-     </tr>
-
-     {if $event.participant_role neq 'Attendee' and $defaultRole}
-      <tr>
-       <td {$labelStyle}>
-        {ts}Participant Role{/ts}
-       </td>
-       <td {$valueStyle}>
-        {$event.participant_role}
-       </td>
-      </tr>
-     {/if}
-
-     {if $isShowLocation}
-      <tr>
-       <td colspan="2" {$valueStyle}>
-        {if $location.address.1.name}
-         {$location.address.1.name}<br />
-        {/if}
-        {if $location.address.1.street_address}
-         {$location.address.1.street_address}<br />
-        {/if}
-        {if $location.address.1.supplemental_address_1}
-         {$location.address.1.supplemental_address_1}<br />
-        {/if}
-        {if $location.address.1.supplemental_address_2}
-         {$location.address.1.supplemental_address_2}<br />
-        {/if}
-        {if $location.address.1.city}
-         {$location.address.1.city} {$location.address.1.postal_code}{if $location.address.1.postal_code_suffix} - {$location.address.1.postal_code_suffix}{/if}<br />
-        {/if}
-       </td>
-      </tr>
-     {/if}
-
-     {if $location.phone.1.phone || $location.email.1.email}
-      <tr>
-       <td colspan="2" {$labelStyle}>
-        {ts}Event Contacts:{/ts}
-       </td>
-      </tr>
-      {foreach from=$location.phone item=phone}
-       {if $phone.phone}
-        <tr>
-         <td {$labelStyle}>
-          {if $phone.phone_type}
-           {$phone.phone_type_display}
-          {else}
-           {ts}Phone{/ts}
-          {/if}
-         </td>
-         <td {$valueStyle}>
-          {$phone.phone}
-         </td>
-        </tr>
-       {/if}
-      {/foreach}
-      {foreach from=$location.email item=eventEmail}
-       {if $eventEmail.email}
-        <tr>
-         <td {$labelStyle}>
-          {ts}Email{/ts}
-         </td>
-         <td {$valueStyle}>
-          {$eventEmail.email}
-         </td>
-        </tr>
-       {/if}
-      {/foreach}
-     {/if}
-     <tr>
-      <td colspan="2" {$valueStyle}>
-       {capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&id=`$event.id`" h=0 a=1}{/capture}
-       <a href="{$icalFeed}">{ts}Download iCalendar File{/ts}</a>
-      </td>
-     </tr>
-     {if $email}
-      <tr>
-       <th {$headerStyle}>
-        {ts}Registered Email{/ts}
-       </th>
-      </tr>
-      <tr>
-       <td colspan="2" {$valueStyle}>
-        {$email}
-       </td>
-      </tr>
-     {/if}
-
-
-     {if $event.is_monetary}
-
-      <tr>
-       <th {$headerStyle}>
-        {$event.fee_label}
-       </th>
-      </tr>
-
-      {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. *}
-           <tr>
-            <td colspan="2" {$labelStyle}>
-             {ts 1=$priceset+1}Participant %1{/ts}
-            </td>
-           </tr>
-          {/if}
-         {/if}
-         <tr>
-          <td colspan="2" {$valueStyle}>
-           <table> {* FIXME: style this table so that it looks like the text version (justification, etc.) *}
-            <tr>
-             <th>{ts}Item{/ts}</th>
-             <th>{ts}Qty{/ts}</th>
-             <th>{ts}Each{/ts}</th>
-             <th>{ts}Total{/ts}</th>
-            </tr>
-            {foreach from=$value item=line}
-             <tr>
-              <td>
-               {$line.description|truncate:30:"..."}
-              </td>
-              <td>
-               {$line.qty}
-              </td>
-              <td>
-               {$line.unit_price|crmMoney}
-              </td>
-              <td>
-               {$line.line_total|crmMoney}
-              </td>
-             </tr>
-            {/foreach}
-           </table>
-          </td>
-         </tr>
-        {/if}
-       {/foreach}
-      {/if}
-
-      {if $amount && !$lineItem}
-       {foreach from=$amount item=amnt key=level}
-        <tr>
-         <td colspan="2" {$valueStyle}>
-          {$amnt.amount|crmMoney} {$amnt.label}
-         </td>
-        </tr>
-       {/foreach}
-      {/if}
-
-      {if $isPrimary}
-       <tr>
-        <td {$labelStyle}>
-         {ts}Total Amount{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$totalAmount|crmMoney} {if $hookDiscount.message}({$hookDiscount.message}){/if}
-        </td>
-       </tr>
-
-       {if $is_pay_later}
-        <tr>
-         <td colspan="2" {$labelStyle}>
-          {$pay_later_receipt}
-         </td>
-        </tr>
-       {/if}
-
-       {if $register_date}
-        <tr>
-         <td {$labelStyle}>
-          {ts}Registration Date{/ts}
-         </td>
-         <td {$valueStyle}>
-          {$register_date|crmDate}
-         </td>
-        </tr>
-       {/if}
-
-       {if $receive_date}
-        <tr>
-         <td {$labelStyle}>
-          {ts}Transaction Date{/ts}
-         </td>
-         <td {$valueStyle}>
-          {$receive_date|crmDate}
-         </td>
-        </tr>
-       {/if}
-
-       {if $contributionTypeName}
-        <tr>
-         <td {$labelStyle}>
-          {ts}Contribution Type{/ts}
-         </td>
-         <td {$valueStyle}>
-          {$contributionTypeName}
-         </td>
-        </tr>
-       {/if}
-
-       {if $trxn_id}
-        <tr>
-         <td {$labelStyle}>
-          {ts}Transaction #{/ts}
-         </td>
-         <td {$valueStyle}>
-          {$trxn_id}
-         </td>
-        </tr>
-       {/if}
-
-       {if $paidBy}
-        <tr>
-         <td {$labelStyle}>
-          {ts}Paid By{/ts}
-         </td>
-         <td {$valueStyle}>
-         {$paidBy}
-         </td>
-        </tr>
-       {/if}
-
-       {if $checkNumber}
-        <tr>
-         <td {$labelStyle}>
-          {ts}Check Number{/ts}
-         </td>
-         <td {$valueStyle}>
-          {$checkNumber}
-         </td>
-        </tr>
-       {/if}
-
-       {if $contributeMode ne 'notify' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
-        <tr>
-         <th {$headerStyle}>
-          {ts}Billing Name and Address{/ts}
-         </th>
-        </tr>
-        <tr>
-         <td colspan="2" {$valueStyle}>
-          {$billingName}<br />
-          {$address|nl2br}
-         </td>
-        </tr>
-       {/if}
-
-       {if $contributeMode eq 'direct' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
-        <tr>
-         <th {$headerStyle}>
-          {ts}Credit Card Information{/ts}
-         </th>
-        </tr>
-        <tr>
-         <td colspan="2" {$valueStyle}>
-          {$credit_card_type}<br />
-          {$credit_card_number}<br />
-          {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}
-         </td>
-        </tr>
-       {/if}
-
-      {/if}
-
-     {/if} {* End of conditional section for Paid events *}
-
-     {if $customPre}
-      <tr>
-       <th {$headerStyle}>
-        {$customPre_grouptitle}
-       </th>
-      </tr>
-      {foreach from=$customPre item=value key=customName}
-       {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
-        <tr>
-         <td {$labelStyle}>
-          {$customName}
-         </td>
-         <td {$valueStyle}>
-          {$value}
-         </td>
-        </tr>
-       {/if}
-      {/foreach}
-     {/if}
-
-     {if $customPost}
-      <tr>
-       <th {$headerStyle}>
-        {$customPost_grouptitle}
-       </th>
-      </tr>
-      {foreach from=$customPost item=value key=customName}
-       {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
-        <tr>
-         <td {$labelStyle}>
-          {$customName}
-         </td>
-         <td {$valueStyle}>
-          {$value}
-         </td>
-        </tr>
-       {/if}
-      {/foreach}
-     {/if}
-
-     {if $customProfile}
-      {foreach from=$customProfile item=value key=customName}
-       <tr>
-        <th {$headerStyle}>
-         {ts 1=$customName+1}Participant Information - Participant %1{/ts}
-        </th>
-       <tr>
-       {foreach from=$value item=val key=field}
-        {if $field eq 'additionalCustomPre' or $field eq 'additionalCustomPost'}
-         <tr>
-          <td colspan="2" {$labelStyle}>
-           {if $field eq 'additionalCustomPre'}
-            {$additionalCustomPre_grouptitle}
-           {else}
-            {$additionalCustomPost_grouptitle}
-           {/if}
-          </td>
-         </tr>
-         {foreach from=$val item=v key=f}
-          <tr>
-           <td {$labelStyle}>
-            {$f}
-           </td>
-           <td {$valueStyle}>
-            {$v}
-           </td>
-          </tr>
-         {/foreach}
-        {/if}
-       {/foreach}
-      {/foreach}
-     {/if}
-
-     {if $customGroup}
-      {foreach from=$customGroup item=value key=customName}
-       <tr>
-        <th {$headerStyle}>
-         {$customName}
-        </th>
-       </tr>
-       {foreach from=$value item=v key=n}
-        <tr>
-         <td {$labelStyle}>
-          {$n}
-         </td>
-         <td {$valueStyle}>
-          {$v}
-         </td>
-        </tr>
-       {/foreach}
-      {/foreach}
-     {/if}
-
-    </table>
-   </td>
-  </tr>
-
- </table>
-</center>
-
-</body>
-</html>
diff --git a/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/event_online_receipt_subject.tpl b/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/event_online_receipt_subject.tpl
deleted file mode 100644 (file)
index dcf0bcc..0000000
+++ /dev/null
@@ -1 +0,0 @@
-{if $isOnWaitlist}{ts}Wait List Confirmation{/ts}{else}{ts}Registration Confirmation{/ts}{/if} - {$title}
diff --git a/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/event_online_receipt_text.tpl b/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/event_online_receipt_text.tpl
deleted file mode 100644 (file)
index 6e317be..0000000
+++ /dev/null
@@ -1,226 +0,0 @@
-{if $event.confirm_email_text AND (not $isOnWaitlist AND not $isRequireApproval)}
-{$event.confirm_email_text}
-{/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}
-===========================================================
-{else}
-
-{ts}Please print this confirmation for your records.{/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 $event.participant_role neq 'Attendee' and $defaultRole}
-{ts}Participant Role{/ts}: {$event.participant_role}
-{/if}
-
-{if $isShowLocation}
-{if $location.address.1.name}
-
-{$location.address.1.name}
-{/if}
-{if $location.address.1.street_address}{$location.address.1.street_address}
-{/if}
-{if $location.address.1.supplemental_address_1}{$location.address.1.supplemental_address_1}
-{/if}
-{if $location.address.1.supplemental_address_2}{$location.address.1.supplemental_address_2}
-{/if}
-{if $location.address.1.city}{$location.address.1.city} {$location.address.1.postal_code}{if $location.address.1.postal_code_suffix} - {$location.address.1.postal_code_suffix}{/if}
-{/if}
-
-{/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}
-{/foreach}
-{foreach from=$location.email item=eventEmail}
-{if $eventEmail.email}
-
-{ts}Email{/ts}: {$eventEmail.email}{/if}{/foreach}
-{/if}
-
-{capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&id=`$event.id`" h=0 a=1}{/capture}
-{ts}Download iCalendar File:{/ts} {$icalFeed}
-{if $email}
-
-===========================================================
-{ts}Registered Email{/ts}
-
-===========================================================
-{$email}
-{/if}
-{if $event.is_monetary} {* This section for Paid events only.*}
-
-===========================================================
-{$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}
----------------------------------------------------------
-{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}
-{/if}
-{/foreach}
-{/if}
-{if $amount && !$lineItem}
-{foreach from=$amount item=amnt key=level}{$amnt.amount|crmMoney} {$amnt.label}
-{/foreach}
-{/if}
-{if $isPrimary }
-
-{ts}Total Amount{/ts}: {$totalAmount|crmMoney} {if $hookDiscount.message}({$hookDiscount.message}){/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 $contributionTypeName}
-{ts}Contribution Type{/ts}: {$contributionTypeName}
-{/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 $contributeMode ne 'notify' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
-
-===========================================================
-{ts}Billing Name and Address{/ts}
-
-===========================================================
-{$billingName}
-{$address}
-{/if}
-
-{if $contributeMode eq 'direct' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
-===========================================================
-{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}
-
-
diff --git a/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/friend_html.tpl b/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/friend_html.tpl
deleted file mode 100644 (file)
index b372c1b..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title></title>
-</head>
-<body>
-
-{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}
-
-<center>
- <table width="620" border="0" cellpadding="0" cellspacing="0" id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left;">
-
-  <!-- BEGIN HEADER -->
-  <!-- You can add table row(s) here with logo or other header elements -->
-  <!-- BEGIN HEADER -->
-
-  <!-- BEGIN CONTENT -->
-
-  <tr>
-   <td>
-    <p>{$senderMessage}</p>
-    {if $generalLink}
-     <p><a href="{$generalLink}">{ts}More information{/ts}</a></p>
-    {/if}
-    {if $contribute}
-     <p><a href="{$pageURL}">{ts}Make a contribution{/ts}</a></p>
-    {/if}
-    {if $event}
-     <p><a href="{$pageURL}">{ts}Find out more about this event{/ts}</a></p>
-    {/if}
-   </td>
-  </tr>
- </table>
-</center>
-
-</body>
-</html>
diff --git a/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/friend_subject.tpl b/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/friend_subject.tpl
deleted file mode 100644 (file)
index c628fa3..0000000
+++ /dev/null
@@ -1 +0,0 @@
-{ts 1=$senderContactName 2=$title}%1 wants you to know about %2{/ts}
diff --git a/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/friend_text.tpl b/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/friend_text.tpl
deleted file mode 100644 (file)
index 2712ae3..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-{$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}
-
-
diff --git a/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/membership_offline_receipt_html.tpl b/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/membership_offline_receipt_html.tpl
deleted file mode 100644 (file)
index 117f06e..0000000
+++ /dev/null
@@ -1,203 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title></title>
-</head>
-<body>
-
-{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}
-
-<center>
- <table width="620" border="0" cellpadding="0" cellspacing="0" id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left;">
-
-  <!-- BEGIN HEADER -->
-  <!-- You can add table row(s) here with logo or other header elements -->
-  <!-- BEGIN HEADER -->
-
-  <!-- BEGIN CONTENT -->
-
-  <tr>
-   <td>
-    {if $formValues.receipt_text_signup}
-     <p>{$formValues.receipt_text_signup}</p>
-    {elseif $formValues.receipt_text_renewal}
-     <p>{$formValues.receipt_text_renewal}</p>
-    {else}
-     <p>{ts}Thank you for your support.{/ts}</p>
-    {/if}
-    {if ! $cancelled}
-     <p>{ts}Please print this receipt for your records.{/ts}</p>
-    {/if}
-   </td>
-  </tr>
-  <tr>
-   <td>
-    <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
-     <tr>
-      <th {$headerStyle}>
-       {ts}Membership Information{/ts}
-      </th>
-     </tr>
-     <tr>
-      <td {$labelStyle}>
-       {ts}Membership Type{/ts}
-      </td>
-      <td {$valueStyle}>
-       {$membership_name}
-      </td>
-     </tr>
-     {if ! $cancelled}
-      <tr>
-       <td {$labelStyle}>
-        {ts}Membership Start Date{/ts}
-       </td>
-       <td {$valueStyle}>
-        {$mem_start_date}
-       </td>
-      </tr>
-      <tr>
-       <td {$labelStyle}>
-        {ts}Membership End Date{/ts}
-       </td>
-       <td {$valueStyle}>
-        {$mem_end_date}
-       </td>
-      </tr>
-      {if $formValues.total_amount}
-       <tr>
-        <th {$headerStyle}>
-         {ts}Membership Fee{/ts}
-        </th>
-       </tr>
-       {if $formValues.contributionType_name}
-        <tr>
-         <td {$labelStyle}>
-          {ts}Contribution Type{/ts}
-         </td>
-         <td {$valueStyle}>
-          {$formValues.contributionType_name}
-         </td>
-        </tr>
-       {/if}
-       <tr>
-        <td {$labelStyle}>
-         {ts}Amount{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$formValues.total_amount|crmMoney}
-        </td>
-       </tr>
-       {if $receive_date}
-        <tr>
-         <td {$labelStyle}>
-          {ts}Received Date{/ts}
-         </td>
-         <td {$valueStyle}>
-          {$receive_date|truncate:10:''|crmDate}
-         </td>
-        </tr>
-       {/if}
-       {if $formValues.paidBy}
-        <tr>
-         <td {$labelStyle}>
-          {ts}Paid By{/ts}
-         </td>
-         <td {$valueStyle}>
-          {$formValues.paidBy}
-         </td>
-        </tr>
-        {if $formValues.check_number}
-         <tr>
-          <td {$labelStyle}>
-           {ts}Check Number{/ts}
-          </td>
-          <td {$valueStyle}>
-           {$formValues.check_number}
-          </td>
-         </tr>
-        {/if}
-       {/if}
-      {/if}
-     {/if}
-    </table>
-   </td>
-  </tr>
-
-  {if $isPrimary}
-   <tr>
-    <td>
-     <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
-
-      {if $contributeMode ne 'notify' and !$isAmountzero and !$is_pay_later }
-       <tr>
-        <th {$headerStyle}>
-         {ts}Billing Name and Address{/ts}
-        </th>
-       </tr>
-       <tr>
-        <td {$labelStyle}>
-         {$billingName}<br />
-         {$address}
-        </td>
-       </tr>
-      {/if}
-
-      {if $contributeMode eq 'direct' and !$isAmountzero and !$is_pay_later}
-       <tr>
-        <th {$headerStyle}>
-         {ts}Credit Card Information{/ts}
-        </th>
-       </tr>
-       <tr>
-        <td {$valueStyle}>
-         {$credit_card_type}<br />
-         {$credit_card_number}
-        </td>
-       </tr>
-       <tr>
-        <td {$labelStyle}>
-         {ts}Expires{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$credit_card_exp_date|truncate:7:''|crmDate}
-        </td>
-       </tr>
-      {/if}
-
-     </table>
-    </td>
-   </tr>
-  {/if}
-
-  {if $customValues}
-   <tr>
-    <td>
-     <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
-      <tr>
-       <th {$headerStyle}>
-        {ts}Membership Options{/ts}
-       </th>
-      </tr>
-      {foreach from=$customValues item=value key=customName}
-       <tr>
-        <td {$labelStyle}>
-         {$customName}
-        </td>
-        <td {$valueStyle}>
-         {$value}
-        </td>
-       </tr>
-      {/foreach}
-     </table>
-    </td>
-   </tr>
-  {/if}
-
- </table>
-</center>
-
-</body>
-</html>
diff --git a/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/membership_offline_receipt_subject.tpl b/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/membership_offline_receipt_subject.tpl
deleted file mode 100644 (file)
index 0eaffe3..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-{if $receiptType EQ 'contribution'}
-{ts}Contribution Receipt{/ts}
-{elseif $receiptType EQ 'membership signup'}
-{ts}Membership Confirmation and Receipt{/ts}
-{elseif $receiptType EQ 'membership renewal'}
-{ts}Membership Renewal Confirmation and Receipt{/ts}
-{else}
-{ts}Receipt{/ts}
-{/if}
diff --git a/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/membership_offline_receipt_text.tpl b/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/membership_offline_receipt_text.tpl
deleted file mode 100644 (file)
index f1e18f3..0000000
+++ /dev/null
@@ -1,70 +0,0 @@
-{if $formValues.receipt_text_signup}
-{$formValues.receipt_text_signup}
-{elseif $formValues.receipt_text_renewal}
-{$formValues.receipt_text_renewal}
-{else}{ts}Thank you for your support.{/ts}{/if}
-
-{if ! $cancelled}{ts}Please print this receipt for your records.{/ts}
-
-
-{/if}
-===========================================================
-{ts}Membership Information{/ts}
-
-===========================================================
-{ts}Membership Type{/ts}: {$membership_name}
-{if ! $cancelled}
-{ts}Membership Start Date{/ts}: {$mem_start_date}
-{ts}Membership End Date{/ts}: {$mem_end_date}
-{if $formValues.total_amount}
-===========================================================
-{ts}Membership Fee{/ts}
-
-===========================================================
-{if $formValues.contributionType_name}
-{ts}Contribution Type{/ts}: {$formValues.contributionType_name}
-{/if}
-{ts}Amount{/ts}: {$formValues.total_amount|crmMoney}
-{if $receive_date}
-{ts}Received Date{/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 $contributeMode ne 'notify' and !$isAmountzero and !$is_pay_later  }
-
-===========================================================
-{ts}Billing Name and Address{/ts}
-
-===========================================================
-{$billingName}
-{$address}
-{/if}
-
-{if $contributeMode eq 'direct' and !$isAmountzero and !$is_pay_later}
-===========================================================
-{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}
diff --git a/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/membership_online_receipt_html.tpl b/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/membership_online_receipt_html.tpl
deleted file mode 100644 (file)
index a4e1450..0000000
+++ /dev/null
@@ -1,490 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title></title>
-</head>
-<body>
-
-{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}
-
-<center>
- <table width="620" border="0" cellpadding="0" cellspacing="0" id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left;">
-
-  <!-- BEGIN HEADER -->
-  <!-- You can add table row(s) here with logo or other header elements -->
-  <!-- BEGIN HEADER -->
-
-  <!-- BEGIN CONTENT -->
-
-  <tr>
-   <td>
-
-    {if $receipt_text}
-     <p>{$receipt_text}</p>
-    {/if}
-
-    {if $is_pay_later}
-     <p>{$pay_later_receipt}</p> {* FIXME: this might be text rather than HTML *}
-    {else}
-     <p>{ts}Please print this confirmation for your records.{/ts}</p>
-    {/if}
-
-   </td>
-  </tr>
-  <tr>
-   <td>
-    <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
-
-     {if $membership_assign}
-      <tr>
-       <th {$headerStyle}>
-        {ts}Membership Information{/ts}
-       </th>
-      </tr>
-      <tr>
-       <td {$labelStyle}>
-        {ts}Membership Type{/ts}
-       </td>
-       <td {$valueStyle}>
-        {$membership_name}
-       </td>
-      </tr>
-      {if $mem_start_date}
-       <tr>
-        <td {$labelStyle}>
-         {ts}Membership Start Date{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$mem_start_date|crmDate}
-        </td>
-       </tr>
-      {/if}
-      {if $mem_end_date}
-       <tr>
-        <td {$labelStyle}>
-         {ts}Membership End Date{/ts}
-        </td>
-        <td {$valueStyle}>
-          {$mem_end_date|crmDate}
-        </td>
-       </tr>
-      {/if}
-     {/if}
-
-
-     {if $amount}
-
-
-      <tr>
-       <th {$headerStyle}>
-        {ts}Membership Fee{/ts}
-       </th>
-      </tr>
-
-      {if $membership_amount}
-
-       <tr>
-        <td {$labelStyle}>
-         {ts 1=$membership_name}%1 Membership{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$membership_amount|crmMoney}
-        </td>
-       </tr>
-       {if $amount}
-        {if ! $is_separate_payment }
-         <tr>
-          <td {$labelStyle}>
-           {ts}Contribution Amount{/ts}
-          </td>
-          <td {$valueStyle}>
-           {$amount|crmMoney}
-          </td>
-         </tr>
-        {else}
-         <tr>
-          <td {$labelStyle}>
-           {ts}Additional Contribution{/ts}
-          </td>
-          <td {$valueStyle}>
-           {$amount|crmMoney}
-          </td>
-         </tr>
-        {/if}
-       {/if}
-       <tr>
-        <td {$labelStyle}>
-         {ts}Total{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$amount+$membership_amount|crmMoney}
-        </td>
-       </tr>
-
-      {elseif $lineItem and $priceSetID}
-
-       {foreach from=$lineItem item=value key=priceset}
-        <tr>
-         <td colspan="2" {$valueStyle}>
-          <table> {* FIXME: style this table so that it looks like the text version (justification, etc.) *}
-           <tr>
-            <th>{ts}Item{/ts}</th>
-            <th>{ts}Qty{/ts}</th>
-            <th>{ts}Each{/ts}</th>
-            <th>{ts}Total{/ts}</th>
-           </tr>
-           {foreach from=$value item=line}
-            <tr>
-             <td>
-              {$line.description|truncate:30:"..."}
-             </td>
-             <td>
-              {$line.qty}
-             </td>
-             <td>
-              {$line.unit_price|crmMoney}
-             </td>
-             <td>
-              {$line.line_total|crmMoney}
-             </td>
-            </tr>
-           {/foreach}
-          </table>
-         </td>
-        </tr>
-       {/foreach}
-       <tr>
-        <td {$labelStyle}>
-         {ts}Total Amount{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$amount|crmMoney}
-        </td>
-       </tr>
-
-      {else}
-
-       <tr>
-        <td {$labelStyle}>
-         {ts}Amount{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$amount|crmMoney} {if $amount_level} - {$amount_level}{/if}
-        </td>
-       </tr>
-
-      {/if}
-
-
-     {elseif $membership_amount}
-
-
-      <tr>
-       <th {$headerStyle}>
-        {ts}Membership Fee{/ts}
-       </th>
-      </tr>
-      <tr>
-       <td {$labelStyle}>
-        {ts 1=$membership_name}%1 Membership{/ts}
-       </td>
-       <td {$valueStyle}>
-        {$membership_amount|crmMoney}
-       </td>
-      </tr>
-
-
-     {/if}
-
-
-     {if $receive_date}
-      <tr>
-       <td {$labelStyle}>
-        {ts}Date{/ts}
-       </td>
-       <td {$valueStyle}>
-        {$receive_date|crmDate}
-       </td>
-      </tr>
-     {/if}
-
-     {if $is_monetary and $trxn_id}
-      <tr>
-       <td {$labelStyle}>
-        {ts}Transaction #{/ts}
-       </td>
-       <td {$valueStyle}>
-        {$trxn_id}
-       </td>
-      </tr>
-     {/if}
-
-     {if $membership_trx_id}
-      <tr>
-       <td {$labelStyle}>
-        {ts}Membership Transaction #{/ts}
-       </td>
-       <td {$valueStyle}>
-        {$membership_trx_id}
-       </td>
-      </tr>
-     {/if}
-
-     {if $is_recur}
-      {if $contributeMode eq 'notify'}
-       <tr>
-        <td {$labelStyle}>
-         {ts 1=$cancelSubscriptionUrl}This is a recurring contribution. You can modify or cancel future contributions by <a href="%1">logging in to your account</a>.{/ts}
-        </td>
-       </tr>
-      {elseif $contributeMode eq 'directIPN' and $receiptFromEmail}
-       <tr>
-        <td {$labelStyle}>
-         {ts 1=$receiptFromEmail}This is a recurring contribution. To modify or cancel future contributions please contact us at %1.{/ts}
-        </td>
-       </tr>
-      {/if}
-     {/if}
-
-     {if $honor_block_is_active}
-      <tr>
-       <th {$headerStyle}>
-        {$honor_type}
-       </th>
-      </tr>
-      <tr>
-       <td colspan="2" {$labelStyle}>
-        {$honor_prefix} {$honor_first_name} {$honor_last_name}
-       </td>
-      </tr>
-      {if $honor_email}
-       <tr>
-        <td {$labelStyle}>
-         {ts}Honoree Email{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$honor_email}
-        </td>
-       </tr>
-      {/if}
-     {/if}
-
-     {if $pcpBlock}
-      <tr>
-       <th {$headerStyle}>
-        {ts}Personal Campaign Page{/ts}
-       </th>
-      </tr>
-      <tr>
-       <td {$labelStyle}>
-        {ts}Display In Honor Roll{/ts}
-       </td>
-       <td {$valueStyle}>
-        {if $pcp_display_in_roll}{ts}Yes{/ts}{else}{ts}No{/ts}{/if}
-       </td>
-      </tr>
-      {if $pcp_roll_nickname}
-       <tr>
-        <td {$labelStyle}>
-         {ts}Nickname{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$pcp_roll_nickname}
-        </td>
-       </tr>
-      {/if}
-      {if $pcp_personal_note}
-       <tr>
-        <td {$labelStyle}>
-         {ts}Personal Note{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$pcp_personal_note}
-        </td>
-       </tr>
-      {/if}
-     {/if}
-
-     {if $onBehalfName}
-      <tr>
-       <th {$headerStyle}>
-        {ts}On Behalf Of{/ts}
-       </th>
-      </tr>
-      <tr>
-       <td colspan="2" {$valueStyle}>
-        {$onBehalfName}<br />
-        {$onBehalfAddress|nl2br}<br />
-        {$onBehalfEmail}
-       </td>
-      </tr>
-     {/if}
-
-     {if ! ($contributeMode eq 'notify' OR $contributeMode eq 'directIPN') and $is_monetary}
-      {if $is_pay_later}
-       <tr>
-        <th {$headerStyle}>
-         {ts}Registered Email{/ts}
-        </th>
-       </tr>
-       <tr>
-        <td colspan="2" {$valueStyle}>
-         {$email}
-        </td>
-       </tr>
-      {elseif $amount GT 0 OR $membership_amount GT 0}
-       <tr>
-        <th {$headerStyle}>
-         {ts}Billing Name and Address{/ts}
-        </th>
-       </tr>
-       <tr>
-        <td colspan="2" {$valueStyle}>
-         {$billingName}<br />
-         {$address|nl2br}<br />
-         {$email}
-        </td>
-       </tr>
-      {/if}
-     {/if}
-
-     {if $contributeMode eq 'direct' AND !$is_pay_later AND ($amount GT 0 OR $membership_amount GT 0)}
-      <tr>
-       <th {$headerStyle}>
-        {ts}Credit Card Information{/ts}
-       </th>
-      </tr>
-      <tr>
-       <td colspan="2" {$valueStyle}>
-        {$credit_card_type}<br />
-        {$credit_card_number}<br />
-        {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}<br />
-       </td>
-      </tr>
-     {/if}
-
-     {if $selectPremium}
-      <tr>
-       <th {$headerStyle}>
-        {ts}Premium Information{/ts}
-       </th>
-      </tr>
-      <tr>
-       <td colspan="2" {$labelStyle}>
-        {$product_name}
-       </td>
-      </tr>
-      {if $option}
-       <tr>
-        <td {$labelStyle}>
-         {ts}Option{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$option}
-        </td>
-       </tr>
-      {/if}
-      {if $sku}
-       <tr>
-        <td {$labelStyle}>
-         {ts}SKU{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$sku}
-        </td>
-       </tr>
-      {/if}
-      {if $start_date}
-       <tr>
-        <td {$labelStyle}>
-         {ts}Start Date{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$start_date|crmDate}
-        </td>
-       </tr>
-      {/if}
-      {if $end_date}
-       <tr>
-        <td {$labelStyle}>
-         {ts}End Date{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$end_date|crmDate}
-        </td>
-       </tr>
-      {/if}
-      {if $contact_email OR $contact_phone}
-       <tr>
-        <td colspan="2" {$valueStyle}>
-         <p>{ts}For information about this premium, contact:{/ts}</p>
-         {if $contact_email}
-          <p>{$contact_email}</p>
-         {/if}
-         {if $contact_phone}
-          <p>{$contact_phone}</p>
-         {/if}
-        </td>
-       </tr>
-      {/if}
-      {if $is_deductible AND $price}
-        <tr>
-         <td colspan="2" {$valueStyle}>
-          <p>{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}</p>
-         </td>
-        </tr>
-      {/if}
-     {/if}
-
-     {if $customPre}
-      <tr>
-       <th {$headerStyle}>
-        {ts}{$customPre_grouptitle} {/ts}
-       </th>
-      </tr>
-      {foreach from=$customPre item=customValue key=customName}
-       {if ($trackingFields and ! in_array($customName, $trackingFields)) or ! $trackingFields}
-        <tr>
-         <td {$labelStyle}>
-          {$customName}
-         </td>
-         <td {$valueStyle}>
-          {$customValue}
-         </td>
-        </tr>
-       {/if}
-      {/foreach}
-     {/if}
-
-     {if $customPost}
-      <tr>
-       <th {$headerStyle}>
-        {ts}{$customPost_grouptitle}{/ts}
-       </th>
-      </tr>
-      {foreach from=$customPost item=customValue key=customName}
-       {if ($trackingFields and ! in_array($customName, $trackingFields)) or ! $trackingFields}
-        <tr>
-         <td {$labelStyle}>
-          {$customName}
-         </td>
-         <td {$valueStyle}>
-          {$customValue}
-         </td>
-        </tr>
-       {/if}
-      {/foreach}
-     {/if}
-
-    </table>
-   </td>
-  </tr>
-
- </table>
-</center>
-
-</body>
-</html>
diff --git a/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/membership_online_receipt_subject.tpl b/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/membership_online_receipt_subject.tpl
deleted file mode 100644 (file)
index 32d4e40..0000000
+++ /dev/null
@@ -1 +0,0 @@
-{if $is_pay_later}{ts}Invoice{/ts}{else}{ts}Receipt{/ts}{/if} - {$title}
diff --git a/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/membership_online_receipt_text.tpl b/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/membership_online_receipt_text.tpl
deleted file mode 100644 (file)
index 971d2e1..0000000
+++ /dev/null
@@ -1,209 +0,0 @@
-{if $receipt_text}
-{$receipt_text}
-{/if}
-{if $is_pay_later}
-
-===========================================================
-{$pay_later_receipt}
-===========================================================
-{else}
-
-{ts}Please print this receipt for your records.{/ts}
-{/if}
-
-{if $membership_assign}
-===========================================================
-{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 $membership_amount }
-{ts 1=$membership_name}%1 Membership{/ts}: {$membership_amount|crmMoney}
-{if $amount}
-{if ! $is_separate_payment }
-{ts}Contribution Amount{/ts}: {$amount|crmMoney}
-{else}
-{ts}Additional Contribution{/ts}: {$amount|crmMoney}
-{/if}
-{/if}
--------------------------------------------
-{ts}Total{/ts}: {$amount+$membership_amount|crmMoney}
-{elseif $lineItem and $priceSetID}
-{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}
-{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}
-{if $contributeMode eq 'notify'}
-{ts}This is a recurring contribution. You can modify or cancel future contributions by logging in to your account at:{/ts}
-
-{$cancelSubscriptionUrl}
-{elseif $contributeMode eq 'directIPN' and $receiptFromEmail}
-{ts 1=$receiptFromEmail}This is a recurring contribution. To modify or cancel future contributions please contact us at %1.{/ts}
-
-{/if}
-{/if}
-
-{if $honor_block_is_active }
-===========================================================
-{$honor_type}
-===========================================================
-{$honor_prefix} {$honor_first_name} {$honor_last_name}
-{if $honor_email}
-{ts}Honoree Email{/ts}: {$honor_email}
-{/if}
-
-{/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 $onBehalfName}
-===========================================================
-{ts}On Behalf Of{/ts}
-
-===========================================================
-{$onBehalfName}
-{$onBehalfAddress}
-
-{$onBehalfEmail}
-
-{/if}
-
-{if !( $contributeMode eq 'notify' OR $contributeMode eq 'directIPN' ) and $is_monetary}
-{if $is_pay_later}
-===========================================================
-{ts}Registered Email{/ts}
-
-===========================================================
-{$email}
-{elseif $amount GT 0 OR $membership_amount GT 0 }
-===========================================================
-{ts}Billing Name and Address{/ts}
-
-===========================================================
-{$billingName}
-{$address}
-
-{$email}
-{/if} {* End ! is_pay_later condition. *}
-{/if}
-{if $contributeMode eq 'direct' AND !$is_pay_later AND ( $amount GT 0 OR $membership_amount GT 0 ) }
-
-===========================================================
-{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}
-===========================================================
-{ts}{$customPre_grouptitle} {/ts}
-
-===========================================================
-{foreach from=$customPre item=customValue key=customName}
-{if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
- {$customName}: {$customValue}
-{/if}
-{/foreach}
-{/if}
-
-
-{if $customPost}
-===========================================================
-{ts}{$customPost_grouptitle}{/ts}
-
-===========================================================
-{foreach from=$customPost item=customValue key=customName}
-{if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
- {$customName}: {$customValue}
-{/if}
-{/foreach}
-{/if}
diff --git a/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/participant_cancelled_html.tpl b/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/participant_cancelled_html.tpl
deleted file mode 100644 (file)
index d81cd5a..0000000
+++ /dev/null
@@ -1,153 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title></title>
-</head>
-<body>
-
-{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}
-
-<center>
- <table width="620" border="0" cellpadding="0" cellspacing="0" id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left;">
-
-  <!-- BEGIN HEADER -->
-  <!-- You can add table row(s) here with logo or other header elements -->
-  <!-- BEGIN HEADER -->
-
-  <!-- BEGIN CONTENT -->
-
-  <tr>
-   <td>
-    <p>{ts 1=$contact.display_name}Dear %1{/ts},</p>
-    <p>{ts}Your Event Registration has been cancelled.{/ts}</p>
-   </td>
-  </tr>
-  <tr>
-   <td>
-    <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
-     <tr>
-      <th {$headerStyle}>
-       {ts}Event Information and Location{/ts}
-      </th>
-     </tr>
-     <tr>
-      <td colspan="2" {$valueStyle}>
-       {$event.event_title}<br />
-       {$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}
-      </td>
-     </tr>
-     <tr>
-      <td {$labelStyle}>
-       {ts}Participant Role{/ts}:
-      </td>
-      <td {$valueStyle}>
-       {$participant.role}
-      </td>
-     </tr>
-
-     {if $isShowLocation}
-      <tr>
-       <td colspan="2" {$valueStyle}>
-        {if $event.location.address.1.name}
-         {$event.location.address.1.name}<br />
-        {/if}
-        {if $event.location.address.1.street_address}
-         {$event.location.address.1.street_address}<br />
-        {/if}
-        {if $event.location.address.1.supplemental_address_1}
-         {$event.location.address.1.supplemental_address_1}<br />
-        {/if}
-        {if $event.location.address.1.supplemental_address_2}
-         {$event.location.address.1.supplemental_address_2}<br />
-        {/if}
-        {if $event.location.address.1.city}
-         {$event.location.address.1.city} {$event.location.address.1.postal_code}
-         {if $event.location.address.1.postal_code_suffix}
-          - {$event.location.address.1.postal_code_suffix}
-         {/if}
-        {/if}
-       </td>
-      </tr>
-     {/if}
-
-     {if $event.location.phone.1.phone || $event.location.email.1.email}
-      <tr>
-       <td colspan="2" {$labelStyle}>
-        {ts}Event Contacts:{/ts}
-       </td>
-      </tr>
-      {foreach from=$event.location.phone item=phone}
-       {if $phone.phone}
-        <tr>
-         <td {$labelStyle}>
-          {if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}
-         </td>
-         <td {$valueStyle}>
-          {$phone.phone}
-         </td>
-        </tr>
-       {/if}
-      {/foreach}
-      {foreach from=$event.location.email item=eventEmail}
-       {if $eventEmail.email}
-        <tr>
-         <td {$labelStyle}>
-          {ts}Email{/ts}
-         </td>
-         <td {$valueStyle}>
-          {$eventEmail.email}
-         </td>
-        </tr>
-       {/if}
-      {/foreach}
-     {/if}
-
-     {capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&id=`$event.id`" h=0 a=1}{/capture}
-     <tr>
-      <td colspan="2" {$valueStyle}>
-       <a href="{$icalFeed}">{ts}Download iCalendar File{/ts}</a>
-      </td>
-     </tr>
-
-     {if $contact.email}
-      <tr>
-       <th {$headerStyle}>
-        {ts}Registered Email{/ts}
-       </th>
-      </tr>
-      <tr>
-       <td colspan="2" {$valueStyle}>
-        {$contact.email}
-       </td>
-      </tr>
-     {/if}
-
-     {if $register_date}
-      <tr>
-       <td {$labelStyle}>
-        {ts}Registration Date{/ts}
-       </td>
-       <td {$valueStyle}>
-        {$participant.register_date|crmDate}
-       </td>
-      </tr>
-     {/if}
-
-    </table>
-   </td>
-  </tr>
-
-  <tr>
-   <td>
-    <p>{ts 1=$domain.phone 2=$domain.email}Please contact us at %1 or send email to %2 if you have questions.{/ts}</p>
-   </td>
-  </tr>
-
- </table>
-</center>
-
-</body>
-</html>
diff --git a/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/participant_cancelled_subject.tpl b/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/participant_cancelled_subject.tpl
deleted file mode 100644 (file)
index e45a6be..0000000
+++ /dev/null
@@ -1 +0,0 @@
-{ts 1=$event.event_title}Event Registration Cancelled for %1{/ts}
diff --git a/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/participant_cancelled_text.tpl b/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/participant_cancelled_text.tpl
deleted file mode 100644 (file)
index 5098890..0000000
+++ /dev/null
@@ -1,61 +0,0 @@
-{ts 1=$contact.display_name}Dear %1{/ts},
-
-{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}
-{if $event.location.address.1.name}
-
-{$event.location.address.1.name}
-{/if}
-{if $event.location.address.1.street_address}{$event.location.address.1.street_address}
-{/if}
-{if $event.location.address.1.supplemental_address_1}{$event.location.address.1.supplemental_address_1}
-{/if}
-{if $event.location.address.1.supplemental_address_2}{$event.location.address.1.supplemental_address_2}
-{/if}
-{if $event.location.address.1.city}{$event.location.address.1.city} {$event.location.address.1.postal_code}{if $event.location.address.1.postal_code_suffix} - {$event.location.address.1.postal_code_suffix}{/if}
-{/if}
-
-{/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}
-
-{capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&id=`$event.id`" h=0 a=1}{/capture}
-{ts}Download iCalendar File{/ts}: {$icalFeed}
-{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}
-
diff --git a/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/participant_confirm_html.tpl b/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/participant_confirm_html.tpl
deleted file mode 100644 (file)
index 8514e23..0000000
+++ /dev/null
@@ -1,165 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title></title>
-</head>
-<body>
-
-{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}
-
-<center>
- <table width="620" border="0" cellpadding="0" cellspacing="0" id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left;">
-
-  <!-- BEGIN HEADER -->
-  <!-- You can add table row(s) here with logo or other header elements -->
-  <!-- BEGIN HEADER -->
-
-  <!-- BEGIN CONTENT -->
-
-  <tr>
-   <td>
-    <p>{ts 1=$contact.display_name}Dear %1{/ts},</p>
-   </td>
-  </tr>
-  {if !$isAdditional and $participant.id}
-   <tr>
-    <th {$headerStyle}>
-     {ts}Confirm Your Registration{/ts}
-    </th>
-   </tr>
-   <tr>
-    <td colspan="2" {$valueStyle}>
-     {capture assign=confirmUrl}{crmURL p='civicrm/event/confirm' q="reset=1&participantId=`$participant.id`&cs=`$checksumValue`" a=true h=0}{/capture}
-     <a href="{$confirmUrl}">Go to a web page where you can confirm your registration online</a>
-    </td>
-   </tr>
-  {/if}
-  <tr>
-   <td>
-    <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
-     <tr>
-      <th {$headerStyle}>
-       {ts}Event Information and Location{/ts}
-      </th>
-     </tr>
-     <tr>
-      <td colspan="2" {$valueStyle}>
-       {$event.event_title}<br />
-       {$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}
-      </td>
-     </tr>
-     <tr>
-      <td {$labelStyle}>
-       {ts}Participant Role{/ts}:
-      </td>
-      <td {$valueStyle}>
-       {$participant.role}
-      </td>
-     </tr>
-
-     {if $isShowLocation}
-      <tr>
-       <td colspan="2" {$valueStyle}>
-        {if $event.location.address.1.name}
-         {$event.location.address.1.name}<br />
-        {/if}
-        {if $event.location.address.1.street_address}
-         {$event.location.address.1.street_address}<br />
-        {/if}
-        {if $event.location.address.1.supplemental_address_1}
-         {$event.location.address.1.supplemental_address_1}<br />
-        {/if}
-        {if $event.location.address.1.supplemental_address_2}
-         {$event.location.address.1.supplemental_address_2}<br />
-        {/if}
-        {if $event.location.address.1.city}
-         {$event.location.address.1.city} {$event.location.address.1.postal_code}
-         {if $event.location.address.1.postal_code_suffix}
-          - {$event.location.address.1.postal_code_suffix}
-         {/if}
-        {/if}
-       </td>
-      </tr>
-     {/if}
-
-     {if $event.location.phone.1.phone || $event.location.email.1.email}
-      <tr>
-       <td colspan="2" {$labelStyle}>
-        {ts}Event Contacts:{/ts}
-       </td>
-      </tr>
-      {foreach from=$event.location.phone item=phone}
-       {if $phone.phone}
-        <tr>
-         <td {$labelStyle}>
-          {if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}
-         </td>
-         <td {$valueStyle}>
-          {$phone.phone}
-         </td>
-        </tr>
-       {/if}
-      {/foreach}
-      {foreach from=$event.location.email item=eventEmail}
-       {if $eventEmail.email}
-        <tr>
-         <td {$labelStyle}>
-          {ts}Email{/ts}
-         </td>
-         <td {$valueStyle}>
-          {$eventEmail.email}
-         </td>
-        </tr>
-       {/if}
-      {/foreach}
-     {/if}
-
-     {capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&id=`$event.id`" h=0 a=1}{/capture}
-     <tr>
-      <td colspan="2" {$valueStyle}>
-       <a href="{$icalFeed}">{ts}Download iCalendar File{/ts}</a>
-      </td>
-     </tr>
-
-     {if $contact.email}
-      <tr>
-       <th {$headerStyle}>
-        {ts}Registered Email{/ts}
-       </th>
-      </tr>
-      <tr>
-       <td colspan="2" {$valueStyle}>
-        {$contact.email}
-       </td>
-      </tr>
-     {/if}
-
-     {if $register_date}
-      <tr>
-       <td {$labelStyle}>
-        {ts}Registration Date{/ts}
-       </td>
-       <td {$valueStyle}>
-        {$participant.register_date|crmDate}
-       </td>
-      </tr>
-     {/if}
-
-    </table>
-   </td>
-  </tr>
-
-  <tr>
-   <td>
-    <p>{ts 1=$domain.phone 2=$domain.email}Please contact us at %1 or send email to %2 if you have questions.{/ts}</p>
-   </td>
-  </tr>
-
- </table>
-</center>
-
-</body>
-</html>
diff --git a/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/participant_confirm_subject.tpl b/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/participant_confirm_subject.tpl
deleted file mode 100644 (file)
index 2f3b947..0000000
+++ /dev/null
@@ -1 +0,0 @@
-{ts 1=$event.event_title}Confirm your registration for %1{/ts}
diff --git a/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/participant_confirm_text.tpl b/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/participant_confirm_text.tpl
deleted file mode 100644 (file)
index 7a9675a..0000000
+++ /dev/null
@@ -1,68 +0,0 @@
-{ts 1=$contact.display_name}Dear %1{/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}{/capture}
-Click this link to go to a web page where you can confirm your registration online:
-{$confirmUrl}
-{/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}
-
-{ts}Participant Role{/ts}: {$participant.role}
-
-{if $isShowLocation}
-{if $event.location.address.1.name}
-
-{$event.location.address.1.name}
-{/if}
-{if $event.location.address.1.street_address}{$event.location.address.1.street_address}
-{/if}
-{if $event.location.address.1.supplemental_address_1}{$event.location.address.1.supplemental_address_1}
-{/if}
-{if $event.location.address.1.supplemental_address_2}{$event.location.address.1.supplemental_address_2}
-{/if}
-{if $event.location.address.1.city}{$event.location.address.1.city} {$event.location.address.1.postal_code}{if $event.location.address.1.postal_code_suffix} - {$event.location.address.1.postal_code_suffix}{/if}
-{/if}
-
-{/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}
-
-{capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&id=`$event.id`" h=0 a=1}{/capture}
-{ts}Download iCalendar File{/ts}: {$icalFeed}
-{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}
-
diff --git a/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/participant_expired_html.tpl b/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/participant_expired_html.tpl
deleted file mode 100644 (file)
index 14fd4f4..0000000
+++ /dev/null
@@ -1,156 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title></title>
-</head>
-<body>
-
-{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}
-
-<center>
- <table width="620" border="0" cellpadding="0" cellspacing="0" id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left;">
-
-  <!-- BEGIN HEADER -->
-  <!-- You can add table row(s) here with logo or other header elements -->
-  <!-- BEGIN HEADER -->
-
-  <!-- BEGIN CONTENT -->
-
-  <tr>
-   <td>
-    <p>{ts 1=$contact.display_name}Dear %1{/ts},</p>
-    <p>{ts 1=$event.event_title}Your pending event registration for %1 has expired
-because you did not confirm your registration.{/ts}</p>
-    <p>{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}</p>
-   </td>
-  </tr>
-  <tr>
-   <td>
-    <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
-     <tr>
-      <th {$headerStyle}>
-       {ts}Event Information and Location{/ts}
-      </th>
-     </tr>
-     <tr>
-      <td colspan="2" {$valueStyle}>
-       {$event.event_title}<br />
-       {$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}
-      </td>
-     </tr>
-     <tr>
-      <td {$labelStyle}>
-       {ts}Participant Role{/ts}:
-      </td>
-      <td {$valueStyle}>
-       {$participant.role}
-      </td>
-     </tr>
-
-     {if $isShowLocation}
-      <tr>
-       <td colspan="2" {$valueStyle}>
-        {if $event.location.address.1.name}
-         {$event.location.address.1.name}<br />
-        {/if}
-        {if $event.location.address.1.street_address}
-         {$event.location.address.1.street_address}<br />
-        {/if}
-        {if $event.location.address.1.supplemental_address_1}
-         {$event.location.address.1.supplemental_address_1}<br />
-        {/if}
-        {if $event.location.address.1.supplemental_address_2}
-         {$event.location.address.1.supplemental_address_2}<br />
-        {/if}
-        {if $event.location.address.1.city}
-         {$event.location.address.1.city} {$event.location.address.1.postal_code}
-         {if $event.location.address.1.postal_code_suffix}
-          - {$event.location.address.1.postal_code_suffix}
-         {/if}
-        {/if}
-       </td>
-      </tr>
-     {/if}
-
-     {if $event.location.phone.1.phone || $event.location.email.1.email}
-      <tr>
-       <td colspan="2" {$labelStyle}>
-        {ts}Event Contacts:{/ts}
-       </td>
-      </tr>
-      {foreach from=$event.location.phone item=phone}
-       {if $phone.phone}
-        <tr>
-         <td {$labelStyle}>
-          {if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}
-         </td>
-         <td {$valueStyle}>
-          {$phone.phone}
-         </td>
-        </tr>
-       {/if}
-      {/foreach}
-      {foreach from=$event.location.email item=eventEmail}
-       {if $eventEmail.email}
-        <tr>
-         <td {$labelStyle}>
-          {ts}Email{/ts}
-         </td>
-         <td {$valueStyle}>
-          {$eventEmail.email}
-         </td>
-        </tr>
-       {/if}
-      {/foreach}
-     {/if}
-
-     {capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&id=`$event.id`" h=0 a=1}{/capture}
-     <tr>
-      <td colspan="2" {$valueStyle}>
-       <a href="{$icalFeed}">{ts}Download iCalendar File{/ts}</a>
-      </td>
-     </tr>
-
-     {if $contact.email}
-      <tr>
-       <th {$headerStyle}>
-        {ts}Registered Email{/ts}
-       </th>
-      </tr>
-      <tr>
-       <td colspan="2" {$valueStyle}>
-        {$contact.email}
-       </td>
-      </tr>
-     {/if}
-
-     {if $register_date}
-      <tr>
-       <td {$labelStyle}>
-        {ts}Registration Date{/ts}
-       </td>
-       <td {$valueStyle}>
-        {$participant.register_date|crmDate}
-       </td>
-      </tr>
-     {/if}
-
-    </table>
-   </td>
-  </tr>
-
-  <tr>
-   <td>
-    <p>{ts 1=$domain.phone 2=$domain.email}Please contact us at %1 or send email to %2 if you have questions.{/ts}</p>
-   </td>
-  </tr>
-
- </table>
-</center>
-
-</body>
-</html>
diff --git a/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/participant_expired_subject.tpl b/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/participant_expired_subject.tpl
deleted file mode 100644 (file)
index aeb56d3..0000000
+++ /dev/null
@@ -1 +0,0 @@
-{ts 1=$event.event_title}Event registration has expired for %1{/ts}
diff --git a/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/participant_expired_text.tpl b/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/participant_expired_text.tpl
deleted file mode 100644 (file)
index c644366..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-{ts 1=$contact.display_name}Dear %1{/ts},
-
-{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}
-{if $event.location.address.1.name}
-
-{$event.location.address.1.name}
-{/if}
-{if $event.location.address.1.street_address}{$event.location.address.1.street_address}
-{/if}
-{if $event.location.address.1.supplemental_address_1}{$event.location.address.1.supplemental_address_1}
-{/if}
-{if $event.location.address.1.supplemental_address_2}{$event.location.address.1.supplemental_address_2}
-{/if}
-{if $event.location.address.1.city}{$event.location.address.1.city} {$event.location.address.1.postal_code}{if $event.location.address.1.postal_code_suffix} - {$event.location.address.1.postal_code_suffix}{/if}
-{/if}
-
-{/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}
-
-{capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&id=`$event.id`" h=0 a=1}{/capture}
-{ts}Download iCalendar File{/ts}: {$icalFeed}
-{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}
-
diff --git a/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/pcp_notify_html.tpl b/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/pcp_notify_html.tpl
deleted file mode 100644 (file)
index 93e7f01..0000000
+++ /dev/null
@@ -1,94 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title></title>
-</head>
-<body>
-
-{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/contribute/pcp/info" q="reset=1&id=`$pcpId`" h=0 a=1}{/capture}
-
-<center>
- <table width="620" border="0" cellpadding="0" cellspacing="0" id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left;">
-
-  <!-- BEGIN HEADER -->
-  <!-- You can add table row(s) here with logo or other header elements -->
-  <!-- BEGIN HEADER -->
-
-  <!-- BEGIN CONTENT -->
-
-  <tr>
-   <td>
-    <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
-     <tr>
-      <th {$headerStyle}>
-       {ts}Personal Campaign Page Notification{/ts}
-      </th>
-     </tr>
-     <tr>
-      <td {$labelStyle}>
-       {ts}Action{/ts}:
-      </td>
-      <td {$valueStyle}>
-       {if $mode EQ 'Update'}
-        {ts}Updated personal campaign page{/ts}
-       {else}
-        {ts}New personal campaign page{/ts}
-       {/if}
-      </td>
-     </tr>
-     <tr>
-      <td {$labelStyle}>
-       {ts}Personal Campaign Page Title{/ts}
-      </td>
-      <td {$valueStyle}>
-       {$pcpTitle}
-      </td>
-     </tr>
-     <tr>
-      <td {$labelStyle}>
-       {ts}Current Status{/ts}
-      </td>
-      <td {$valueStyle}>
-       {$pcpStatus}
-      </td>
-     </tr>
-
-     <tr>
-      <td rowspan="2" {$labelStyle}>
-       <a href="{$pcpURL}">{ts}View Page{/ts}</a>
-      </td>
-     </tr>
-     <tr>
-      <td {$labelStyle}>
-       {ts}Supporter{/ts}
-      </td>
-      <td {$valueStyle}>
-       <a href="{$supporterUrl}">{$supporterName}</a>
-      </td>
-     </tr>
-     <tr>
-      <td {$labelStyle}>
-       {ts}Linked to Contribution Page{/ts}
-      </td>
-      <td {$valueStyle}>
-       <a href="{$contribPageUrl}">{$contribPageTitle}</a>
-      </td>
-     </tr>
-     <tr>
-      <td rowspan="2" {$labelStyle}>
-       <a href="{$managePCPUrl}">{ts}Manage Personal Campaign Pages{/ts}</a>
-      </td>
-     </tr>
-
-    </table>
-   </td>
-  </tr>
- </table>
-</center>
-
-</body>
-</html>
diff --git a/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/pcp_notify_subject.tpl b/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/pcp_notify_subject.tpl
deleted file mode 100644 (file)
index d75d460..0000000
+++ /dev/null
@@ -1 +0,0 @@
-{ts}Personal Campaign Page Notification{/ts}
diff --git a/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/pcp_notify_text.tpl b/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/pcp_notify_text.tpl
deleted file mode 100644 (file)
index 5b84d29..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-===========================================================
-{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/contribute/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}
-
diff --git a/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/pcp_status_change_html.tpl b/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/pcp_status_change_html.tpl
deleted file mode 100644 (file)
index 1577a62..0000000
+++ /dev/null
@@ -1,59 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title></title>
-</head>
-<body>
-
-<center>
- <table width="620" border="0" cellpadding="0" cellspacing="0" id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left;">
-
-  <!-- BEGIN HEADER -->
-  <!-- You can add table row(s) here with logo or other header elements -->
-  <!-- BEGIN HEADER -->
-
-  <!-- BEGIN CONTENT -->
-
-  <tr>
-   <td>
-
-    <h1>{ts}Your Personal Campaign Page{/ts}</h1>
-
-    {if $pcpStatus eq 'Approved'}
-
-     <p>{ts}Your personal campaign page has been approved and is now live.{/ts}</p>
-     <p>{ts}Whenever you want to preview, update or promote your page{/ts}:</p>
-     <ol>
-      <li><a href="{$config->userFrameworkBaseURL}">{ts}Login to your account{/ts}</a></li>
-      <li><a href="{$pcpInfoURL}">{ts}Go to your page{/ts}</a></li>
-     </ol>
-     <p>{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}</p>
-
-     {if $isTellFriendEnabled}
-      <p><a href="{$pcpTellFriendURL}">{ts}After logging in, you can use this form to promote your fundraising page{/ts}</a></p>
-     {/if}
-
-     {if $pcpNotifyEmailAddress}
-      <p>{ts}Questions? Send email to{/ts}: {$pcpNotifyEmailAddress}</p>
-     {/if}
-
-    {elseif $pcpStatus eq 'Rejected'}
-
-     <p>{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}</p>
-     {if $pcpNotifyEmailAddress}
-      <p>{ts}Please contact our site administrator for more information{/ts}: {$pcpNotifyEmailAddress}</p>
-     {/if}
-
-    {/if}
-
-   </td>
-  </tr>
-
- </table>
-</center>
-
-</body>
-</html>
diff --git a/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/pcp_status_change_subject.tpl b/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/pcp_status_change_subject.tpl
deleted file mode 100644 (file)
index dc5bc5e..0000000
+++ /dev/null
@@ -1 +0,0 @@
-{ts 1=$contribPageTitle}Your Personal Campaign Page for %1{/ts}
diff --git a/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/pcp_status_change_text.tpl b/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/pcp_status_change_text.tpl
deleted file mode 100644 (file)
index 9d7132e..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-{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}:
-{$config->userFrameworkBaseURL}
-
-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 'Rejected'}
-============================
-{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}
diff --git a/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/pcp_supporter_notify_html.tpl b/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/pcp_supporter_notify_html.tpl
deleted file mode 100644 (file)
index b7517f7..0000000
+++ /dev/null
@@ -1,100 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title></title>
-</head>
-<body>
-
-{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}
-
-<center>
- <table width="620" border="0" cellpadding="0" cellspacing="0" id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left;">
-
-  <!-- BEGIN HEADER -->
-  <!-- You can add table row(s) here with logo or other header elements -->
-  <!-- BEGIN HEADER -->
-
-  <!-- BEGIN CONTENT -->
-
-  <tr>
-   <td>
-    <p>{ts}Dear supporter{/ts},</p>
-    <p>{ts 1="$contribPageTitle"}Thanks for creating a personal campaign page in support of %1.{/ts}</p>
-   </td>
-  </tr>
-
-  {if $pcpStatus eq 'Approved'}
-
-    <tr>
-     <td>
-      <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
-       <tr>
-        <th {$headerStyle}>
-         {ts}Promoting Your Page{/ts}
-        </th>
-       </tr>
-       <tr>
-        <td colspan="2" {$valuestyle}>
-         {if $istellfriendenabled}
-          <p>{ts}you can begin your fundraising efforts using our "tell a friend" form{/ts}:</p>
-          <ol>
-           <li><a href="{$loginurl}">{ts}login to your account{/ts}</a></li>
-           <li><a href="{$pcptellfriendurl}">{ts}click this link and follow the prompts{/ts}</a></li>
-          </ol>
-         {else}
-          <p>{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}</p>
-         {/if}
-        </td>
-       </tr>
-       <tr>
-        <th {$headerStyle}>
-         {ts}Managing Your Page{/ts}
-        </th>
-       <tr>
-        <td colspan="2" {$valuestyle}>
-         <p>{ts}Whenever you want to preview, update or promote your page{/ts}:</p>
-         <ol>
-          <li><a href="{$loginUrl}">{ts}Login to your account{/ts}</a></li>
-          <li><a href="{$pcpInfoURL}">{ts}Go to your page{/ts}</a></li>
-         </ol>
-         <p>{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}</p>
-        </td>
-       </tr>
-       </tr>
-      </table>
-     </td>
-    </tr>
-
-   {elseif $pcpStatus EQ 'Waiting Review'}
-
-    <tr>
-     <td>
-      <p>{ts}Your page requires administrator review before you can begin your fundraising efforts.{/ts}</p>
-      <p>{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}</p>
-      <p>{ts}You can still preview your page prior to approval{/ts}:</p>
-      <ol>
-       <li><a href="{$loginUrl}">{ts}Login to your account{/ts}</a></li>
-       <li><a href="{$pcpInfoURL}">{ts}Click this link{/ts}</a></li>
-      </ol>
-     </td>
-    </tr>
-
-   {/if}
-
-   {if $pcpNotifyEmailAddress}
-    <tr>
-     <td>
-      <p>{ts}Questions? Send email to{/ts}: {$pcpNotifyEmailAddress}</p>
-     </td>
-    </tr>
-   {/if}
-
- </table>
-</center>
-
-</body>
-</html>
diff --git a/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/pcp_supporter_notify_subject.tpl b/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/pcp_supporter_notify_subject.tpl
deleted file mode 100644 (file)
index dc5bc5e..0000000
+++ /dev/null
@@ -1 +0,0 @@
-{ts 1=$contribPageTitle}Your Personal Campaign Page for %1{/ts}
diff --git a/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/pcp_supporter_notify_text.tpl b/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/pcp_supporter_notify_text.tpl
deleted file mode 100644 (file)
index 479ed51..0000000
+++ /dev/null
@@ -1,58 +0,0 @@
-{ts}Dear supporter{/ts},
-{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}
diff --git a/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/pledge_acknowledge_html.tpl b/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/pledge_acknowledge_html.tpl
deleted file mode 100644 (file)
index 3f261da..0000000
+++ /dev/null
@@ -1,132 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title></title>
-</head>
-<body>
-
-{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}
-
-<center>
- <table width="620" border="0" cellpadding="0" cellspacing="0" id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left;">
-
-  <!-- BEGIN HEADER -->
-  <!-- You can add table row(s) here with logo or other header elements -->
-  <!-- BEGIN HEADER -->
-
-  <!-- BEGIN CONTENT -->
-
-  <tr>
-   <td>
-    <p>{ts 1=$contact.display_name}dear %1{/ts},</p>
-    <p>{ts}thank you for your generous pledge. please print this acknowledgment for your records.{/ts}</p>
-   </td>
-  </tr>
-  <tr>
-   <td>
-    <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
-     <tr>
-      <th {$headerStyle}>
-       {ts}Pledge Information{/ts}
-      </th>
-     </tr>
-     <tr>
-      <td {$labelStyle}>
-       {ts}Pledge Received{/ts}
-      </td>
-      <td {$valueStyle}>
-       {$create_date|truncate:10:''|crmDate}
-      </td>
-     </tr>
-     <tr>
-      <td {$labelStyle}>
-       {ts}Total Pledge Amount{/ts}
-      </td>
-      <td {$valueStyle}>
-       {$total_pledge_amount|crmMoney}
-      </td>
-     </tr>
-     <tr>
-      <th {$headerStyle}>
-       {ts}Payment Schedule{/ts}
-      </th>
-     </tr>
-     <tr>
-      <td colspan="2" {$valueStyle}>
-       <p>{ts 1=$scheduled_amount|crmMoney 2=$frequency_interval 3=$frequency_unit 4=$installments}%1 every %2 %3 for %4 installments.{/ts}</p>
-
-       {if $frequency_day}
-        <p>{ts 1=$frequency_day 2=$frequency_unit}Payments are due on day %1 of the %2.{/ts}</p>
-       {/if}
-      </td>
-     </tr>
-
-     {if $payments}
-      {assign var="count" value="1"}
-      {foreach from=$payments item=payment}
-       <tr>
-        <td {$labelStyle}>
-         {ts 1=$count}Payment %1{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$payment.amount|crmMoney} {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}
-        </td>
-       </tr>
-       {assign var="count" value=`$count+1`}
-      {/foreach}
-     {/if}
-
-     <tr>
-      <td colspan="2" {$valueStyle}>
-       <p>{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}</p>
-      </td>
-     </tr>
-     {if $honor_block_is_active}
-      <tr>
-       <th {$headerStyle}>
-        {$honor_type}
-       </th>
-      </tr>
-      <tr>
-       <td colspan="2" {$valueStyle}>
-        <p>{$honor_prefix} {$honor_first_name} {$honor_last_name}</p>
-        {if $honor_email}
-         <p>{ts}Honoree Email{/ts}: {$honor_email}</p>
-        {/if}
-       </td>
-      </tr>
-     {/if}
-
-     {if $customGroup}
-      {foreach from=$customGroup item=value key=customName}
-       <tr>
-        <th {$headerStyle}>
-         {$customName}
-        </th>
-       </tr>
-       {foreach from=$value item=v key=n}
-        <tr>
-         <td {$labelStyle}>
-          {$n}
-         </td>
-         <td {$valueStyle}>
-          {$v}
-         </td>
-        </tr>
-       {/foreach}
-      {/foreach}
-     {/if}
-
-    </table>
-   </td>
-  </tr>
-
- </table>
-</center>
-
-</body>
-</html>
diff --git a/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/pledge_acknowledge_subject.tpl b/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/pledge_acknowledge_subject.tpl
deleted file mode 100644 (file)
index 9648c9c..0000000
+++ /dev/null
@@ -1 +0,0 @@
-{ts}Thank you for your Pledge{/ts}
diff --git a/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/pledge_acknowledge_text.tpl b/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/pledge_acknowledge_text.tpl
deleted file mode 100644 (file)
index 3148145..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-{ts 1=$contact.display_name}Dear %1{/ts},
-
-{ts}Thank you for your generous pledge. Please print this acknowledgment for your records.{/ts}
-
-===========================================================
-{ts}Pledge Information{/ts}
-
-===========================================================
-{ts}Pledge Received{/ts}: {$create_date|truncate:10:''|crmDate}
-{ts}Total Pledge Amount{/ts}: {$total_pledge_amount|crmMoney}
-
-===========================================================
-{ts}Payment Schedule{/ts}
-
-===========================================================
-{ts 1=$scheduled_amount|crmMoney 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} {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 $honor_block_is_active}
-===========================================================
-{$honor_type}
-===========================================================
-{$honor_prefix} {$honor_first_name} {$honor_last_name}
-{if $honor_email}
-{ts}Honoree Email{/ts}: {$honor_email}
-{/if}
-{/if}
-
-{if $customGroup}
-{foreach from=$customGroup item=value key=customName}
-===========================================================
-{$customName}
-===========================================================
-{foreach from=$value item=v key=n}
-{$n}: {$v}
-{/foreach}
-{/foreach}
-{/if}
diff --git a/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/pledge_reminder_html.tpl b/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/pledge_reminder_html.tpl
deleted file mode 100644 (file)
index 4f83153..0000000
+++ /dev/null
@@ -1,107 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title></title>
-</head>
-<body>
-
-{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}
-
-<center>
- <table width="620" border="0" cellpadding="0" cellspacing="0" id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left;">
-
-  <!-- BEGIN HEADER -->
-  <!-- You can add table row(s) here with logo or other header elements -->
-  <!-- BEGIN HEADER -->
-
-  <!-- BEGIN CONTENT -->
-
-  <tr>
-   <td>
-    <p>{ts 1=$contact.display_name}Dear %1{/ts},</p>
-    <p>{ts 1=$next_payment|truncate:10:''|crmDate}This is a reminder that the next payment on your pledge is due on %1.{/ts}</p>
-   </td>
-  </tr>
-  <tr>
-   <td>
-    <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
-     <tr>
-      <th {$headerStyle}>
-       {ts}Payment Due{/ts}
-      </th>
-     </tr>
-     <tr>
-      <td {$labelStyle}>
-       {ts}Amount Due{/ts}
-      </td>
-      <td {$valueStyle}>
-       {$amount_due|crmMoney}
-      </td>
-     </tr>
-    </table>
-   </td>
-  </tr>
-
-  <tr>
-   <td>
-    {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}
-     <p><a href="{$contributionUrl}">{ts}Go to a web page where you can make your payment online{/ts}</a></p>
-    {else}
-     <p>{ts}Please mail your payment to{/ts}: {$domain.address}</p>
-    {/if}
-   </td>
-  </tr>
-
-  <tr>
-   <td>
-    <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
-     <tr>
-      <th {$headerStyle}>
-       {ts}Pledge Information{/ts}
-      </th>
-     </tr>
-     <tr>
-      <td {$labelStyle}>
-       {ts}Pledge Received{/ts}
-      </td>
-      <td {$valueStyle}>
-       {$create_date|truncate:10:''|crmDate}
-      </td>
-     </tr>
-     <tr>
-      <td {$labelStyle}>
-       {ts}Total Pledge Amount{/ts}
-      </td>
-      <td {$valueStyle}>
-       {$amount|crmMoney}
-      </td>
-     </tr>
-     <tr>
-      <td {$labelStyle}>
-       {ts}Total Paid{/ts}
-      </td>
-      <td {$valueStyle}>
-       {$amount_paid|crmMoney}
-      </td>
-     </tr>
-    </table>
-   </td>
-  </tr>
-
-  <tr>
-   <td>
-    <p>{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}</p>
-    <p>{ts}Thank your for your generous support.{/ts}</p>
-   </td>
-  </tr>
-
- </table>
-</center>
-
-</body>
-</html>
diff --git a/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/pledge_reminder_subject.tpl b/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/pledge_reminder_subject.tpl
deleted file mode 100644 (file)
index 9e06198..0000000
+++ /dev/null
@@ -1 +0,0 @@
-{ts}Pledge Payment Reminder{/ts}
diff --git a/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/pledge_reminder_text.tpl b/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/pledge_reminder_text.tpl
deleted file mode 100644 (file)
index ffeec2f..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-{ts 1=$contact.display_name}Dear %1{/ts},
-
-{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}
-{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}
-{ts}Total Paid{/ts}: {$amount_paid|crmMoney}
-
-{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}
diff --git a/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/test_preview_html.tpl b/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/test_preview_html.tpl
deleted file mode 100644 (file)
index 4134b9e..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-<center>
- <table width="620" border="0" cellpadding="0" cellspacing="0" id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left">
-  <tr>
-   <td>
-    <p>{ts}Test-drive Email / Receipt{/ts}</p>
-    <p>{ts}This is a test-drive email. No live financial transaction has occurred.{/ts}</p>
-   </td>
-  </tr>
- </table>
-</center>
diff --git a/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/test_preview_subject.tpl b/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/test_preview_subject.tpl
deleted file mode 100644 (file)
index 20cc6a1..0000000
+++ /dev/null
@@ -1 +0,0 @@
-[TEST]
diff --git a/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/test_preview_text.tpl b/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/test_preview_text.tpl
deleted file mode 100644 (file)
index 5821007..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-***********************************************************
-
-{ts}Test-drive Email / Receipt{/ts}
-
-{ts}This is a test-drive email. No live financial transaction has occurred.{/ts}
-
-***********************************************************
diff --git a/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/uf_notify_html.tpl b/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/uf_notify_html.tpl
deleted file mode 100644 (file)
index c60bf9e..0000000
+++ /dev/null
@@ -1,74 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title></title>
-</head>
-<body>
-
-{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}
-
-<center>
- <table width="620" border="0" cellpadding="0" cellspacing="0" id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left;">
-
-  <!-- BEGIN HEADER -->
-  <!-- You can add table row(s) here with logo or other header elements -->
-  <!-- BEGIN HEADER -->
-
-  <!-- BEGIN CONTENT -->
-
-  <tr>
-   <td>
-    <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
-     <tr>
-      <td {$labelStyle}>
-       {ts}Submitted For{/ts}
-      </td>
-      <td {$valueStyle}>
-       {$displayName}
-      </td>
-     </tr>
-     <tr>
-      <td {$labelStyle}>
-       {ts}Date{/ts}
-      </td>
-      <td {$valueStyle}>
-       {$currentDate}
-      </td>
-     </tr>
-     <tr>
-      <td {$labelStyle}>
-       {ts}Contact Summary{/ts}
-      </td>
-      <td {$valueStyle}>
-       {$contactLink}
-      </td>
-     </tr>
-
-     <tr>
-      <th {$headerStyle}>
-       {$grouptitle}
-      </th>
-     </tr>
-
-     {foreach from=$values item=value key=valueName}
-      <tr>
-       <td {$labelStyle}>
-        {$valueName}
-       </td>
-       <td {$valueStyle}>
-        {$value}
-       </td>
-      </tr>
-     {/foreach}
-    </table>
-   </td>
-  </tr>
-
- </table>
-</center>
-
-</body>
-</html>
diff --git a/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/uf_notify_subject.tpl b/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/uf_notify_subject.tpl
deleted file mode 100644 (file)
index 0da62f6..0000000
+++ /dev/null
@@ -1 +0,0 @@
-{$grouptitle} {ts 1=$displayName}Submitted by %1{/ts}
diff --git a/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/uf_notify_text.tpl b/CRM/Upgrade/3.1.alpha1.msg_template/message_templates/uf_notify_text.tpl
deleted file mode 100644 (file)
index be3d1f6..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-{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}
diff --git a/CRM/Upgrade/3.1.alpha2.msg_template/civicrm_msg_template.tpl b/CRM/Upgrade/3.1.alpha2.msg_template/civicrm_msg_template.tpl
deleted file mode 100644 (file)
index 0376df7..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-{php}
-  $dir = SMARTY_DIR . '/../../CRM/Upgrade/3.1.alpha2.msg_template/message_templates';
-  $templates = array();
-  foreach (preg_grep('/\.tpl$/', scandir($dir)) as $filename) {
-    $parts = explode('_', basename($filename, '.tpl'));
-    $templates[] = array('type' => array_pop($parts), 'name' => implode('_', $parts), 'filename' => "$dir/$filename");
-  }
-  $this->assign('templates', $templates);
-{/php}
-
-{foreach from=$templates item=tpl}
-  {fetch assign=content file=$tpl.filename}
-  SELECT @workflow_id := MAX(id) FROM civicrm_option_value WHERE name = '{$tpl.name}';
-  SELECT @content := msg_{$tpl.type} FROM civicrm_msg_template WHERE workflow_id = @workflow_id AND is_reserved = 1 LIMIT 1;
-  UPDATE civicrm_msg_template SET msg_{$tpl.type} = '{$content|escape:"quotes"}' WHERE workflow_id = @workflow_id AND (is_reserved = 1 OR (is_default = 1 AND msg_{$tpl.type} = @content));
-{/foreach}
diff --git a/CRM/Upgrade/3.1.alpha2.msg_template/message_templates/case_activity_html.tpl b/CRM/Upgrade/3.1.alpha2.msg_template/message_templates/case_activity_html.tpl
deleted file mode 100644 (file)
index d1bcfd7..0000000
+++ /dev/null
@@ -1,83 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title></title>
-</head>
-<body>
-
-{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}
-
-<center>
- <table width="620" border="0" cellpadding="0" cellspacing="0" id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left;">
-
-  <!-- BEGIN HEADER -->
-  <!-- You can add table row(s) here with logo or other header elements -->
-  <!-- END HEADER -->
-
-  <!-- BEGIN CONTENT -->
-
-  <tr>
-   <td>
-    <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
-     <tr>
-      <th {$headerStyle}>
-       {ts}Activity Summary{/ts} - {$activityTypeName}
-      </th>
-     </tr>
-     {if $isCaseActivity}
-      <tr>
-       <td {$labelStyle}>
-        {ts}Your Case Role(s){/ts}
-       </td>
-       <td {$valueStyle}>
-        {$contact.role}
-       </td>
-      </tr>
-     {/if}
-     {foreach from=$activity.fields item=field}
-      <tr>
-       <td {$labelStyle}>
-        {$field.label}{if $field.category}({$field.category}){/if}
-       </td>
-       <td {$valueStyle}>
-        {if $field.type eq 'Date'}
-         {$field.value|crmDate:$config->dateformatDatetime}
-        {else}
-         {$field.value}
-        {/if}
-       </td>
-      </tr>
-     {/foreach}
-
-     {foreach from=$activity.customGroups key=customGroupName item=customGroup}
-      <tr>
-       <th {$headerStyle}>
-        {$customGroupName}
-       </th>
-      </tr>
-      {foreach from=$customGroup item=field}
-       <tr>
-        <td {$labelStyle}>
-         {$field.label}
-        </td>
-        <td {$valueStyle}>
-         {if $field.type eq 'Date'}
-          {$field.value|crmDate:$config->dateformatDatetime}
-         {else}
-          {$field.value}
-         {/if}
-        </td>
-       </tr>
-      {/foreach}
-     {/foreach}
-    </table>
-   </td>
-  </tr>
- </table>
-</center>
-
-</body>
-</html>
diff --git a/CRM/Upgrade/3.1.alpha2.msg_template/message_templates/contribution_dupalert_html.tpl b/CRM/Upgrade/3.1.alpha2.msg_template/message_templates/contribution_dupalert_html.tpl
deleted file mode 100644 (file)
index 8851ca6..0000000
+++ /dev/null
@@ -1,89 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title></title>
-</head>
-<body>
-
-{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}
-
-<center>
- <table width="620" border="0" cellpadding="0" cellspacing="0" id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left;">
-
-  <!-- BEGIN HEADER -->
-  <!-- You can add table row(s) here with logo or other header elements -->
-  <!-- END HEADER -->
-
-  <!-- BEGIN CONTENT -->
-
-  <tr>
-   <td>
-    <p>{ts}A contribution / membership signup was made on behalf of the organization listed below.{/ts}</p>
-    <p>{ts}The information provided matched multiple existing database records based on the configured
-Duplicate Matching Rules for your site.{/ts}</p>
-   </td>
-  </tr>
-  <tr>
-   <td>
-    <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
-     <tr>
-      <td {$labelStyle}>
-       {ts}Organization Name{/ts}
-      </td>
-      <td {$valueStyle}>
-       {$onBehalfName}
-      </td>
-     </tr>
-     <tr>
-      <td {$labelStyle}>
-       {ts}Organization Email{/ts}
-      </td>
-      <td {$valueStyle}>
-       {$onBehalfEmail}
-      </td>
-     </tr>
-     <tr>
-      <td {$labelStyle}>
-       {ts}Organization Contact ID{/ts}
-      </td>
-      <td {$valueStyle}>
-       {$onBehalfID}
-      </td>
-     </tr>
-    </table>
-   </td>
-  </tr>
-  <tr>
-   <td>
-    <p>{ts}If you think this may be a duplicate contact which should be merged with an existing record -
-Go to "CiviCRM >> Administer CiviCRM >> Find and Merge Duplicate Contacts". Use the strict
-rule for Organizations to find the potential duplicates and merge them if appropriate.{/ts}</p>
-   </td>
-  </tr>
-  {if $receiptMessage}
-   <tr>
-    <td>
-     <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
-      <tr>
-       <th {$headerStyle}>
-        {ts}Copy of Contribution Receipt{/ts}
-       </th>
-      </tr>
-      <tr>
-       <td colspan="2" {$valueStyle}>
-        {* FIXME: the below is most probably not HTML-ised *}
-        {$receiptMessage}
-       </td>
-      </tr>
-     </table>
-    </td>
-   </tr>
-  {/if}
- </table>
-</center>
-
-</body>
-</html>
diff --git a/CRM/Upgrade/3.1.alpha2.msg_template/message_templates/contribution_offline_receipt_html.tpl b/CRM/Upgrade/3.1.alpha2.msg_template/message_templates/contribution_offline_receipt_html.tpl
deleted file mode 100644 (file)
index 6e24a76..0000000
+++ /dev/null
@@ -1,250 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title></title>
-</head>
-<body>
-
-{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}
-
-<center>
- <table width="620" border="0" cellpadding="0" cellspacing="0" id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left;">
-
-  <!-- BEGIN HEADER -->
-  <!-- You can add table row(s) here with logo or other header elements -->
-  <!-- END HEADER -->
-
-  <!-- BEGIN CONTENT -->
-
-  <tr>
-   <td>
-
-    {if $formValues.receipt_text}
-     <p>{$formValues.receipt_text|htmlize}</p>
-    {else}
-     <p>{ts}Thank you for your support.{/ts}</p>
-    {/if}
-
-    <p>{ts}Please print this receipt for your records.{/ts}</p>
-
-   </td>
-  </tr>
-  <tr>
-   <td>
-    <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
-     <tr>
-      <th {$headerStyle}>
-       {ts}Contribution Information{/ts}
-      </th>
-     </tr>
-     <tr>
-      <td {$labelStyle}>
-       {ts}Contribution Type{/ts}
-      </td>
-      <td {$valueStyle}>
-       {$formValues.contributionType_name}
-      </td>
-     </tr>
-
-     {if $lineItem}
-      {foreach from=$lineItem item=value key=priceset}
-       <tr>
-        <td colspan="2" {$valueStyle}>
-         <table> {* FIXME: style this table so that it looks like the text version (justification, etc.) *}
-          <tr>
-           <th>{ts}Item{/ts}</th>
-           <th>{ts}Qty{/ts}</th>
-           <th>{ts}Each{/ts}</th>
-           <th>{ts}Total{/ts}</th>
-          </tr>
-          {foreach from=$value item=line}
-           <tr>
-            <td>
-             {$line.description|truncate:30:"..."}
-            </td>
-            <td>
-             {$line.qty}
-            </td>
-            <td>
-             {$line.unit_price|crmMoney}
-            </td>
-            <td>
-             {$line.line_total|crmMoney}
-            </td>
-           </tr>
-          {/foreach}
-         </table>
-        </td>
-       </tr>
-      {/foreach}
-     {/if}
-
-     <tr>
-      <td {$labelStyle}>
-       {ts}Total Amount{/ts}
-      </td>
-      <td {$valueStyle}>
-       {$formValues.total_amount|crmMoney}
-      </td>
-     </tr>
-
-     {if $receive_date}
-      <tr>
-       <td {$labelStyle}>
-        {ts}Received Date{/ts}
-       </td>
-       <td {$valueStyle}>
-        {$receive_date|truncate:10:''|crmDate}
-       </td>
-      </tr>
-     {/if}
-
-     {if $formValues.paidBy and !$formValues.hidden_CreditCard}
-      <tr>
-       <td {$labelStyle}>
-        {ts}Paid By{/ts}
-       </td>
-       <td {$valueStyle}>
-        {$formValues.paidBy}
-       </td>
-      </tr>
-      {if $formValues.check_number}
-       <tr>
-        <td {$labelStyle}>
-         {ts}Check Number{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$formValues.check_number}
-        </td>
-       </tr>
-      {/if}
-     {/if}
-
-     {if $formValues.trxn_id}
-      <tr>
-       <td {$labelStyle}>
-        {ts}Transaction ID{/ts}
-       </td>
-       <td {$valueStyle}>
-        {$formValues.trxn_id}
-       </td>
-      </tr>
-     {/if}
-
-     {if $ccContribution}
-      <tr>
-       <th {$headerStyle}>
-        {ts}Billing Name and Address{/ts}
-       </th>
-      </tr>
-      <tr>
-       <td colspan="2" {$valueStyle}>
-        {$billingName}<br />
-        {$address|nl2br}
-       </td>
-      </tr>
-      <tr>
-       <th {$headerStyle}>
-        {ts}Credit Card Information{/ts}
-       </th>
-      </tr>
-      <tr>
-       <td colspan="2" {$valueStyle}>
-        {$credit_card_type}<br />
-        {$credit_card_number}<br />
-        {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}
-       </td>
-      </tr>
-     {/if}
-
-     {if $customGroup}
-      {foreach from=$customGroup item=value key=customName}
-       <tr>
-        <th {$headerStyle}>
-         {$customName}
-        </th>
-       </tr>
-       {foreach from=$value item=v key=n}
-        <tr>
-         <td {$labelStyle}>
-          {$n}
-         </td>
-         <td {$valueStyle}>
-          {$v}
-         </td>
-        </tr>
-       {/foreach}
-      {/foreach}
-     {/if}
-
-     {if $formValues.honor_first_name}
-      <tr>
-       <th {$headerStyle}>
-        {$formValues.honor_type}
-       </th>
-      </tr>
-      <tr>
-       <td colspan="2" {$valueStyle}>
-        {$formValues.honor_prefix} {$formValues.honor_first_name} {$formValues.honor_last_name}<br />
-        {if $formValues.honor_email}
-         {ts}Honoree Email{/ts}: {$formValues.honor_email}
-        {/if}
-       </td>
-      </tr>
-     {/if}
-
-     {if $formValues.product_name}
-      <tr>
-       <th {$headerStyle}>
-        {ts}Premium Information{/ts}
-       </th>
-      </tr>
-      <tr>
-       <td colspan="2" {$labelStyle}>
-        {$formValues.product_name}
-       </td>
-      </tr>
-      {if $formValues.product_option}
-       <tr>
-        <td {$labelStyle}>
-         {ts}Option{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$formValues.product_option}
-        </td>
-       </tr>
-      {/if}
-      {if $formValues.product_sku}
-       <tr>
-        <td {$labelStyle}>
-         {ts}SKU{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$formValues.product_sku}
-        </td>
-       </tr>
-      {/if}
-      {if $fulfilled_date}
-       <tr>
-        <td {$labelStyle}>
-         {ts}Sent{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$fulfilled_date|truncate:10:''|crmDate}
-        </td>
-       </tr>
-      {/if}
-     {/if}
-
-    </table>
-   </td>
-  </tr>
-
- </table>
-</center>
-
-</body>
-</html>
diff --git a/CRM/Upgrade/3.1.alpha2.msg_template/message_templates/contribution_online_receipt_html.tpl b/CRM/Upgrade/3.1.alpha2.msg_template/message_templates/contribution_online_receipt_html.tpl
deleted file mode 100644 (file)
index 6328e7c..0000000
+++ /dev/null
@@ -1,384 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title></title>
-</head>
-<body>
-
-{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}
-
-<center>
- <table width="620" border="0" cellpadding="0" cellspacing="0" id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left;">
-
-  <!-- BEGIN HEADER -->
-  <!-- You can add table row(s) here with logo or other header elements -->
-  <!-- END HEADER -->
-
-  <!-- BEGIN CONTENT -->
-
-  <tr>
-   <td>
-
-    {if $receipt_text}
-     <p>{$receipt_text|htmlize}</p>
-    {/if}
-
-    {if $is_pay_later}
-     <p>{$pay_later_receipt}</p> {* FIXME: this might be text rather than HTML *}
-    {else}
-     <p>{ts}Please print this confirmation for your records.{/ts}</p>
-    {/if}
-
-   </td>
-  </tr>
-  <tr>
-   <td>
-    <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
-
-     {if $amount}
-
-
-      <tr>
-       <th {$headerStyle}>
-        {ts}Contribution Information{/ts}
-       </th>
-      </tr>
-
-      {if $lineItem and $priceSetID}
-
-       {foreach from=$lineItem item=value key=priceset}
-        <tr>
-         <td colspan="2" {$valueStyle}>
-          <table> {* FIXME: style this table so that it looks like the text version (justification, etc.) *}
-           <tr>
-            <th>{ts}Item{/ts}</th>
-            <th>{ts}Qty{/ts}</th>
-            <th>{ts}Each{/ts}</th>
-            <th>{ts}Total{/ts}</th>
-           </tr>
-           {foreach from=$value item=line}
-            <tr>
-             <td>
-              {$line.description|truncate:30:"..."}
-             </td>
-             <td>
-              {$line.qty}
-             </td>
-             <td>
-              {$line.unit_price|crmMoney}
-             </td>
-             <td>
-              {$line.line_total|crmMoney}
-             </td>
-            </tr>
-           {/foreach}
-          </table>
-         </td>
-        </tr>
-       {/foreach}
-       <tr>
-        <td {$labelStyle}>
-         {ts}Total Amount{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$amount|crmMoney}
-        </td>
-       </tr>
-
-      {else}
-
-       <tr>
-        <td {$labelStyle}>
-         {ts}Amount{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$amount|crmMoney} {if $amount_level} - {$amount_level}{/if}
-        </td>
-       </tr>
-
-      {/if}
-
-
-     {/if}
-
-
-     {if $receive_date}
-      <tr>
-       <td {$labelStyle}>
-        {ts}Date{/ts}
-       </td>
-       <td {$valueStyle}>
-        {$receive_date|crmDate}
-       </td>
-      </tr>
-     {/if}
-
-     {if $is_monetary and $trxn_id}
-      <tr>
-       <td {$labelStyle}>
-        {ts}Transaction #{/ts}
-       </td>
-       <td {$valueStyle}>
-        {$trxn_id}
-       </td>
-      </tr>
-     {/if}
-
-     {if $is_recur}
-      {if $contributeMode eq 'notify'}
-       <tr>
-        <td {$labelStyle}>
-         {ts 1=$cancelSubscriptionUrl}This is a recurring contribution. You can modify or cancel future contributions by <a href="%1">logging in to your account</a>.{/ts}
-        </td>
-       </tr>
-      {elseif $contributeMode eq 'directIPN' and $receiptFromEmail}
-       <tr>
-        <td {$labelStyle}>
-         {ts 1=$receiptFromEmail}This is a recurring contribution. To modify or cancel future contributions please contact us at %1.{/ts}
-        </td>
-       </tr>
-      {/if}
-     {/if}
-
-     {if $honor_block_is_active}
-      <tr>
-       <th {$headerStyle}>
-        {$honor_type}
-       </th>
-      </tr>
-      <tr>
-       <td colspan="2" {$labelStyle}>
-        {$honor_prefix} {$honor_first_name} {$honor_last_name}
-       </td>
-      </tr>
-      {if $honor_email}
-       <tr>
-        <td {$labelStyle}>
-         {ts}Honoree Email{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$honor_email}
-        </td>
-       </tr>
-      {/if}
-     {/if}
-
-     {if $pcpBlock}
-      <tr>
-       <th {$headerStyle}>
-        {ts}Personal Campaign Page{/ts}
-       </th>
-      </tr>
-      <tr>
-       <td {$labelStyle}>
-        {ts}Display In Honor Roll{/ts}
-       </td>
-       <td {$valueStyle}>
-        {if $pcp_display_in_roll}{ts}Yes{/ts}{else}{ts}No{/ts}{/if}
-       </td>
-      </tr>
-      {if $pcp_roll_nickname}
-       <tr>
-        <td {$labelStyle}>
-         {ts}Nickname{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$pcp_roll_nickname}
-        </td>
-       </tr>
-      {/if}
-      {if $pcp_personal_note}
-       <tr>
-        <td {$labelStyle}>
-         {ts}Personal Note{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$pcp_personal_note}
-        </td>
-       </tr>
-      {/if}
-     {/if}
-
-     {if $onBehalfName}
-      <tr>
-       <th {$headerStyle}>
-        {ts}On Behalf Of{/ts}
-       </th>
-      </tr>
-      <tr>
-       <td colspan="2" {$valueStyle}>
-        {$onBehalfName}<br />
-        {$onBehalfAddress|nl2br}<br />
-        {$onBehalfEmail}
-       </td>
-      </tr>
-     {/if}
-
-     {if ! ($contributeMode eq 'notify' OR $contributeMode eq 'directIPN') and $is_monetary}
-      {if $is_pay_later}
-       <tr>
-        <th {$headerStyle}>
-         {ts}Registered Email{/ts}
-        </th>
-       </tr>
-       <tr>
-        <td colspan="2" {$valueStyle}>
-         {$email}
-        </td>
-       </tr>
-      {elseif $amount GT 0}
-       <tr>
-        <th {$headerStyle}>
-         {ts}Billing Name and Address{/ts}
-        </th>
-       </tr>
-       <tr>
-        <td colspan="2" {$valueStyle}>
-         {$billingName}<br />
-         {$address|nl2br}<br />
-         {$email}
-        </td>
-       </tr>
-      {/if}
-     {/if}
-
-     {if $contributeMode eq 'direct' AND !$is_pay_later AND $amount GT 0}
-      <tr>
-       <th {$headerStyle}>
-        {ts}Credit Card Information{/ts}
-       </th>
-      </tr>
-      <tr>
-       <td colspan="2" {$valueStyle}>
-        {$credit_card_type}<br />
-        {$credit_card_number}<br />
-        {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}<br />
-       </td>
-      </tr>
-     {/if}
-
-     {if $selectPremium}
-      <tr>
-       <th {$headerStyle}>
-        {ts}Premium Information{/ts}
-       </th>
-      </tr>
-      <tr>
-       <td colspan="2" {$labelStyle}>
-        {$product_name}
-       </td>
-      </tr>
-      {if $option}
-       <tr>
-        <td {$labelStyle}>
-         {ts}Option{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$option}
-        </td>
-       </tr>
-      {/if}
-      {if $sku}
-       <tr>
-        <td {$labelStyle}>
-         {ts}SKU{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$sku}
-        </td>
-       </tr>
-      {/if}
-      {if $start_date}
-       <tr>
-        <td {$labelStyle}>
-         {ts}Start Date{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$start_date|crmDate}
-        </td>
-       </tr>
-      {/if}
-      {if $end_date}
-       <tr>
-        <td {$labelStyle}>
-         {ts}End Date{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$end_date|crmDate}
-        </td>
-       </tr>
-      {/if}
-      {if $contact_email OR $contact_phone}
-       <tr>
-        <td colspan="2" {$valueStyle}>
-         <p>{ts}For information about this premium, contact:{/ts}</p>
-         {if $contact_email}
-          <p>{$contact_email}</p>
-         {/if}
-         {if $contact_phone}
-          <p>{$contact_phone}</p>
-         {/if}
-        </td>
-       </tr>
-      {/if}
-      {if $is_deductible AND $price}
-        <tr>
-         <td colspan="2" {$valueStyle}>
-          <p>{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}</p>
-         </td>
-        </tr>
-      {/if}
-     {/if}
-
-     {if $customPre}
-      <tr>
-       <th {$headerStyle}>
-        {ts}{$customPre_grouptitle} {/ts}
-       </th>
-      </tr>
-      {foreach from=$customPre item=customValue key=customName}
-       {if ($trackingFields and ! in_array($customName, $trackingFields)) or ! $trackingFields}
-        <tr>
-         <td {$labelStyle}>
-          {$customName}
-         </td>
-         <td {$valueStyle}>
-          {$customValue}
-         </td>
-        </tr>
-       {/if}
-      {/foreach}
-     {/if}
-
-     {if $customPost}
-      <tr>
-       <th {$headerStyle}>
-        {ts}{$customPost_grouptitle}{/ts}
-       </th>
-      </tr>
-      {foreach from=$customPost item=customValue key=customName}
-       {if ($trackingFields and ! in_array($customName, $trackingFields)) or ! $trackingFields}
-        <tr>
-         <td {$labelStyle}>
-          {$customName}
-         </td>
-         <td {$valueStyle}>
-          {$customValue}
-         </td>
-        </tr>
-       {/if}
-      {/foreach}
-     {/if}
-
-    </table>
-   </td>
-  </tr>
-
- </table>
-</center>
-
-</body>
-</html>
diff --git a/CRM/Upgrade/3.1.alpha2.msg_template/message_templates/contribution_recurring_notify_html.tpl b/CRM/Upgrade/3.1.alpha2.msg_template/message_templates/contribution_recurring_notify_html.tpl
deleted file mode 100644 (file)
index 0e96651..0000000
+++ /dev/null
@@ -1,71 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title></title>
-</head>
-<body>
-
-{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}
-
-<center>
- <table width="620" border="0" cellpadding="0" cellspacing="0" id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left;">
-
-  <!-- BEGIN HEADER -->
-  <!-- You can add table row(s) here with logo or other header elements -->
-  <!-- END HEADER -->
-
-  <!-- BEGIN CONTENT -->
-
-  <tr>
-   <td>
-
-    <p>{ts 1=$displayName}Dear %1{/ts},</p>
-
-    {if $recur_txnType eq 'START'}
-
-     <p>{ts}Thanks for your recurring contribution sign-up.{/ts}</p>
-     <p>{ts 1=$recur_frequency_interval 2=$recur_frequency_unit 3=$recur_installments}This recurring contribution will be automatically processed every %1 %2(s) for a total %3 installment.{/ts}</p>
-     <p>{ts}Start Date{/ts}: {$recur_start_date|crmDate}</p>
-     <p>{ts 1=$receipt_from_name 2=$receipt_from_email}You have pledged to make this recurring donation. You will be charged periodically (per frequency listed above), and you will receive an email receipt from %1 following each charge. These recurring donations will continue until you explicitly cancel the donation. You may change or cancel your recurring donation at anytime by logged in your account. If you have questions about recurring donations please contact us at %2.{/ts}</p>
-
-    {elseif $recur_txnType eq 'END'}
-
-     <p>{ts}Your recurring contribution term has ended.{/ts}</p>
-     <p>{ts 1=$recur_installments}You have successfully completed %1 recurring contributions. Thank you for your support.{/ts}</p>
-     <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
-      <tr>
-       <th {$headerStyle}>
-        {ts 1=$recur_installments}Interval of Subscription for %1 installments{/ts}
-       </th>
-      </tr>
-      <tr>
-       <td {$labelStyle}>
-        {ts}Start Date{/ts}
-       </td>
-       <td {$valueStyle}>
-        {$recur_start_date|crmDate}
-       </td>
-      </tr>
-      <tr>
-       <td {$labelStyle}>
-        {ts}End Date{/ts}
-       </td>
-       <td {$valueStyle}>
-        {$recur_end_date|crmDate}
-       </td>
-      </tr>
-     </table>
-
-    {/if}
-
-   </td>
-  </tr>
-
- </table>
-</center>
-
-</body>
-</html>
diff --git a/CRM/Upgrade/3.1.alpha2.msg_template/message_templates/event_offline_receipt_html.tpl b/CRM/Upgrade/3.1.alpha2.msg_template/message_templates/event_offline_receipt_html.tpl
deleted file mode 100644 (file)
index 0be514e..0000000
+++ /dev/null
@@ -1,433 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title></title>
-</head>
-<body>
-
-{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}
-
-<center>
- <table width="620" border="0" cellpadding="0" cellspacing="0" id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left;">
-
-  <!-- BEGIN HEADER -->
-  <!-- You can add table row(s) here with logo or other header elements -->
-  <!-- END HEADER -->
-
-  <!-- BEGIN CONTENT -->
-
-  <tr>
-   <td>
-
-    {if $event.confirm_email_text AND (not $isOnWaitlist AND not $isRequireApproval)}
-     <p>{$event.confirm_email_text|htmlize}</p>
-    {/if}
-
-    {if $isOnWaitlist}
-     <p>{ts}You have been added to the WAIT LIST for this event.{/ts}</p>
-     {if $isPrimary}
-       <p>{ts}If space becomes available you will receive an email with
-a link to a web page where you can complete your registration.{/ts}</p>
-     {/if}
-    {elseif $isRequireApproval}
-     <p>{ts}Your registration has been submitted.{/ts}</p>
-     {if $isPrimary}
-      <p>{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}</p>
-     {/if}
-    {elseif $is_pay_later}
-     <p>{$pay_later_receipt}</p> {* FIXME: this might be text rather than HTML *}
-    {else}
-     <p>{ts}Please print this confirmation for your records.{/ts}</p>
-    {/if}
-
-   </td>
-  </tr>
-  <tr>
-   <td>
-    <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
-     <tr>
-      <th {$headerStyle}>
-       {ts}Event Information and Location{/ts}
-      </th>
-     </tr>
-     <tr>
-      <td colspan="2" {$valueStyle}>
-       {$event.event_title}<br />
-       {$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}
-      </td>
-     </tr>
-
-     {if $event.participant_role neq 'Attendee' and $defaultRole}
-      <tr>
-       <td {$labelStyle}>
-        {ts}Participant Role{/ts}
-       </td>
-       <td {$valueStyle}>
-        {$event.participant_role}
-       </td>
-      </tr>
-     {/if}
-
-     {if $isShowLocation}
-      <tr>
-       <td colspan="2" {$valueStyle}>
-        {if $location.address.1.name}
-         {$location.address.1.name}<br />
-        {/if}
-        {if $location.address.1.street_address}
-         {$location.address.1.street_address}<br />
-        {/if}
-        {if $location.address.1.supplemental_address_1}
-         {$location.address.1.supplemental_address_1}<br />
-        {/if}
-        {if $location.address.1.supplemental_address_2}
-         {$location.address.1.supplemental_address_2}<br />
-        {/if}
-        {if $location.address.1.city}
-         {$location.address.1.city} {$location.address.1.postal_code}{if $location.address.1.postal_code_suffix} - {$location.address.1.postal_code_suffix}{/if}<br />
-        {/if}
-       </td>
-      </tr>
-     {/if}
-
-     {if $location.phone.1.phone || $location.email.1.email}
-      <tr>
-       <td colspan="2" {$labelStyle}>
-        {ts}Event Contacts:{/ts}
-       </td>
-      </tr>
-      {foreach from=$location.phone item=phone}
-       {if $phone.phone}
-        <tr>
-         <td {$labelStyle}>
-          {if $phone.phone_type}
-           {$phone.phone_type_display}
-          {else}
-           {ts}Phone{/ts}
-          {/if}
-         </td>
-         <td {$valueStyle}>
-          {$phone.phone}
-         </td>
-        </tr>
-       {/if}
-      {/foreach}
-      {foreach from=$location.email item=eventEmail}
-       {if $eventEmail.email}
-        <tr>
-         <td {$labelStyle}>
-          {ts}Email{/ts}
-         </td>
-         <td {$valueStyle}>
-          {$eventEmail.email}
-         </td>
-        </tr>
-       {/if}
-      {/foreach}
-     {/if}
-     <tr>
-      <td colspan="2" {$valueStyle}>
-       {capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&id=`$event.id`" h=0 a=1}{/capture}
-       <a href="{$icalFeed}">{ts}Download iCalendar File{/ts}</a>
-      </td>
-     </tr>
-     {if $email}
-      <tr>
-       <th {$headerStyle}>
-        {ts}Registered Email{/ts}
-       </th>
-      </tr>
-      <tr>
-       <td colspan="2" {$valueStyle}>
-        {$email}
-       </td>
-      </tr>
-     {/if}
-
-
-     {if $event.is_monetary}
-
-      <tr>
-       <th {$headerStyle}>
-        {$event.fee_label}
-       </th>
-      </tr>
-
-      {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. *}
-           <tr>
-            <td colspan="2" {$labelStyle}>
-             {ts 1=$priceset+1}Participant %1{/ts}
-            </td>
-           </tr>
-          {/if}
-         {/if}
-         <tr>
-          <td colspan="2" {$valueStyle}>
-           <table> {* FIXME: style this table so that it looks like the text version (justification, etc.) *}
-            <tr>
-             <th>{ts}Item{/ts}</th>
-             <th>{ts}Qty{/ts}</th>
-             <th>{ts}Each{/ts}</th>
-             <th>{ts}Total{/ts}</th>
-            </tr>
-            {foreach from=$value item=line}
-             <tr>
-              <td>
-               {$line.description|truncate:30:"..."}
-              </td>
-              <td>
-               {$line.qty}
-              </td>
-              <td>
-               {$line.unit_price|crmMoney}
-              </td>
-              <td>
-               {$line.line_total|crmMoney}
-              </td>
-             </tr>
-            {/foreach}
-           </table>
-          </td>
-         </tr>
-        {/if}
-       {/foreach}
-      {/if}
-
-      {if $amount && !$lineItem}
-       {foreach from=$amount item=amnt key=level}
-        <tr>
-         <td colspan="2" {$valueStyle}>
-          {$amnt.amount|crmMoney} {$amnt.label}
-         </td>
-        </tr>
-       {/foreach}
-      {/if}
-
-      {if $isPrimary}
-       <tr>
-        <td {$labelStyle}>
-         {ts}Total Amount{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$totalAmount|crmMoney} {if $hookDiscount.message}({$hookDiscount.message}){/if}
-        </td>
-       </tr>
-
-       {if $is_pay_later}
-        <tr>
-         <td colspan="2" {$labelStyle}>
-          {$pay_later_receipt}
-         </td>
-        </tr>
-       {/if}
-
-       {if $register_date}
-        <tr>
-         <td {$labelStyle}>
-          {ts}Registration Date{/ts}
-         </td>
-         <td {$valueStyle}>
-          {$register_date|crmDate}
-         </td>
-        </tr>
-       {/if}
-
-       {if $receive_date}
-        <tr>
-         <td {$labelStyle}>
-          {ts}Transaction Date{/ts}
-         </td>
-         <td {$valueStyle}>
-          {$receive_date|crmDate}
-         </td>
-        </tr>
-       {/if}
-
-       {if $contributionTypeName}
-        <tr>
-         <td {$labelStyle}>
-          {ts}Contribution Type{/ts}
-         </td>
-         <td {$valueStyle}>
-          {$contributionTypeName}
-         </td>
-        </tr>
-       {/if}
-
-       {if $trxn_id}
-        <tr>
-         <td {$labelStyle}>
-          {ts}Transaction #{/ts}
-         </td>
-         <td {$valueStyle}>
-          {$trxn_id}
-         </td>
-        </tr>
-       {/if}
-
-       {if $paidBy}
-        <tr>
-         <td {$labelStyle}>
-          {ts}Paid By{/ts}
-         </td>
-         <td {$valueStyle}>
-         {$paidBy}
-         </td>
-        </tr>
-       {/if}
-
-       {if $checkNumber}
-        <tr>
-         <td {$labelStyle}>
-          {ts}Check Number{/ts}
-         </td>
-         <td {$valueStyle}>
-          {$checkNumber}
-         </td>
-        </tr>
-       {/if}
-
-       {if $contributeMode ne 'notify' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
-        <tr>
-         <th {$headerStyle}>
-          {ts}Billing Name and Address{/ts}
-         </th>
-        </tr>
-        <tr>
-         <td colspan="2" {$valueStyle}>
-          {$billingName}<br />
-          {$address|nl2br}
-         </td>
-        </tr>
-       {/if}
-
-       {if $contributeMode eq 'direct' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
-        <tr>
-         <th {$headerStyle}>
-          {ts}Credit Card Information{/ts}
-         </th>
-        </tr>
-        <tr>
-         <td colspan="2" {$valueStyle}>
-          {$credit_card_type}<br />
-          {$credit_card_number}<br />
-          {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}
-         </td>
-        </tr>
-       {/if}
-
-      {/if}
-
-     {/if} {* End of conditional section for Paid events *}
-
-     {if $customPre}
-      <tr>
-       <th {$headerStyle}>
-        {$customPre_grouptitle}
-       </th>
-      </tr>
-      {foreach from=$customPre item=value key=customName}
-       {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
-        <tr>
-         <td {$labelStyle}>
-          {$customName}
-         </td>
-         <td {$valueStyle}>
-          {$value}
-         </td>
-        </tr>
-       {/if}
-      {/foreach}
-     {/if}
-
-     {if $customPost}
-      <tr>
-       <th {$headerStyle}>
-        {$customPost_grouptitle}
-       </th>
-      </tr>
-      {foreach from=$customPost item=value key=customName}
-       {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
-        <tr>
-         <td {$labelStyle}>
-          {$customName}
-         </td>
-         <td {$valueStyle}>
-          {$value}
-         </td>
-        </tr>
-       {/if}
-      {/foreach}
-     {/if}
-
-     {if $customProfile}
-      {foreach from=$customProfile item=value key=customName}
-       <tr>
-        <th {$headerStyle}>
-         {ts 1=$customName+1}Participant Information - Participant %1{/ts}
-        </th>
-       <tr>
-       {foreach from=$value item=val key=field}
-        {if $field eq 'additionalCustomPre' or $field eq 'additionalCustomPost'}
-         <tr>
-          <td colspan="2" {$labelStyle}>
-           {if $field eq 'additionalCustomPre'}
-            {$additionalCustomPre_grouptitle}
-           {else}
-            {$additionalCustomPost_grouptitle}
-           {/if}
-          </td>
-         </tr>
-         {foreach from=$val item=v key=f}
-          <tr>
-           <td {$labelStyle}>
-            {$f}
-           </td>
-           <td {$valueStyle}>
-            {$v}
-           </td>
-          </tr>
-         {/foreach}
-        {/if}
-       {/foreach}
-      {/foreach}
-     {/if}
-
-     {if $customGroup}
-      {foreach from=$customGroup item=value key=customName}
-       <tr>
-        <th {$headerStyle}>
-         {$customName}
-        </th>
-       </tr>
-       {foreach from=$value item=v key=n}
-        <tr>
-         <td {$labelStyle}>
-          {$n}
-         </td>
-         <td {$valueStyle}>
-          {$v}
-         </td>
-        </tr>
-       {/foreach}
-      {/foreach}
-     {/if}
-
-    </table>
-   </td>
-  </tr>
-
- </table>
-</center>
-
-</body>
-</html>
diff --git a/CRM/Upgrade/3.1.alpha2.msg_template/message_templates/event_online_receipt_html.tpl b/CRM/Upgrade/3.1.alpha2.msg_template/message_templates/event_online_receipt_html.tpl
deleted file mode 100644 (file)
index 0be514e..0000000
+++ /dev/null
@@ -1,433 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title></title>
-</head>
-<body>
-
-{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}
-
-<center>
- <table width="620" border="0" cellpadding="0" cellspacing="0" id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left;">
-
-  <!-- BEGIN HEADER -->
-  <!-- You can add table row(s) here with logo or other header elements -->
-  <!-- END HEADER -->
-
-  <!-- BEGIN CONTENT -->
-
-  <tr>
-   <td>
-
-    {if $event.confirm_email_text AND (not $isOnWaitlist AND not $isRequireApproval)}
-     <p>{$event.confirm_email_text|htmlize}</p>
-    {/if}
-
-    {if $isOnWaitlist}
-     <p>{ts}You have been added to the WAIT LIST for this event.{/ts}</p>
-     {if $isPrimary}
-       <p>{ts}If space becomes available you will receive an email with
-a link to a web page where you can complete your registration.{/ts}</p>
-     {/if}
-    {elseif $isRequireApproval}
-     <p>{ts}Your registration has been submitted.{/ts}</p>
-     {if $isPrimary}
-      <p>{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}</p>
-     {/if}
-    {elseif $is_pay_later}
-     <p>{$pay_later_receipt}</p> {* FIXME: this might be text rather than HTML *}
-    {else}
-     <p>{ts}Please print this confirmation for your records.{/ts}</p>
-    {/if}
-
-   </td>
-  </tr>
-  <tr>
-   <td>
-    <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
-     <tr>
-      <th {$headerStyle}>
-       {ts}Event Information and Location{/ts}
-      </th>
-     </tr>
-     <tr>
-      <td colspan="2" {$valueStyle}>
-       {$event.event_title}<br />
-       {$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}
-      </td>
-     </tr>
-
-     {if $event.participant_role neq 'Attendee' and $defaultRole}
-      <tr>
-       <td {$labelStyle}>
-        {ts}Participant Role{/ts}
-       </td>
-       <td {$valueStyle}>
-        {$event.participant_role}
-       </td>
-      </tr>
-     {/if}
-
-     {if $isShowLocation}
-      <tr>
-       <td colspan="2" {$valueStyle}>
-        {if $location.address.1.name}
-         {$location.address.1.name}<br />
-        {/if}
-        {if $location.address.1.street_address}
-         {$location.address.1.street_address}<br />
-        {/if}
-        {if $location.address.1.supplemental_address_1}
-         {$location.address.1.supplemental_address_1}<br />
-        {/if}
-        {if $location.address.1.supplemental_address_2}
-         {$location.address.1.supplemental_address_2}<br />
-        {/if}
-        {if $location.address.1.city}
-         {$location.address.1.city} {$location.address.1.postal_code}{if $location.address.1.postal_code_suffix} - {$location.address.1.postal_code_suffix}{/if}<br />
-        {/if}
-       </td>
-      </tr>
-     {/if}
-
-     {if $location.phone.1.phone || $location.email.1.email}
-      <tr>
-       <td colspan="2" {$labelStyle}>
-        {ts}Event Contacts:{/ts}
-       </td>
-      </tr>
-      {foreach from=$location.phone item=phone}
-       {if $phone.phone}
-        <tr>
-         <td {$labelStyle}>
-          {if $phone.phone_type}
-           {$phone.phone_type_display}
-          {else}
-           {ts}Phone{/ts}
-          {/if}
-         </td>
-         <td {$valueStyle}>
-          {$phone.phone}
-         </td>
-        </tr>
-       {/if}
-      {/foreach}
-      {foreach from=$location.email item=eventEmail}
-       {if $eventEmail.email}
-        <tr>
-         <td {$labelStyle}>
-          {ts}Email{/ts}
-         </td>
-         <td {$valueStyle}>
-          {$eventEmail.email}
-         </td>
-        </tr>
-       {/if}
-      {/foreach}
-     {/if}
-     <tr>
-      <td colspan="2" {$valueStyle}>
-       {capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&id=`$event.id`" h=0 a=1}{/capture}
-       <a href="{$icalFeed}">{ts}Download iCalendar File{/ts}</a>
-      </td>
-     </tr>
-     {if $email}
-      <tr>
-       <th {$headerStyle}>
-        {ts}Registered Email{/ts}
-       </th>
-      </tr>
-      <tr>
-       <td colspan="2" {$valueStyle}>
-        {$email}
-       </td>
-      </tr>
-     {/if}
-
-
-     {if $event.is_monetary}
-
-      <tr>
-       <th {$headerStyle}>
-        {$event.fee_label}
-       </th>
-      </tr>
-
-      {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. *}
-           <tr>
-            <td colspan="2" {$labelStyle}>
-             {ts 1=$priceset+1}Participant %1{/ts}
-            </td>
-           </tr>
-          {/if}
-         {/if}
-         <tr>
-          <td colspan="2" {$valueStyle}>
-           <table> {* FIXME: style this table so that it looks like the text version (justification, etc.) *}
-            <tr>
-             <th>{ts}Item{/ts}</th>
-             <th>{ts}Qty{/ts}</th>
-             <th>{ts}Each{/ts}</th>
-             <th>{ts}Total{/ts}</th>
-            </tr>
-            {foreach from=$value item=line}
-             <tr>
-              <td>
-               {$line.description|truncate:30:"..."}
-              </td>
-              <td>
-               {$line.qty}
-              </td>
-              <td>
-               {$line.unit_price|crmMoney}
-              </td>
-              <td>
-               {$line.line_total|crmMoney}
-              </td>
-             </tr>
-            {/foreach}
-           </table>
-          </td>
-         </tr>
-        {/if}
-       {/foreach}
-      {/if}
-
-      {if $amount && !$lineItem}
-       {foreach from=$amount item=amnt key=level}
-        <tr>
-         <td colspan="2" {$valueStyle}>
-          {$amnt.amount|crmMoney} {$amnt.label}
-         </td>
-        </tr>
-       {/foreach}
-      {/if}
-
-      {if $isPrimary}
-       <tr>
-        <td {$labelStyle}>
-         {ts}Total Amount{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$totalAmount|crmMoney} {if $hookDiscount.message}({$hookDiscount.message}){/if}
-        </td>
-       </tr>
-
-       {if $is_pay_later}
-        <tr>
-         <td colspan="2" {$labelStyle}>
-          {$pay_later_receipt}
-         </td>
-        </tr>
-       {/if}
-
-       {if $register_date}
-        <tr>
-         <td {$labelStyle}>
-          {ts}Registration Date{/ts}
-         </td>
-         <td {$valueStyle}>
-          {$register_date|crmDate}
-         </td>
-        </tr>
-       {/if}
-
-       {if $receive_date}
-        <tr>
-         <td {$labelStyle}>
-          {ts}Transaction Date{/ts}
-         </td>
-         <td {$valueStyle}>
-          {$receive_date|crmDate}
-         </td>
-        </tr>
-       {/if}
-
-       {if $contributionTypeName}
-        <tr>
-         <td {$labelStyle}>
-          {ts}Contribution Type{/ts}
-         </td>
-         <td {$valueStyle}>
-          {$contributionTypeName}
-         </td>
-        </tr>
-       {/if}
-
-       {if $trxn_id}
-        <tr>
-         <td {$labelStyle}>
-          {ts}Transaction #{/ts}
-         </td>
-         <td {$valueStyle}>
-          {$trxn_id}
-         </td>
-        </tr>
-       {/if}
-
-       {if $paidBy}
-        <tr>
-         <td {$labelStyle}>
-          {ts}Paid By{/ts}
-         </td>
-         <td {$valueStyle}>
-         {$paidBy}
-         </td>
-        </tr>
-       {/if}
-
-       {if $checkNumber}
-        <tr>
-         <td {$labelStyle}>
-          {ts}Check Number{/ts}
-         </td>
-         <td {$valueStyle}>
-          {$checkNumber}
-         </td>
-        </tr>
-       {/if}
-
-       {if $contributeMode ne 'notify' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
-        <tr>
-         <th {$headerStyle}>
-          {ts}Billing Name and Address{/ts}
-         </th>
-        </tr>
-        <tr>
-         <td colspan="2" {$valueStyle}>
-          {$billingName}<br />
-          {$address|nl2br}
-         </td>
-        </tr>
-       {/if}
-
-       {if $contributeMode eq 'direct' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
-        <tr>
-         <th {$headerStyle}>
-          {ts}Credit Card Information{/ts}
-         </th>
-        </tr>
-        <tr>
-         <td colspan="2" {$valueStyle}>
-          {$credit_card_type}<br />
-          {$credit_card_number}<br />
-          {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}
-         </td>
-        </tr>
-       {/if}
-
-      {/if}
-
-     {/if} {* End of conditional section for Paid events *}
-
-     {if $customPre}
-      <tr>
-       <th {$headerStyle}>
-        {$customPre_grouptitle}
-       </th>
-      </tr>
-      {foreach from=$customPre item=value key=customName}
-       {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
-        <tr>
-         <td {$labelStyle}>
-          {$customName}
-         </td>
-         <td {$valueStyle}>
-          {$value}
-         </td>
-        </tr>
-       {/if}
-      {/foreach}
-     {/if}
-
-     {if $customPost}
-      <tr>
-       <th {$headerStyle}>
-        {$customPost_grouptitle}
-       </th>
-      </tr>
-      {foreach from=$customPost item=value key=customName}
-       {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
-        <tr>
-         <td {$labelStyle}>
-          {$customName}
-         </td>
-         <td {$valueStyle}>
-          {$value}
-         </td>
-        </tr>
-       {/if}
-      {/foreach}
-     {/if}
-
-     {if $customProfile}
-      {foreach from=$customProfile item=value key=customName}
-       <tr>
-        <th {$headerStyle}>
-         {ts 1=$customName+1}Participant Information - Participant %1{/ts}
-        </th>
-       <tr>
-       {foreach from=$value item=val key=field}
-        {if $field eq 'additionalCustomPre' or $field eq 'additionalCustomPost'}
-         <tr>
-          <td colspan="2" {$labelStyle}>
-           {if $field eq 'additionalCustomPre'}
-            {$additionalCustomPre_grouptitle}
-           {else}
-            {$additionalCustomPost_grouptitle}
-           {/if}
-          </td>
-         </tr>
-         {foreach from=$val item=v key=f}
-          <tr>
-           <td {$labelStyle}>
-            {$f}
-           </td>
-           <td {$valueStyle}>
-            {$v}
-           </td>
-          </tr>
-         {/foreach}
-        {/if}
-       {/foreach}
-      {/foreach}
-     {/if}
-
-     {if $customGroup}
-      {foreach from=$customGroup item=value key=customName}
-       <tr>
-        <th {$headerStyle}>
-         {$customName}
-        </th>
-       </tr>
-       {foreach from=$value item=v key=n}
-        <tr>
-         <td {$labelStyle}>
-          {$n}
-         </td>
-         <td {$valueStyle}>
-          {$v}
-         </td>
-        </tr>
-       {/foreach}
-      {/foreach}
-     {/if}
-
-    </table>
-   </td>
-  </tr>
-
- </table>
-</center>
-
-</body>
-</html>
diff --git a/CRM/Upgrade/3.1.alpha2.msg_template/message_templates/friend_html.tpl b/CRM/Upgrade/3.1.alpha2.msg_template/message_templates/friend_html.tpl
deleted file mode 100644 (file)
index 8ebd8c2..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title></title>
-</head>
-<body>
-
-{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}
-
-<center>
- <table width="620" border="0" cellpadding="0" cellspacing="0" id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left;">
-
-  <!-- BEGIN HEADER -->
-  <!-- You can add table row(s) here with logo or other header elements -->
-  <!-- END HEADER -->
-
-  <!-- BEGIN CONTENT -->
-
-  <tr>
-   <td>
-    <p>{$senderMessage}</p>
-    {if $generalLink}
-     <p><a href="{$generalLink}">{ts}More information{/ts}</a></p>
-    {/if}
-    {if $contribute}
-     <p><a href="{$pageURL}">{ts}Make a contribution{/ts}</a></p>
-    {/if}
-    {if $event}
-     <p><a href="{$pageURL}">{ts}Find out more about this event{/ts}</a></p>
-    {/if}
-   </td>
-  </tr>
- </table>
-</center>
-
-</body>
-</html>
diff --git a/CRM/Upgrade/3.1.alpha2.msg_template/message_templates/membership_offline_receipt_html.tpl b/CRM/Upgrade/3.1.alpha2.msg_template/message_templates/membership_offline_receipt_html.tpl
deleted file mode 100644 (file)
index 8b88a38..0000000
+++ /dev/null
@@ -1,203 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title></title>
-</head>
-<body>
-
-{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}
-
-<center>
- <table width="620" border="0" cellpadding="0" cellspacing="0" id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left;">
-
-  <!-- BEGIN HEADER -->
-  <!-- You can add table row(s) here with logo or other header elements -->
-  <!-- END HEADER -->
-
-  <!-- BEGIN CONTENT -->
-
-  <tr>
-   <td>
-    {if $formValues.receipt_text_signup}
-     <p>{$formValues.receipt_text_signup|htmlize}</p>
-    {elseif $formValues.receipt_text_renewal}
-     <p>{$formValues.receipt_text_renewal|htmlize}</p>
-    {else}
-     <p>{ts}Thank you for your support.{/ts}</p>
-    {/if}
-    {if ! $cancelled}
-     <p>{ts}Please print this receipt for your records.{/ts}</p>
-    {/if}
-   </td>
-  </tr>
-  <tr>
-   <td>
-    <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
-     <tr>
-      <th {$headerStyle}>
-       {ts}Membership Information{/ts}
-      </th>
-     </tr>
-     <tr>
-      <td {$labelStyle}>
-       {ts}Membership Type{/ts}
-      </td>
-      <td {$valueStyle}>
-       {$membership_name}
-      </td>
-     </tr>
-     {if ! $cancelled}
-      <tr>
-       <td {$labelStyle}>
-        {ts}Membership Start Date{/ts}
-       </td>
-       <td {$valueStyle}>
-        {$mem_start_date}
-       </td>
-      </tr>
-      <tr>
-       <td {$labelStyle}>
-        {ts}Membership End Date{/ts}
-       </td>
-       <td {$valueStyle}>
-        {$mem_end_date}
-       </td>
-      </tr>
-      {if $formValues.total_amount}
-       <tr>
-        <th {$headerStyle}>
-         {ts}Membership Fee{/ts}
-        </th>
-       </tr>
-       {if $formValues.contributionType_name}
-        <tr>
-         <td {$labelStyle}>
-          {ts}Contribution Type{/ts}
-         </td>
-         <td {$valueStyle}>
-          {$formValues.contributionType_name}
-         </td>
-        </tr>
-       {/if}
-       <tr>
-        <td {$labelStyle}>
-         {ts}Amount{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$formValues.total_amount|crmMoney}
-        </td>
-       </tr>
-       {if $receive_date}
-        <tr>
-         <td {$labelStyle}>
-          {ts}Received Date{/ts}
-         </td>
-         <td {$valueStyle}>
-          {$receive_date|truncate:10:''|crmDate}
-         </td>
-        </tr>
-       {/if}
-       {if $formValues.paidBy}
-        <tr>
-         <td {$labelStyle}>
-          {ts}Paid By{/ts}
-         </td>
-         <td {$valueStyle}>
-          {$formValues.paidBy}
-         </td>
-        </tr>
-        {if $formValues.check_number}
-         <tr>
-          <td {$labelStyle}>
-           {ts}Check Number{/ts}
-          </td>
-          <td {$valueStyle}>
-           {$formValues.check_number}
-          </td>
-         </tr>
-        {/if}
-       {/if}
-      {/if}
-     {/if}
-    </table>
-   </td>
-  </tr>
-
-  {if $isPrimary}
-   <tr>
-    <td>
-     <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
-
-      {if $contributeMode ne 'notify' and !$isAmountzero and !$is_pay_later }
-       <tr>
-        <th {$headerStyle}>
-         {ts}Billing Name and Address{/ts}
-        </th>
-       </tr>
-       <tr>
-        <td {$labelStyle}>
-         {$billingName}<br />
-         {$address}
-        </td>
-       </tr>
-      {/if}
-
-      {if $contributeMode eq 'direct' and !$isAmountzero and !$is_pay_later}
-       <tr>
-        <th {$headerStyle}>
-         {ts}Credit Card Information{/ts}
-        </th>
-       </tr>
-       <tr>
-        <td {$valueStyle}>
-         {$credit_card_type}<br />
-         {$credit_card_number}
-        </td>
-       </tr>
-       <tr>
-        <td {$labelStyle}>
-         {ts}Expires{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$credit_card_exp_date|truncate:7:''|crmDate}
-        </td>
-       </tr>
-      {/if}
-
-     </table>
-    </td>
-   </tr>
-  {/if}
-
-  {if $customValues}
-   <tr>
-    <td>
-     <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
-      <tr>
-       <th {$headerStyle}>
-        {ts}Membership Options{/ts}
-       </th>
-      </tr>
-      {foreach from=$customValues item=value key=customName}
-       <tr>
-        <td {$labelStyle}>
-         {$customName}
-        </td>
-        <td {$valueStyle}>
-         {$value}
-        </td>
-       </tr>
-      {/foreach}
-     </table>
-    </td>
-   </tr>
-  {/if}
-
- </table>
-</center>
-
-</body>
-</html>
diff --git a/CRM/Upgrade/3.1.alpha2.msg_template/message_templates/membership_online_receipt_html.tpl b/CRM/Upgrade/3.1.alpha2.msg_template/message_templates/membership_online_receipt_html.tpl
deleted file mode 100644 (file)
index a1cbefd..0000000
+++ /dev/null
@@ -1,490 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title></title>
-</head>
-<body>
-
-{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}
-
-<center>
- <table width="620" border="0" cellpadding="0" cellspacing="0" id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left;">
-
-  <!-- BEGIN HEADER -->
-  <!-- You can add table row(s) here with logo or other header elements -->
-  <!-- END HEADER -->
-
-  <!-- BEGIN CONTENT -->
-
-  <tr>
-   <td>
-
-    {if $receipt_text}
-     <p>{$receipt_text|htmlize}</p>
-    {/if}
-
-    {if $is_pay_later}
-     <p>{$pay_later_receipt}</p> {* FIXME: this might be text rather than HTML *}
-    {else}
-     <p>{ts}Please print this confirmation for your records.{/ts}</p>
-    {/if}
-
-   </td>
-  </tr>
-  <tr>
-   <td>
-    <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
-
-     {if $membership_assign}
-      <tr>
-       <th {$headerStyle}>
-        {ts}Membership Information{/ts}
-       </th>
-      </tr>
-      <tr>
-       <td {$labelStyle}>
-        {ts}Membership Type{/ts}
-       </td>
-       <td {$valueStyle}>
-        {$membership_name}
-       </td>
-      </tr>
-      {if $mem_start_date}
-       <tr>
-        <td {$labelStyle}>
-         {ts}Membership Start Date{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$mem_start_date|crmDate}
-        </td>
-       </tr>
-      {/if}
-      {if $mem_end_date}
-       <tr>
-        <td {$labelStyle}>
-         {ts}Membership End Date{/ts}
-        </td>
-        <td {$valueStyle}>
-          {$mem_end_date|crmDate}
-        </td>
-       </tr>
-      {/if}
-     {/if}
-
-
-     {if $amount}
-
-
-      <tr>
-       <th {$headerStyle}>
-        {ts}Membership Fee{/ts}
-       </th>
-      </tr>
-
-      {if $membership_amount}
-
-       <tr>
-        <td {$labelStyle}>
-         {ts 1=$membership_name}%1 Membership{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$membership_amount|crmMoney}
-        </td>
-       </tr>
-       {if $amount}
-        {if ! $is_separate_payment }
-         <tr>
-          <td {$labelStyle}>
-           {ts}Contribution Amount{/ts}
-          </td>
-          <td {$valueStyle}>
-           {$amount|crmMoney}
-          </td>
-         </tr>
-        {else}
-         <tr>
-          <td {$labelStyle}>
-           {ts}Additional Contribution{/ts}
-          </td>
-          <td {$valueStyle}>
-           {$amount|crmMoney}
-          </td>
-         </tr>
-        {/if}
-       {/if}
-       <tr>
-        <td {$labelStyle}>
-         {ts}Total{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$amount+$membership_amount|crmMoney}
-        </td>
-       </tr>
-
-      {elseif $lineItem and $priceSetID}
-
-       {foreach from=$lineItem item=value key=priceset}
-        <tr>
-         <td colspan="2" {$valueStyle}>
-          <table> {* FIXME: style this table so that it looks like the text version (justification, etc.) *}
-           <tr>
-            <th>{ts}Item{/ts}</th>
-            <th>{ts}Qty{/ts}</th>
-            <th>{ts}Each{/ts}</th>
-            <th>{ts}Total{/ts}</th>
-           </tr>
-           {foreach from=$value item=line}
-            <tr>
-             <td>
-              {$line.description|truncate:30:"..."}
-             </td>
-             <td>
-              {$line.qty}
-             </td>
-             <td>
-              {$line.unit_price|crmMoney}
-             </td>
-             <td>
-              {$line.line_total|crmMoney}
-             </td>
-            </tr>
-           {/foreach}
-          </table>
-         </td>
-        </tr>
-       {/foreach}
-       <tr>
-        <td {$labelStyle}>
-         {ts}Total Amount{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$amount|crmMoney}
-        </td>
-       </tr>
-
-      {else}
-
-       <tr>
-        <td {$labelStyle}>
-         {ts}Amount{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$amount|crmMoney} {if $amount_level} - {$amount_level}{/if}
-        </td>
-       </tr>
-
-      {/if}
-
-
-     {elseif $membership_amount}
-
-
-      <tr>
-       <th {$headerStyle}>
-        {ts}Membership Fee{/ts}
-       </th>
-      </tr>
-      <tr>
-       <td {$labelStyle}>
-        {ts 1=$membership_name}%1 Membership{/ts}
-       </td>
-       <td {$valueStyle}>
-        {$membership_amount|crmMoney}
-       </td>
-      </tr>
-
-
-     {/if}
-
-
-     {if $receive_date}
-      <tr>
-       <td {$labelStyle}>
-        {ts}Date{/ts}
-       </td>
-       <td {$valueStyle}>
-        {$receive_date|crmDate}
-       </td>
-      </tr>
-     {/if}
-
-     {if $is_monetary and $trxn_id}
-      <tr>
-       <td {$labelStyle}>
-        {ts}Transaction #{/ts}
-       </td>
-       <td {$valueStyle}>
-        {$trxn_id}
-       </td>
-      </tr>
-     {/if}
-
-     {if $membership_trx_id}
-      <tr>
-       <td {$labelStyle}>
-        {ts}Membership Transaction #{/ts}
-       </td>
-       <td {$valueStyle}>
-        {$membership_trx_id}
-       </td>
-      </tr>
-     {/if}
-
-     {if $is_recur}
-      {if $contributeMode eq 'notify'}
-       <tr>
-        <td {$labelStyle}>
-         {ts 1=$cancelSubscriptionUrl}This is a recurring contribution. You can modify or cancel future contributions by <a href="%1">logging in to your account</a>.{/ts}
-        </td>
-       </tr>
-      {elseif $contributeMode eq 'directIPN' and $receiptFromEmail}
-       <tr>
-        <td {$labelStyle}>
-         {ts 1=$receiptFromEmail}This is a recurring contribution. To modify or cancel future contributions please contact us at %1.{/ts}
-        </td>
-       </tr>
-      {/if}
-     {/if}
-
-     {if $honor_block_is_active}
-      <tr>
-       <th {$headerStyle}>
-        {$honor_type}
-       </th>
-      </tr>
-      <tr>
-       <td colspan="2" {$labelStyle}>
-        {$honor_prefix} {$honor_first_name} {$honor_last_name}
-       </td>
-      </tr>
-      {if $honor_email}
-       <tr>
-        <td {$labelStyle}>
-         {ts}Honoree Email{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$honor_email}
-        </td>
-       </tr>
-      {/if}
-     {/if}
-
-     {if $pcpBlock}
-      <tr>
-       <th {$headerStyle}>
-        {ts}Personal Campaign Page{/ts}
-       </th>
-      </tr>
-      <tr>
-       <td {$labelStyle}>
-        {ts}Display In Honor Roll{/ts}
-       </td>
-       <td {$valueStyle}>
-        {if $pcp_display_in_roll}{ts}Yes{/ts}{else}{ts}No{/ts}{/if}
-       </td>
-      </tr>
-      {if $pcp_roll_nickname}
-       <tr>
-        <td {$labelStyle}>
-         {ts}Nickname{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$pcp_roll_nickname}
-        </td>
-       </tr>
-      {/if}
-      {if $pcp_personal_note}
-       <tr>
-        <td {$labelStyle}>
-         {ts}Personal Note{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$pcp_personal_note}
-        </td>
-       </tr>
-      {/if}
-     {/if}
-
-     {if $onBehalfName}
-      <tr>
-       <th {$headerStyle}>
-        {ts}On Behalf Of{/ts}
-       </th>
-      </tr>
-      <tr>
-       <td colspan="2" {$valueStyle}>
-        {$onBehalfName}<br />
-        {$onBehalfAddress|nl2br}<br />
-        {$onBehalfEmail}
-       </td>
-      </tr>
-     {/if}
-
-     {if ! ($contributeMode eq 'notify' OR $contributeMode eq 'directIPN') and $is_monetary}
-      {if $is_pay_later}
-       <tr>
-        <th {$headerStyle}>
-         {ts}Registered Email{/ts}
-        </th>
-       </tr>
-       <tr>
-        <td colspan="2" {$valueStyle}>
-         {$email}
-        </td>
-       </tr>
-      {elseif $amount GT 0 OR $membership_amount GT 0}
-       <tr>
-        <th {$headerStyle}>
-         {ts}Billing Name and Address{/ts}
-        </th>
-       </tr>
-       <tr>
-        <td colspan="2" {$valueStyle}>
-         {$billingName}<br />
-         {$address|nl2br}<br />
-         {$email}
-        </td>
-       </tr>
-      {/if}
-     {/if}
-
-     {if $contributeMode eq 'direct' AND !$is_pay_later AND ($amount GT 0 OR $membership_amount GT 0)}
-      <tr>
-       <th {$headerStyle}>
-        {ts}Credit Card Information{/ts}
-       </th>
-      </tr>
-      <tr>
-       <td colspan="2" {$valueStyle}>
-        {$credit_card_type}<br />
-        {$credit_card_number}<br />
-        {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}<br />
-       </td>
-      </tr>
-     {/if}
-
-     {if $selectPremium}
-      <tr>
-       <th {$headerStyle}>
-        {ts}Premium Information{/ts}
-       </th>
-      </tr>
-      <tr>
-       <td colspan="2" {$labelStyle}>
-        {$product_name}
-       </td>
-      </tr>
-      {if $option}
-       <tr>
-        <td {$labelStyle}>
-         {ts}Option{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$option}
-        </td>
-       </tr>
-      {/if}
-      {if $sku}
-       <tr>
-        <td {$labelStyle}>
-         {ts}SKU{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$sku}
-        </td>
-       </tr>
-      {/if}
-      {if $start_date}
-       <tr>
-        <td {$labelStyle}>
-         {ts}Start Date{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$start_date|crmDate}
-        </td>
-       </tr>
-      {/if}
-      {if $end_date}
-       <tr>
-        <td {$labelStyle}>
-         {ts}End Date{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$end_date|crmDate}
-        </td>
-       </tr>
-      {/if}
-      {if $contact_email OR $contact_phone}
-       <tr>
-        <td colspan="2" {$valueStyle}>
-         <p>{ts}For information about this premium, contact:{/ts}</p>
-         {if $contact_email}
-          <p>{$contact_email}</p>
-         {/if}
-         {if $contact_phone}
-          <p>{$contact_phone}</p>
-         {/if}
-        </td>
-       </tr>
-      {/if}
-      {if $is_deductible AND $price}
-        <tr>
-         <td colspan="2" {$valueStyle}>
-          <p>{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}</p>
-         </td>
-        </tr>
-      {/if}
-     {/if}
-
-     {if $customPre}
-      <tr>
-       <th {$headerStyle}>
-        {ts}{$customPre_grouptitle} {/ts}
-       </th>
-      </tr>
-      {foreach from=$customPre item=customValue key=customName}
-       {if ($trackingFields and ! in_array($customName, $trackingFields)) or ! $trackingFields}
-        <tr>
-         <td {$labelStyle}>
-          {$customName}
-         </td>
-         <td {$valueStyle}>
-          {$customValue}
-         </td>
-        </tr>
-       {/if}
-      {/foreach}
-     {/if}
-
-     {if $customPost}
-      <tr>
-       <th {$headerStyle}>
-        {ts}{$customPost_grouptitle}{/ts}
-       </th>
-      </tr>
-      {foreach from=$customPost item=customValue key=customName}
-       {if ($trackingFields and ! in_array($customName, $trackingFields)) or ! $trackingFields}
-        <tr>
-         <td {$labelStyle}>
-          {$customName}
-         </td>
-         <td {$valueStyle}>
-          {$customValue}
-         </td>
-        </tr>
-       {/if}
-      {/foreach}
-     {/if}
-
-    </table>
-   </td>
-  </tr>
-
- </table>
-</center>
-
-</body>
-</html>
diff --git a/CRM/Upgrade/3.1.alpha2.msg_template/message_templates/participant_cancelled_html.tpl b/CRM/Upgrade/3.1.alpha2.msg_template/message_templates/participant_cancelled_html.tpl
deleted file mode 100644 (file)
index edcec03..0000000
+++ /dev/null
@@ -1,153 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title></title>
-</head>
-<body>
-
-{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}
-
-<center>
- <table width="620" border="0" cellpadding="0" cellspacing="0" id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left;">
-
-  <!-- BEGIN HEADER -->
-  <!-- You can add table row(s) here with logo or other header elements -->
-  <!-- END HEADER -->
-
-  <!-- BEGIN CONTENT -->
-
-  <tr>
-   <td>
-    <p>{ts 1=$contact.display_name}Dear %1{/ts},</p>
-    <p>{ts}Your Event Registration has been cancelled.{/ts}</p>
-   </td>
-  </tr>
-  <tr>
-   <td>
-    <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
-     <tr>
-      <th {$headerStyle}>
-       {ts}Event Information and Location{/ts}
-      </th>
-     </tr>
-     <tr>
-      <td colspan="2" {$valueStyle}>
-       {$event.event_title}<br />
-       {$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}
-      </td>
-     </tr>
-     <tr>
-      <td {$labelStyle}>
-       {ts}Participant Role{/ts}:
-      </td>
-      <td {$valueStyle}>
-       {$participant.role}
-      </td>
-     </tr>
-
-     {if $isShowLocation}
-      <tr>
-       <td colspan="2" {$valueStyle}>
-        {if $event.location.address.1.name}
-         {$event.location.address.1.name}<br />
-        {/if}
-        {if $event.location.address.1.street_address}
-         {$event.location.address.1.street_address}<br />
-        {/if}
-        {if $event.location.address.1.supplemental_address_1}
-         {$event.location.address.1.supplemental_address_1}<br />
-        {/if}
-        {if $event.location.address.1.supplemental_address_2}
-         {$event.location.address.1.supplemental_address_2}<br />
-        {/if}
-        {if $event.location.address.1.city}
-         {$event.location.address.1.city} {$event.location.address.1.postal_code}
-         {if $event.location.address.1.postal_code_suffix}
-          - {$event.location.address.1.postal_code_suffix}
-         {/if}
-        {/if}
-       </td>
-      </tr>
-     {/if}
-
-     {if $event.location.phone.1.phone || $event.location.email.1.email}
-      <tr>
-       <td colspan="2" {$labelStyle}>
-        {ts}Event Contacts:{/ts}
-       </td>
-      </tr>
-      {foreach from=$event.location.phone item=phone}
-       {if $phone.phone}
-        <tr>
-         <td {$labelStyle}>
-          {if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}
-         </td>
-         <td {$valueStyle}>
-          {$phone.phone}
-         </td>
-        </tr>
-       {/if}
-      {/foreach}
-      {foreach from=$event.location.email item=eventEmail}
-       {if $eventEmail.email}
-        <tr>
-         <td {$labelStyle}>
-          {ts}Email{/ts}
-         </td>
-         <td {$valueStyle}>
-          {$eventEmail.email}
-         </td>
-        </tr>
-       {/if}
-      {/foreach}
-     {/if}
-
-     {capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&id=`$event.id`" h=0 a=1}{/capture}
-     <tr>
-      <td colspan="2" {$valueStyle}>
-       <a href="{$icalFeed}">{ts}Download iCalendar File{/ts}</a>
-      </td>
-     </tr>
-
-     {if $contact.email}
-      <tr>
-       <th {$headerStyle}>
-        {ts}Registered Email{/ts}
-       </th>
-      </tr>
-      <tr>
-       <td colspan="2" {$valueStyle}>
-        {$contact.email}
-       </td>
-      </tr>
-     {/if}
-
-     {if $register_date}
-      <tr>
-       <td {$labelStyle}>
-        {ts}Registration Date{/ts}
-       </td>
-       <td {$valueStyle}>
-        {$participant.register_date|crmDate}
-       </td>
-      </tr>
-     {/if}
-
-    </table>
-   </td>
-  </tr>
-
-  <tr>
-   <td>
-    <p>{ts 1=$domain.phone 2=$domain.email}Please contact us at %1 or send email to %2 if you have questions.{/ts}</p>
-   </td>
-  </tr>
-
- </table>
-</center>
-
-</body>
-</html>
diff --git a/CRM/Upgrade/3.1.alpha2.msg_template/message_templates/participant_confirm_html.tpl b/CRM/Upgrade/3.1.alpha2.msg_template/message_templates/participant_confirm_html.tpl
deleted file mode 100644 (file)
index 1b9a627..0000000
+++ /dev/null
@@ -1,165 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title></title>
-</head>
-<body>
-
-{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}
-
-<center>
- <table width="620" border="0" cellpadding="0" cellspacing="0" id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left;">
-
-  <!-- BEGIN HEADER -->
-  <!-- You can add table row(s) here with logo or other header elements -->
-  <!-- END HEADER -->
-
-  <!-- BEGIN CONTENT -->
-
-  <tr>
-   <td>
-    <p>{ts 1=$contact.display_name}Dear %1{/ts},</p>
-   </td>
-  </tr>
-  {if !$isAdditional and $participant.id}
-   <tr>
-    <th {$headerStyle}>
-     {ts}Confirm Your Registration{/ts}
-    </th>
-   </tr>
-   <tr>
-    <td colspan="2" {$valueStyle}>
-     {capture assign=confirmUrl}{crmURL p='civicrm/event/confirm' q="reset=1&participantId=`$participant.id`&cs=`$checksumValue`" a=true h=0 fe=1}{/capture}
-     <a href="{$confirmUrl}">Go to a web page where you can confirm your registration online</a>
-    </td>
-   </tr>
-  {/if}
-  <tr>
-   <td>
-    <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
-     <tr>
-      <th {$headerStyle}>
-       {ts}Event Information and Location{/ts}
-      </th>
-     </tr>
-     <tr>
-      <td colspan="2" {$valueStyle}>
-       {$event.event_title}<br />
-       {$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}
-      </td>
-     </tr>
-     <tr>
-      <td {$labelStyle}>
-       {ts}Participant Role{/ts}:
-      </td>
-      <td {$valueStyle}>
-       {$participant.role}
-      </td>
-     </tr>
-
-     {if $isShowLocation}
-      <tr>
-       <td colspan="2" {$valueStyle}>
-        {if $event.location.address.1.name}
-         {$event.location.address.1.name}<br />
-        {/if}
-        {if $event.location.address.1.street_address}
-         {$event.location.address.1.street_address}<br />
-        {/if}
-        {if $event.location.address.1.supplemental_address_1}
-         {$event.location.address.1.supplemental_address_1}<br />
-        {/if}
-        {if $event.location.address.1.supplemental_address_2}
-         {$event.location.address.1.supplemental_address_2}<br />
-        {/if}
-        {if $event.location.address.1.city}
-         {$event.location.address.1.city} {$event.location.address.1.postal_code}
-         {if $event.location.address.1.postal_code_suffix}
-          - {$event.location.address.1.postal_code_suffix}
-         {/if}
-        {/if}
-       </td>
-      </tr>
-     {/if}
-
-     {if $event.location.phone.1.phone || $event.location.email.1.email}
-      <tr>
-       <td colspan="2" {$labelStyle}>
-        {ts}Event Contacts:{/ts}
-       </td>
-      </tr>
-      {foreach from=$event.location.phone item=phone}
-       {if $phone.phone}
-        <tr>
-         <td {$labelStyle}>
-          {if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}
-         </td>
-         <td {$valueStyle}>
-          {$phone.phone}
-         </td>
-        </tr>
-       {/if}
-      {/foreach}
-      {foreach from=$event.location.email item=eventEmail}
-       {if $eventEmail.email}
-        <tr>
-         <td {$labelStyle}>
-          {ts}Email{/ts}
-         </td>
-         <td {$valueStyle}>
-          {$eventEmail.email}
-         </td>
-        </tr>
-       {/if}
-      {/foreach}
-     {/if}
-
-     {capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture}
-     <tr>
-      <td colspan="2" {$valueStyle}>
-       <a href="{$icalFeed}">{ts}Download iCalendar File{/ts}</a>
-      </td>
-     </tr>
-
-     {if $contact.email}
-      <tr>
-       <th {$headerStyle}>
-        {ts}Registered Email{/ts}
-       </th>
-      </tr>
-      <tr>
-       <td colspan="2" {$valueStyle}>
-        {$contact.email}
-       </td>
-      </tr>
-     {/if}
-
-     {if $register_date}
-      <tr>
-       <td {$labelStyle}>
-        {ts}Registration Date{/ts}
-       </td>
-       <td {$valueStyle}>
-        {$participant.register_date|crmDate}
-       </td>
-      </tr>
-     {/if}
-
-    </table>
-   </td>
-  </tr>
-
-  <tr>
-   <td>
-    <p>{ts 1=$domain.phone 2=$domain.email}Please contact us at %1 or send email to %2 if you have questions.{/ts}</p>
-   </td>
-  </tr>
-
- </table>
-</center>
-
-</body>
-</html>
diff --git a/CRM/Upgrade/3.1.alpha2.msg_template/message_templates/participant_confirm_text.tpl b/CRM/Upgrade/3.1.alpha2.msg_template/message_templates/participant_confirm_text.tpl
deleted file mode 100644 (file)
index c2c9213..0000000
+++ /dev/null
@@ -1,68 +0,0 @@
-{ts 1=$contact.display_name}Dear %1{/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}
-
-===========================================================
-{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}
-{if $event.location.address.1.name}
-
-{$event.location.address.1.name}
-{/if}
-{if $event.location.address.1.street_address}{$event.location.address.1.street_address}
-{/if}
-{if $event.location.address.1.supplemental_address_1}{$event.location.address.1.supplemental_address_1}
-{/if}
-{if $event.location.address.1.supplemental_address_2}{$event.location.address.1.supplemental_address_2}
-{/if}
-{if $event.location.address.1.city}{$event.location.address.1.city} {$event.location.address.1.postal_code}{if $event.location.address.1.postal_code_suffix} - {$event.location.address.1.postal_code_suffix}{/if}
-{/if}
-
-{/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}
-
-{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 $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}
-
diff --git a/CRM/Upgrade/3.1.alpha2.msg_template/message_templates/participant_expired_html.tpl b/CRM/Upgrade/3.1.alpha2.msg_template/message_templates/participant_expired_html.tpl
deleted file mode 100644 (file)
index 640e949..0000000
+++ /dev/null
@@ -1,156 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title></title>
-</head>
-<body>
-
-{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}
-
-<center>
- <table width="620" border="0" cellpadding="0" cellspacing="0" id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left;">
-
-  <!-- BEGIN HEADER -->
-  <!-- You can add table row(s) here with logo or other header elements -->
-  <!-- END HEADER -->
-
-  <!-- BEGIN CONTENT -->
-
-  <tr>
-   <td>
-    <p>{ts 1=$contact.display_name}Dear %1{/ts},</p>
-    <p>{ts 1=$event.event_title}Your pending event registration for %1 has expired
-because you did not confirm your registration.{/ts}</p>
-    <p>{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}</p>
-   </td>
-  </tr>
-  <tr>
-   <td>
-    <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
-     <tr>
-      <th {$headerStyle}>
-       {ts}Event Information and Location{/ts}
-      </th>
-     </tr>
-     <tr>
-      <td colspan="2" {$valueStyle}>
-       {$event.event_title}<br />
-       {$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}
-      </td>
-     </tr>
-     <tr>
-      <td {$labelStyle}>
-       {ts}Participant Role{/ts}:
-      </td>
-      <td {$valueStyle}>
-       {$participant.role}
-      </td>
-     </tr>
-
-     {if $isShowLocation}
-      <tr>
-       <td colspan="2" {$valueStyle}>
-        {if $event.location.address.1.name}
-         {$event.location.address.1.name}<br />
-        {/if}
-        {if $event.location.address.1.street_address}
-         {$event.location.address.1.street_address}<br />
-        {/if}
-        {if $event.location.address.1.supplemental_address_1}
-         {$event.location.address.1.supplemental_address_1}<br />
-        {/if}
-        {if $event.location.address.1.supplemental_address_2}
-         {$event.location.address.1.supplemental_address_2}<br />
-        {/if}
-        {if $event.location.address.1.city}
-         {$event.location.address.1.city} {$event.location.address.1.postal_code}
-         {if $event.location.address.1.postal_code_suffix}
-          - {$event.location.address.1.postal_code_suffix}
-         {/if}
-        {/if}
-       </td>
-      </tr>
-     {/if}
-
-     {if $event.location.phone.1.phone || $event.location.email.1.email}
-      <tr>
-       <td colspan="2" {$labelStyle}>
-        {ts}Event Contacts:{/ts}
-       </td>
-      </tr>
-      {foreach from=$event.location.phone item=phone}
-       {if $phone.phone}
-        <tr>
-         <td {$labelStyle}>
-          {if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}
-         </td>
-         <td {$valueStyle}>
-          {$phone.phone}
-         </td>
-        </tr>
-       {/if}
-      {/foreach}
-      {foreach from=$event.location.email item=eventEmail}
-       {if $eventEmail.email}
-        <tr>
-         <td {$labelStyle}>
-          {ts}Email{/ts}
-         </td>
-         <td {$valueStyle}>
-          {$eventEmail.email}
-         </td>
-        </tr>
-       {/if}
-      {/foreach}
-     {/if}
-
-     {capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&id=`$event.id`" h=0 a=1}{/capture}
-     <tr>
-      <td colspan="2" {$valueStyle}>
-       <a href="{$icalFeed}">{ts}Download iCalendar File{/ts}</a>
-      </td>
-     </tr>
-
-     {if $contact.email}
-      <tr>
-       <th {$headerStyle}>
-        {ts}Registered Email{/ts}
-       </th>
-      </tr>
-      <tr>
-       <td colspan="2" {$valueStyle}>
-        {$contact.email}
-       </td>
-      </tr>
-     {/if}
-
-     {if $register_date}
-      <tr>
-       <td {$labelStyle}>
-        {ts}Registration Date{/ts}
-       </td>
-       <td {$valueStyle}>
-        {$participant.register_date|crmDate}
-       </td>
-      </tr>
-     {/if}
-
-    </table>
-   </td>
-  </tr>
-
-  <tr>
-   <td>
-    <p>{ts 1=$domain.phone 2=$domain.email}Please contact us at %1 or send email to %2 if you have questions.{/ts}</p>
-   </td>
-  </tr>
-
- </table>
-</center>
-
-</body>
-</html>
diff --git a/CRM/Upgrade/3.1.alpha2.msg_template/message_templates/pcp_notify_html.tpl b/CRM/Upgrade/3.1.alpha2.msg_template/message_templates/pcp_notify_html.tpl
deleted file mode 100644 (file)
index 35f9665..0000000
+++ /dev/null
@@ -1,94 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title></title>
-</head>
-<body>
-
-{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/contribute/pcp/info" q="reset=1&id=`$pcpId`" h=0 a=1}{/capture}
-
-<center>
- <table width="620" border="0" cellpadding="0" cellspacing="0" id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left;">
-
-  <!-- BEGIN HEADER -->
-  <!-- You can add table row(s) here with logo or other header elements -->
-  <!-- END HEADER -->
-
-  <!-- BEGIN CONTENT -->
-
-  <tr>
-   <td>
-    <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
-     <tr>
-      <th {$headerStyle}>
-       {ts}Personal Campaign Page Notification{/ts}
-      </th>
-     </tr>
-     <tr>
-      <td {$labelStyle}>
-       {ts}Action{/ts}:
-      </td>
-      <td {$valueStyle}>
-       {if $mode EQ 'Update'}
-        {ts}Updated personal campaign page{/ts}
-       {else}
-        {ts}New personal campaign page{/ts}
-       {/if}
-      </td>
-     </tr>
-     <tr>
-      <td {$labelStyle}>
-       {ts}Personal Campaign Page Title{/ts}
-      </td>
-      <td {$valueStyle}>
-       {$pcpTitle}
-      </td>
-     </tr>
-     <tr>
-      <td {$labelStyle}>
-       {ts}Current Status{/ts}
-      </td>
-      <td {$valueStyle}>
-       {$pcpStatus}
-      </td>
-     </tr>
-
-     <tr>
-      <td rowspan="2" {$labelStyle}>
-       <a href="{$pcpURL}">{ts}View Page{/ts}</a>
-      </td>
-     </tr>
-     <tr>
-      <td {$labelStyle}>
-       {ts}Supporter{/ts}
-      </td>
-      <td {$valueStyle}>
-       <a href="{$supporterUrl}">{$supporterName}</a>
-      </td>
-     </tr>
-     <tr>
-      <td {$labelStyle}>
-       {ts}Linked to Contribution Page{/ts}
-      </td>
-      <td {$valueStyle}>
-       <a href="{$contribPageUrl}">{$contribPageTitle}</a>
-      </td>
-     </tr>
-     <tr>
-      <td rowspan="2" {$labelStyle}>
-       <a href="{$managePCPUrl}">{ts}Manage Personal Campaign Pages{/ts}</a>
-      </td>
-     </tr>
-
-    </table>
-   </td>
-  </tr>
- </table>
-</center>
-
-</body>
-</html>
diff --git a/CRM/Upgrade/3.1.alpha2.msg_template/message_templates/pcp_status_change_html.tpl b/CRM/Upgrade/3.1.alpha2.msg_template/message_templates/pcp_status_change_html.tpl
deleted file mode 100644 (file)
index bf03941..0000000
+++ /dev/null
@@ -1,59 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title></title>
-</head>
-<body>
-
-<center>
- <table width="620" border="0" cellpadding="0" cellspacing="0" id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left;">
-
-  <!-- BEGIN HEADER -->
-  <!-- You can add table row(s) here with logo or other header elements -->
-  <!-- END HEADER -->
-
-  <!-- BEGIN CONTENT -->
-
-  <tr>
-   <td>
-
-    <h1>{ts}Your Personal Campaign Page{/ts}</h1>
-
-    {if $pcpStatus eq 'Approved'}
-
-     <p>{ts}Your personal campaign page has been approved and is now live.{/ts}</p>
-     <p>{ts}Whenever you want to preview, update or promote your page{/ts}:</p>
-     <ol>
-      <li><a href="{$config->userFrameworkBaseURL}">{ts}Login to your account{/ts}</a></li>
-      <li><a href="{$pcpInfoURL}">{ts}Go to your page{/ts}</a></li>
-     </ol>
-     <p>{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}</p>
-
-     {if $isTellFriendEnabled}
-      <p><a href="{$pcpTellFriendURL}">{ts}After logging in, you can use this form to promote your fundraising page{/ts}</a></p>
-     {/if}
-
-     {if $pcpNotifyEmailAddress}
-      <p>{ts}Questions? Send email to{/ts}: {$pcpNotifyEmailAddress}</p>
-     {/if}
-
-    {elseif $pcpStatus eq 'Rejected'}
-
-     <p>{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}</p>
-     {if $pcpNotifyEmailAddress}
-      <p>{ts}Please contact our site administrator for more information{/ts}: {$pcpNotifyEmailAddress}</p>
-     {/if}
-
-    {/if}
-
-   </td>
-  </tr>
-
- </table>
-</center>
-
-</body>
-</html>
diff --git a/CRM/Upgrade/3.1.alpha2.msg_template/message_templates/pcp_supporter_notify_html.tpl b/CRM/Upgrade/3.1.alpha2.msg_template/message_templates/pcp_supporter_notify_html.tpl
deleted file mode 100644 (file)
index b794227..0000000
+++ /dev/null
@@ -1,100 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title></title>
-</head>
-<body>
-
-{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}
-
-<center>
- <table width="620" border="0" cellpadding="0" cellspacing="0" id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left;">
-
-  <!-- BEGIN HEADER -->
-  <!-- You can add table row(s) here with logo or other header elements -->
-  <!-- END HEADER -->
-
-  <!-- BEGIN CONTENT -->
-
-  <tr>
-   <td>
-    <p>{ts}Dear supporter{/ts},</p>
-    <p>{ts 1="$contribPageTitle"}Thanks for creating a personal campaign page in support of %1.{/ts}</p>
-   </td>
-  </tr>
-
-  {if $pcpStatus eq 'Approved'}
-
-    <tr>
-     <td>
-      <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
-       <tr>
-        <th {$headerStyle}>
-         {ts}Promoting Your Page{/ts}
-        </th>
-       </tr>
-       <tr>
-        <td colspan="2" {$valueStyle}>
-         {if $isTellFriendEnabled}
-          <p>{ts}You can begin your fundraising efforts using our "Tell a Friend" form{/ts}:</p>
-          <ol>
-           <li><a href="{$loginUrl}">{ts}Login to your account{/ts}</a></li>
-           <li><a href="{$pcpTellFriendURL}">{ts}Click this link and follow the prompts{/ts}</a></li>
-          </ol>
-         {else}
-          <p>{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}</p>
-         {/if}
-        </td>
-       </tr>
-       <tr>
-        <th {$headerStyle}>
-         {ts}Managing Your Page{/ts}
-        </th>
-       <tr>
-        <td colspan="2" {$valueStyle}>
-         <p>{ts}Whenever you want to preview, update or promote your page{/ts}:</p>
-         <ol>
-          <li><a href="{$loginUrl}">{ts}Login to your account{/ts}</a></li>
-          <li><a href="{$pcpInfoURL}">{ts}Go to your page{/ts}</a></li>
-         </ol>
-         <p>{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}</p>
-        </td>
-       </tr>
-       </tr>
-      </table>
-     </td>
-    </tr>
-
-   {elseif $pcpStatus EQ 'Waiting Review'}
-
-    <tr>
-     <td>
-      <p>{ts}Your page requires administrator review before you can begin your fundraising efforts.{/ts}</p>
-      <p>{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}</p>
-      <p>{ts}You can still preview your page prior to approval{/ts}:</p>
-      <ol>
-       <li><a href="{$loginUrl}">{ts}Login to your account{/ts}</a></li>
-       <li><a href="{$pcpInfoURL}">{ts}Click this link{/ts}</a></li>
-      </ol>
-     </td>
-    </tr>
-
-   {/if}
-
-   {if $pcpNotifyEmailAddress}
-    <tr>
-     <td>
-      <p>{ts}Questions? Send email to{/ts}: {$pcpNotifyEmailAddress}</p>
-     </td>
-    </tr>
-   {/if}
-
- </table>
-</center>
-
-</body>
-</html>
diff --git a/CRM/Upgrade/3.1.alpha2.msg_template/message_templates/pledge_acknowledge_html.tpl b/CRM/Upgrade/3.1.alpha2.msg_template/message_templates/pledge_acknowledge_html.tpl
deleted file mode 100644 (file)
index a8d5278..0000000
+++ /dev/null
@@ -1,132 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title></title>
-</head>
-<body>
-
-{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}
-
-<center>
- <table width="620" border="0" cellpadding="0" cellspacing="0" id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left;">
-
-  <!-- BEGIN HEADER -->
-  <!-- You can add table row(s) here with logo or other header elements -->
-  <!-- END HEADER -->
-
-  <!-- BEGIN CONTENT -->
-
-  <tr>
-   <td>
-    <p>{ts 1=$contact.display_name}dear %1{/ts},</p>
-    <p>{ts}thank you for your generous pledge. please print this acknowledgment for your records.{/ts}</p>
-   </td>
-  </tr>
-  <tr>
-   <td>
-    <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
-     <tr>
-      <th {$headerStyle}>
-       {ts}Pledge Information{/ts}
-      </th>
-     </tr>
-     <tr>
-      <td {$labelStyle}>
-       {ts}Pledge Received{/ts}
-      </td>
-      <td {$valueStyle}>
-       {$create_date|truncate:10:''|crmDate}
-      </td>
-     </tr>
-     <tr>
-      <td {$labelStyle}>
-       {ts}Total Pledge Amount{/ts}
-      </td>
-      <td {$valueStyle}>
-       {$total_pledge_amount|crmMoney}
-      </td>
-     </tr>
-     <tr>
-      <th {$headerStyle}>
-       {ts}Payment Schedule{/ts}
-      </th>
-     </tr>
-     <tr>
-      <td colspan="2" {$valueStyle}>
-       <p>{ts 1=$scheduled_amount|crmMoney 2=$frequency_interval 3=$frequency_unit 4=$installments}%1 every %2 %3 for %4 installments.{/ts}</p>
-
-       {if $frequency_day}
-        <p>{ts 1=$frequency_day 2=$frequency_unit}Payments are due on day %1 of the %2.{/ts}</p>
-       {/if}
-      </td>
-     </tr>
-
-     {if $payments}
-      {assign var="count" value="1"}
-      {foreach from=$payments item=payment}
-       <tr>
-        <td {$labelStyle}>
-         {ts 1=$count}Payment %1{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$payment.amount|crmMoney} {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}
-        </td>
-       </tr>
-       {assign var="count" value=`$count+1`}
-      {/foreach}
-     {/if}
-
-     <tr>
-      <td colspan="2" {$valueStyle}>
-       <p>{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}</p>
-      </td>
-     </tr>
-     {if $honor_block_is_active}
-      <tr>
-       <th {$headerStyle}>
-        {$honor_type}
-       </th>
-      </tr>
-      <tr>
-       <td colspan="2" {$valueStyle}>
-        <p>{$honor_prefix} {$honor_first_name} {$honor_last_name}</p>
-        {if $honor_email}
-         <p>{ts}Honoree Email{/ts}: {$honor_email}</p>
-        {/if}
-       </td>
-      </tr>
-     {/if}
-
-     {if $customGroup}
-      {foreach from=$customGroup item=value key=customName}
-       <tr>
-        <th {$headerStyle}>
-         {$customName}
-        </th>
-       </tr>
-       {foreach from=$value item=v key=n}
-        <tr>
-         <td {$labelStyle}>
-          {$n}
-         </td>
-         <td {$valueStyle}>
-          {$v}
-         </td>
-        </tr>
-       {/foreach}
-      {/foreach}
-     {/if}
-
-    </table>
-   </td>
-  </tr>
-
- </table>
-</center>
-
-</body>
-</html>
diff --git a/CRM/Upgrade/3.1.alpha2.msg_template/message_templates/pledge_reminder_html.tpl b/CRM/Upgrade/3.1.alpha2.msg_template/message_templates/pledge_reminder_html.tpl
deleted file mode 100644 (file)
index 44299c2..0000000
+++ /dev/null
@@ -1,107 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title></title>
-</head>
-<body>
-
-{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}
-
-<center>
- <table width="620" border="0" cellpadding="0" cellspacing="0" id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left;">
-
-  <!-- BEGIN HEADER -->
-  <!-- You can add table row(s) here with logo or other header elements -->
-  <!-- END HEADER -->
-
-  <!-- BEGIN CONTENT -->
-
-  <tr>
-   <td>
-    <p>{ts 1=$contact.display_name}Dear %1{/ts},</p>
-    <p>{ts 1=$next_payment|truncate:10:''|crmDate}This is a reminder that the next payment on your pledge is due on %1.{/ts}</p>
-   </td>
-  </tr>
-  <tr>
-   <td>
-    <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
-     <tr>
-      <th {$headerStyle}>
-       {ts}Payment Due{/ts}
-      </th>
-     </tr>
-     <tr>
-      <td {$labelStyle}>
-       {ts}Amount Due{/ts}
-      </td>
-      <td {$valueStyle}>
-       {$amount_due|crmMoney}
-      </td>
-     </tr>
-    </table>
-   </td>
-  </tr>
-
-  <tr>
-   <td>
-    {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}
-     <p><a href="{$contributionUrl}">{ts}Go to a web page where you can make your payment online{/ts}</a></p>
-    {else}
-     <p>{ts}Please mail your payment to{/ts}: {$domain.address}</p>
-    {/if}
-   </td>
-  </tr>
-
-  <tr>
-   <td>
-    <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
-     <tr>
-      <th {$headerStyle}>
-       {ts}Pledge Information{/ts}
-      </th>
-     </tr>
-     <tr>
-      <td {$labelStyle}>
-       {ts}Pledge Received{/ts}
-      </td>
-      <td {$valueStyle}>
-       {$create_date|truncate:10:''|crmDate}
-      </td>
-     </tr>
-     <tr>
-      <td {$labelStyle}>
-       {ts}Total Pledge Amount{/ts}
-      </td>
-      <td {$valueStyle}>
-       {$amount|crmMoney}
-      </td>
-     </tr>
-     <tr>
-      <td {$labelStyle}>
-       {ts}Total Paid{/ts}
-      </td>
-      <td {$valueStyle}>
-       {$amount_paid|crmMoney}
-      </td>
-     </tr>
-    </table>
-   </td>
-  </tr>
-
-  <tr>
-   <td>
-    <p>{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}</p>
-    <p>{ts}Thank your for your generous support.{/ts}</p>
-   </td>
-  </tr>
-
- </table>
-</center>
-
-</body>
-</html>
diff --git a/CRM/Upgrade/3.1.alpha2.msg_template/message_templates/uf_notify_html.tpl b/CRM/Upgrade/3.1.alpha2.msg_template/message_templates/uf_notify_html.tpl
deleted file mode 100644 (file)
index 5ef3897..0000000
+++ /dev/null
@@ -1,74 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title></title>
-</head>
-<body>
-
-{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}
-
-<center>
- <table width="620" border="0" cellpadding="0" cellspacing="0" id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left;">
-
-  <!-- BEGIN HEADER -->
-  <!-- You can add table row(s) here with logo or other header elements -->
-  <!-- END HEADER -->
-
-  <!-- BEGIN CONTENT -->
-
-  <tr>
-   <td>
-    <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
-     <tr>
-      <td {$labelStyle}>
-       {ts}Submitted For{/ts}
-      </td>
-      <td {$valueStyle}>
-       {$displayName}
-      </td>
-     </tr>
-     <tr>
-      <td {$labelStyle}>
-       {ts}Date{/ts}
-      </td>
-      <td {$valueStyle}>
-       {$currentDate}
-      </td>
-     </tr>
-     <tr>
-      <td {$labelStyle}>
-       {ts}Contact Summary{/ts}
-      </td>
-      <td {$valueStyle}>
-       {$contactLink}
-      </td>
-     </tr>
-
-     <tr>
-      <th {$headerStyle}>
-       {$grouptitle}
-      </th>
-     </tr>
-
-     {foreach from=$values item=value key=valueName}
-      <tr>
-       <td {$labelStyle}>
-        {$valueName}
-       </td>
-       <td {$valueStyle}>
-        {$value}
-       </td>
-      </tr>
-     {/foreach}
-    </table>
-   </td>
-  </tr>
-
- </table>
-</center>
-
-</body>
-</html>
diff --git a/CRM/Upgrade/3.1.beta1.msg_template/civicrm_msg_template.tpl b/CRM/Upgrade/3.1.beta1.msg_template/civicrm_msg_template.tpl
deleted file mode 100644 (file)
index e37cefc..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-{php}
-  $dir = SMARTY_DIR . '/../../CRM/Upgrade/3.1.beta1.msg_template/message_templates';
-  $templates = array();
-  foreach (preg_grep('/\.tpl$/', scandir($dir)) as $filename) {
-    $parts = explode('_', basename($filename, '.tpl'));
-    $templates[] = array('type' => array_pop($parts), 'name' => implode('_', $parts), 'filename' => "$dir/$filename");
-  }
-  $this->assign('templates', $templates);
-{/php}
-
-{foreach from=$templates item=tpl}
-  {fetch assign=content file=$tpl.filename}
-  SELECT @workflow_id := MAX(id) FROM civicrm_option_value WHERE name = '{$tpl.name}';
-  SELECT @content := msg_{$tpl.type} FROM civicrm_msg_template WHERE workflow_id = @workflow_id AND is_reserved = 1 LIMIT 1;
-  UPDATE civicrm_msg_template SET msg_{$tpl.type} = '{$content|escape:"quotes"}' WHERE workflow_id = @workflow_id AND (is_reserved = 1 OR (is_default = 1 AND msg_{$tpl.type} = @content));
-{/foreach}
diff --git a/CRM/Upgrade/3.1.beta1.msg_template/message_templates/contribution_online_receipt_html.tpl b/CRM/Upgrade/3.1.beta1.msg_template/message_templates/contribution_online_receipt_html.tpl
deleted file mode 100644 (file)
index db3667b..0000000
+++ /dev/null
@@ -1,384 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title></title>
-</head>
-<body>
-
-{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}
-
-<center>
- <table width="620" border="0" cellpadding="0" cellspacing="0" id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left;">
-
-  <!-- BEGIN HEADER -->
-  <!-- You can add table row(s) here with logo or other header elements -->
-  <!-- END HEADER -->
-
-  <!-- BEGIN CONTENT -->
-
-  <tr>
-   <td>
-
-    {if $receipt_text}
-     <p>{$receipt_text|htmlize}</p>
-    {/if}
-
-    {if $is_pay_later}
-     <p>{$pay_later_receipt}</p> {* FIXME: this might be text rather than HTML *}
-    {else}
-     <p>{ts}Please print this confirmation for your records.{/ts}</p>
-    {/if}
-
-   </td>
-  </tr>
-  <tr>
-   <td>
-    <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
-
-     {if $amount}
-
-
-      <tr>
-       <th {$headerStyle}>
-        {ts}Contribution Information{/ts}
-       </th>
-      </tr>
-
-      {if $lineItem and $priceSetID}
-
-       {foreach from=$lineItem item=value key=priceset}
-        <tr>
-         <td colspan="2" {$valueStyle}>
-          <table> {* FIXME: style this table so that it looks like the text version (justification, etc.) *}
-           <tr>
-            <th>{ts}Item{/ts}</th>
-            <th>{ts}Qty{/ts}</th>
-            <th>{ts}Each{/ts}</th>
-            <th>{ts}Total{/ts}</th>
-           </tr>
-           {foreach from=$value item=line}
-            <tr>
-             <td>
-              {$line.description|truncate:30:"..."}
-             </td>
-             <td>
-              {$line.qty}
-             </td>
-             <td>
-              {$line.unit_price|crmMoney}
-             </td>
-             <td>
-              {$line.line_total|crmMoney}
-             </td>
-            </tr>
-           {/foreach}
-          </table>
-         </td>
-        </tr>
-       {/foreach}
-       <tr>
-        <td {$labelStyle}>
-         {ts}Total Amount{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$amount|crmMoney}
-        </td>
-       </tr>
-
-      {else}
-
-       <tr>
-        <td {$labelStyle}>
-         {ts}Amount{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$amount|crmMoney} {if $amount_level} - {$amount_level}{/if}
-        </td>
-       </tr>
-
-      {/if}
-
-
-     {/if}
-
-
-     {if $receive_date}
-      <tr>
-       <td {$labelStyle}>
-        {ts}Date{/ts}
-       </td>
-       <td {$valueStyle}>
-        {$receive_date|crmDate}
-       </td>
-      </tr>
-     {/if}
-
-     {if $is_monetary and $trxn_id}
-      <tr>
-       <td {$labelStyle}>
-        {ts}Transaction #{/ts}
-       </td>
-       <td {$valueStyle}>
-        {$trxn_id}
-       </td>
-      </tr>
-     {/if}
-
-     {if $is_recur}
-      {if $contributeMode eq 'notify'}
-       <tr>
-        <td {$labelStyle}>
-         {ts 1=$cancelSubscriptionUrl}This is a recurring contribution. You can modify or cancel future contributions by <a href="%1">logging in to your account</a>.{/ts}
-        </td>
-       </tr>
-      {elseif $contributeMode eq 'directIPN' and $receiptFromEmail}
-       <tr>
-        <td {$labelStyle}>
-         {ts 1=$receiptFromEmail}This is a recurring contribution. To modify or cancel future contributions please contact us at %1.{/ts}
-        </td>
-       </tr>
-      {/if}
-     {/if}
-
-     {if $honor_block_is_active}
-      <tr>
-       <th {$headerStyle}>
-        {$honor_type}
-       </th>
-      </tr>
-      <tr>
-       <td colspan="2" {$labelStyle}>
-        {$honor_prefix} {$honor_first_name} {$honor_last_name}
-       </td>
-      </tr>
-      {if $honor_email}
-       <tr>
-        <td {$labelStyle}>
-         {ts}Honoree Email{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$honor_email}
-        </td>
-       </tr>
-      {/if}
-     {/if}
-
-     {if $pcpBlock}
-      <tr>
-       <th {$headerStyle}>
-        {ts}Personal Campaign Page{/ts}
-       </th>
-      </tr>
-      <tr>
-       <td {$labelStyle}>
-        {ts}Display In Honor Roll{/ts}
-       </td>
-       <td {$valueStyle}>
-        {if $pcp_display_in_roll}{ts}Yes{/ts}{else}{ts}No{/ts}{/if}
-       </td>
-      </tr>
-      {if $pcp_roll_nickname}
-       <tr>
-        <td {$labelStyle}>
-         {ts}Nickname{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$pcp_roll_nickname}
-        </td>
-       </tr>
-      {/if}
-      {if $pcp_personal_note}
-       <tr>
-        <td {$labelStyle}>
-         {ts}Personal Note{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$pcp_personal_note}
-        </td>
-       </tr>
-      {/if}
-     {/if}
-
-     {if $onBehalfName}
-      <tr>
-       <th {$headerStyle}>
-        {ts}On Behalf Of{/ts}
-       </th>
-      </tr>
-      <tr>
-       <td colspan="2" {$valueStyle}>
-        {$onBehalfName}<br />
-        {$onBehalfAddress|nl2br}<br />
-        {$onBehalfEmail}
-       </td>
-      </tr>
-     {/if}
-
-     {if ! ($contributeMode eq 'notify' OR $contributeMode eq 'directIPN') and $is_monetary}
-      {if $is_pay_later}
-       <tr>
-        <th {$headerStyle}>
-         {ts}Registered Email{/ts}
-        </th>
-       </tr>
-       <tr>
-        <td colspan="2" {$valueStyle}>
-         {$email}
-        </td>
-       </tr>
-      {elseif $amount GT 0}
-       <tr>
-        <th {$headerStyle}>
-         {ts}Billing Name and Address{/ts}
-        </th>
-       </tr>
-       <tr>
-        <td colspan="2" {$valueStyle}>
-         {$billingName}<br />
-         {$address|nl2br}<br />
-         {$email}
-        </td>
-       </tr>
-      {/if}
-     {/if}
-
-     {if $contributeMode eq 'direct' AND !$is_pay_later AND $amount GT 0}
-      <tr>
-       <th {$headerStyle}>
-        {ts}Credit Card Information{/ts}
-       </th>
-      </tr>
-      <tr>
-       <td colspan="2" {$valueStyle}>
-        {$credit_card_type}<br />
-        {$credit_card_number}<br />
-        {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}<br />
-       </td>
-      </tr>
-     {/if}
-
-     {if $selectPremium}
-      <tr>
-       <th {$headerStyle}>
-        {ts}Premium Information{/ts}
-       </th>
-      </tr>
-      <tr>
-       <td colspan="2" {$labelStyle}>
-        {$product_name}
-       </td>
-      </tr>
-      {if $option}
-       <tr>
-        <td {$labelStyle}>
-         {ts}Option{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$option}
-        </td>
-       </tr>
-      {/if}
-      {if $sku}
-       <tr>
-        <td {$labelStyle}>
-         {ts}SKU{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$sku}
-        </td>
-       </tr>
-      {/if}
-      {if $start_date}
-       <tr>
-        <td {$labelStyle}>
-         {ts}Start Date{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$start_date|crmDate}
-        </td>
-       </tr>
-      {/if}
-      {if $end_date}
-       <tr>
-        <td {$labelStyle}>
-         {ts}End Date{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$end_date|crmDate}
-        </td>
-       </tr>
-      {/if}
-      {if $contact_email OR $contact_phone}
-       <tr>
-        <td colspan="2" {$valueStyle}>
-         <p>{ts}For information about this premium, contact:{/ts}</p>
-         {if $contact_email}
-          <p>{$contact_email}</p>
-         {/if}
-         {if $contact_phone}
-          <p>{$contact_phone}</p>
-         {/if}
-        </td>
-       </tr>
-      {/if}
-      {if $is_deductible AND $price}
-        <tr>
-         <td colspan="2" {$valueStyle}>
-          <p>{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}</p>
-         </td>
-        </tr>
-      {/if}
-     {/if}
-
-     {if $customPre}
-      <tr>
-       <th {$headerStyle}>
-        {$customPre_grouptitle}
-       </th>
-      </tr>
-      {foreach from=$customPre item=customValue key=customName}
-       {if ($trackingFields and ! in_array($customName, $trackingFields)) or ! $trackingFields}
-        <tr>
-         <td {$labelStyle}>
-          {$customName}
-         </td>
-         <td {$valueStyle}>
-          {$customValue}
-         </td>
-        </tr>
-       {/if}
-      {/foreach}
-     {/if}
-
-     {if $customPost}
-      <tr>
-       <th {$headerStyle}>
-        {$customPost_grouptitle}
-       </th>
-      </tr>
-      {foreach from=$customPost item=customValue key=customName}
-       {if ($trackingFields and ! in_array($customName, $trackingFields)) or ! $trackingFields}
-        <tr>
-         <td {$labelStyle}>
-          {$customName}
-         </td>
-         <td {$valueStyle}>
-          {$customValue}
-         </td>
-        </tr>
-       {/if}
-      {/foreach}
-     {/if}
-
-    </table>
-   </td>
-  </tr>
-
- </table>
-</center>
-
-</body>
-</html>
diff --git a/CRM/Upgrade/3.1.beta1.msg_template/message_templates/contribution_online_receipt_text.tpl b/CRM/Upgrade/3.1.beta1.msg_template/message_templates/contribution_online_receipt_text.tpl
deleted file mode 100644 (file)
index f2b1e2b..0000000
+++ /dev/null
@@ -1,177 +0,0 @@
-{if $receipt_text}
-{$receipt_text}
-{/if}
-{if $is_pay_later}
-
-===========================================================
-{$pay_later_receipt}
-===========================================================
-{else}
-
-{ts}Please print this receipt for your records.{/ts}
-{/if}
-
-{if $amount}
-===========================================================
-{ts}Contribution Information{/ts}
-
-===========================================================
-{if $lineItem and $priceSetID}
-{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}
-{ts}Amount{/ts}: {$amount|crmMoney} {if $amount_level } - {$amount_level} {/if}
-{/if}
-{/if}
-{if $receive_date}
-
-{ts}Date{/ts}: {$receive_date|crmDate}
-{/if}
-{if $is_monetary and $trxn_id}
-{ts}Transaction #{/ts}: {$trxn_id}
-{/if}
-
-{if $is_recur}
-{if $contributeMode eq 'notify'}
-{ts}This is a recurring contribution. You can modify or cancel future contributions by logging in to your account at:{/ts}
-
-{$cancelSubscriptionUrl}
-{elseif $contributeMode eq 'directIPN' and $receiptFromEmail}
-{ts 1=$receiptFromEmail}This is a recurring contribution. To modify or cancel future contributions please contact us at %1.{/ts}
-
-{/if}
-{/if}
-
-{if $honor_block_is_active }
-===========================================================
-{$honor_type}
-===========================================================
-{$honor_prefix} {$honor_first_name} {$honor_last_name}
-{if $honor_email}
-{ts}Honoree Email{/ts}: {$honor_email}
-{/if}
-
-{/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 $onBehalfName}
-===========================================================
-{ts}On Behalf Of{/ts}
-
-===========================================================
-{$onBehalfName}
-{$onBehalfAddress}
-
-{$onBehalfEmail}
-
-{/if}
-
-{if !( $contributeMode eq 'notify' OR $contributeMode eq 'directIPN' ) and $is_monetary}
-{if $is_pay_later}
-===========================================================
-{ts}Registered Email{/ts}
-
-===========================================================
-{$email}
-{elseif $amount GT 0}
-===========================================================
-{ts}Billing Name and Address{/ts}
-
-===========================================================
-{$billingName}
-{$address}
-
-{$email}
-{/if} {* End ! is_pay_later condition. *}
-{/if}
-{if $contributeMode eq 'direct' AND !$is_pay_later AND $amount GT 0}
-
-===========================================================
-{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}
diff --git a/CRM/Upgrade/3.1.beta1.msg_template/message_templates/event_offline_receipt_html.tpl b/CRM/Upgrade/3.1.beta1.msg_template/message_templates/event_offline_receipt_html.tpl
deleted file mode 100644 (file)
index af9cec5..0000000
+++ /dev/null
@@ -1,433 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title></title>
-</head>
-<body>
-
-{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}
-
-<center>
- <table width="620" border="0" cellpadding="0" cellspacing="0" id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left;">
-
-  <!-- BEGIN HEADER -->
-  <!-- You can add table row(s) here with logo or other header elements -->
-  <!-- END HEADER -->
-
-  <!-- BEGIN CONTENT -->
-
-  <tr>
-   <td>
-
-    {if $event.confirm_email_text AND (not $isOnWaitlist AND not $isRequireApproval)}
-     <p>{$event.confirm_email_text|htmlize}</p>
-    {/if}
-
-    {if $isOnWaitlist}
-     <p>{ts}You have been added to the WAIT LIST for this event.{/ts}</p>
-     {if $isPrimary}
-       <p>{ts}If space becomes available you will receive an email with
-a link to a web page where you can complete your registration.{/ts}</p>
-     {/if}
-    {elseif $isRequireApproval}
-     <p>{ts}Your registration has been submitted.{/ts}</p>
-     {if $isPrimary}
-      <p>{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}</p>
-     {/if}
-    {elseif $is_pay_later}
-     <p>{$pay_later_receipt}</p> {* FIXME: this might be text rather than HTML *}
-    {else}
-     <p>{ts}Please print this confirmation for your records.{/ts}</p>
-    {/if}
-
-   </td>
-  </tr>
-  <tr>
-   <td>
-    <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
-     <tr>
-      <th {$headerStyle}>
-       {ts}Event Information and Location{/ts}
-      </th>
-     </tr>
-     <tr>
-      <td colspan="2" {$valueStyle}>
-       {$event.event_title}<br />
-       {$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}
-      </td>
-     </tr>
-
-     {if $event.participant_role neq 'Attendee' and $defaultRole}
-      <tr>
-       <td {$labelStyle}>
-        {ts}Participant Role{/ts}
-       </td>
-       <td {$valueStyle}>
-        {$event.participant_role}
-       </td>
-      </tr>
-     {/if}
-
-     {if $isShowLocation}
-      <tr>
-       <td colspan="2" {$valueStyle}>
-        {if $location.address.1.name}
-         {$location.address.1.name}<br />
-        {/if}
-        {if $location.address.1.street_address}
-         {$location.address.1.street_address}<br />
-        {/if}
-        {if $location.address.1.supplemental_address_1}
-         {$location.address.1.supplemental_address_1}<br />
-        {/if}
-        {if $location.address.1.supplemental_address_2}
-         {$location.address.1.supplemental_address_2}<br />
-        {/if}
-        {if $location.address.1.city}
-         {$location.address.1.city} {$location.address.1.postal_code}{if $location.address.1.postal_code_suffix} - {$location.address.1.postal_code_suffix}{/if}<br />
-        {/if}
-       </td>
-      </tr>
-     {/if}
-
-     {if $location.phone.1.phone || $location.email.1.email}
-      <tr>
-       <td colspan="2" {$labelStyle}>
-        {ts}Event Contacts:{/ts}
-       </td>
-      </tr>
-      {foreach from=$location.phone item=phone}
-       {if $phone.phone}
-        <tr>
-         <td {$labelStyle}>
-          {if $phone.phone_type}
-           {$phone.phone_type_display}
-          {else}
-           {ts}Phone{/ts}
-          {/if}
-         </td>
-         <td {$valueStyle}>
-          {$phone.phone}
-         </td>
-        </tr>
-       {/if}
-      {/foreach}
-      {foreach from=$location.email item=eventEmail}
-       {if $eventEmail.email}
-        <tr>
-         <td {$labelStyle}>
-          {ts}Email{/ts}
-         </td>
-         <td {$valueStyle}>
-          {$eventEmail.email}
-         </td>
-        </tr>
-       {/if}
-      {/foreach}
-     {/if}
-     <tr>
-      <td colspan="2" {$valueStyle}>
-       {capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture}
-       <a href="{$icalFeed}">{ts}Download iCalendar File{/ts}</a>
-      </td>
-     </tr>
-     {if $email}
-      <tr>
-       <th {$headerStyle}>
-        {ts}Registered Email{/ts}
-       </th>
-      </tr>
-      <tr>
-       <td colspan="2" {$valueStyle}>
-        {$email}
-       </td>
-      </tr>
-     {/if}
-
-
-     {if $event.is_monetary}
-
-      <tr>
-       <th {$headerStyle}>
-        {$event.fee_label}
-       </th>
-      </tr>
-
-      {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. *}
-           <tr>
-            <td colspan="2" {$labelStyle}>
-             {ts 1=$priceset+1}Participant %1{/ts}
-            </td>
-           </tr>
-          {/if}
-         {/if}
-         <tr>
-          <td colspan="2" {$valueStyle}>
-           <table> {* FIXME: style this table so that it looks like the text version (justification, etc.) *}
-            <tr>
-             <th>{ts}Item{/ts}</th>
-             <th>{ts}Qty{/ts}</th>
-             <th>{ts}Each{/ts}</th>
-             <th>{ts}Total{/ts}</th>
-            </tr>
-            {foreach from=$value item=line}
-             <tr>
-              <td>
-               {$line.description|truncate:30:"..."}
-              </td>
-              <td>
-               {$line.qty}
-              </td>
-              <td>
-               {$line.unit_price|crmMoney}
-              </td>
-              <td>
-               {$line.line_total|crmMoney}
-              </td>
-             </tr>
-            {/foreach}
-           </table>
-          </td>
-         </tr>
-        {/if}
-       {/foreach}
-      {/if}
-
-      {if $amount && !$lineItem}
-       {foreach from=$amount item=amnt key=level}
-        <tr>
-         <td colspan="2" {$valueStyle}>
-          {$amnt.amount|crmMoney} {$amnt.label}
-         </td>
-        </tr>
-       {/foreach}
-      {/if}
-
-      {if $isPrimary}
-       <tr>
-        <td {$labelStyle}>
-         {ts}Total Amount{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$totalAmount|crmMoney} {if $hookDiscount.message}({$hookDiscount.message}){/if}
-        </td>
-       </tr>
-
-       {if $is_pay_later}
-        <tr>
-         <td colspan="2" {$labelStyle}>
-          {$pay_later_receipt}
-         </td>
-        </tr>
-       {/if}
-
-       {if $register_date}
-        <tr>
-         <td {$labelStyle}>
-          {ts}Registration Date{/ts}
-         </td>
-         <td {$valueStyle}>
-          {$register_date|crmDate}
-         </td>
-        </tr>
-       {/if}
-
-       {if $receive_date}
-        <tr>
-         <td {$labelStyle}>
-          {ts}Transaction Date{/ts}
-         </td>
-         <td {$valueStyle}>
-          {$receive_date|crmDate}
-         </td>
-        </tr>
-       {/if}
-
-       {if $contributionTypeName}
-        <tr>
-         <td {$labelStyle}>
-          {ts}Contribution Type{/ts}
-         </td>
-         <td {$valueStyle}>
-          {$contributionTypeName}
-         </td>
-        </tr>
-       {/if}
-
-       {if $trxn_id}
-        <tr>
-         <td {$labelStyle}>
-          {ts}Transaction #{/ts}
-         </td>
-         <td {$valueStyle}>
-          {$trxn_id}
-         </td>
-        </tr>
-       {/if}
-
-       {if $paidBy}
-        <tr>
-         <td {$labelStyle}>
-          {ts}Paid By{/ts}
-         </td>
-         <td {$valueStyle}>
-         {$paidBy}
-         </td>
-        </tr>
-       {/if}
-
-       {if $checkNumber}
-        <tr>
-         <td {$labelStyle}>
-          {ts}Check Number{/ts}
-         </td>
-         <td {$valueStyle}>
-          {$checkNumber}
-         </td>
-        </tr>
-       {/if}
-
-       {if $contributeMode ne 'notify' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
-        <tr>
-         <th {$headerStyle}>
-          {ts}Billing Name and Address{/ts}
-         </th>
-        </tr>
-        <tr>
-         <td colspan="2" {$valueStyle}>
-          {$billingName}<br />
-          {$address|nl2br}
-         </td>
-        </tr>
-       {/if}
-
-       {if $contributeMode eq 'direct' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
-        <tr>
-         <th {$headerStyle}>
-          {ts}Credit Card Information{/ts}
-         </th>
-        </tr>
-        <tr>
-         <td colspan="2" {$valueStyle}>
-          {$credit_card_type}<br />
-          {$credit_card_number}<br />
-          {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}
-         </td>
-        </tr>
-       {/if}
-
-      {/if}
-
-     {/if} {* End of conditional section for Paid events *}
-
-     {if $customPre}
-      <tr>
-       <th {$headerStyle}>
-        {$customPre_grouptitle}
-       </th>
-      </tr>
-      {foreach from=$customPre item=value key=customName}
-       {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
-        <tr>
-         <td {$labelStyle}>
-          {$customName}
-         </td>
-         <td {$valueStyle}>
-          {$value}
-         </td>
-        </tr>
-       {/if}
-      {/foreach}
-     {/if}
-
-     {if $customPost}
-      <tr>
-       <th {$headerStyle}>
-        {$customPost_grouptitle}
-       </th>
-      </tr>
-      {foreach from=$customPost item=value key=customName}
-       {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
-        <tr>
-         <td {$labelStyle}>
-          {$customName}
-         </td>
-         <td {$valueStyle}>
-          {$value}
-         </td>
-        </tr>
-       {/if}
-      {/foreach}
-     {/if}
-
-     {if $customProfile}
-      {foreach from=$customProfile item=value key=customName}
-       <tr>
-        <th {$headerStyle}>
-         {ts 1=$customName+1}Participant Information - Participant %1{/ts}
-        </th>
-       <tr>
-       {foreach from=$value item=val key=field}
-        {if $field eq 'additionalCustomPre' or $field eq 'additionalCustomPost'}
-         <tr>
-          <td colspan="2" {$labelStyle}>
-           {if $field eq 'additionalCustomPre'}
-            {$additionalCustomPre_grouptitle}
-           {else}
-            {$additionalCustomPost_grouptitle}
-           {/if}
-          </td>
-         </tr>
-         {foreach from=$val item=v key=f}
-          <tr>
-           <td {$labelStyle}>
-            {$f}
-           </td>
-           <td {$valueStyle}>
-            {$v}
-           </td>
-          </tr>
-         {/foreach}
-        {/if}
-       {/foreach}
-      {/foreach}
-     {/if}
-
-     {if $customGroup}
-      {foreach from=$customGroup item=value key=customName}
-       <tr>
-        <th {$headerStyle}>
-         {$customName}
-        </th>
-       </tr>
-       {foreach from=$value item=v key=n}
-        <tr>
-         <td {$labelStyle}>
-          {$n}
-         </td>
-         <td {$valueStyle}>
-          {$v}
-         </td>
-        </tr>
-       {/foreach}
-      {/foreach}
-     {/if}
-
-    </table>
-   </td>
-  </tr>
-
- </table>
-</center>
-
-</body>
-</html>
diff --git a/CRM/Upgrade/3.1.beta1.msg_template/message_templates/event_offline_receipt_text.tpl b/CRM/Upgrade/3.1.beta1.msg_template/message_templates/event_offline_receipt_text.tpl
deleted file mode 100644 (file)
index 53872b9..0000000
+++ /dev/null
@@ -1,226 +0,0 @@
-{if $event.confirm_email_text AND (not $isOnWaitlist AND not $isRequireApproval)}
-{$event.confirm_email_text}
-{/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}
-===========================================================
-{else}
-
-{ts}Please print this confirmation for your records.{/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 $event.participant_role neq 'Attendee' and $defaultRole}
-{ts}Participant Role{/ts}: {$event.participant_role}
-{/if}
-
-{if $isShowLocation}
-{if $location.address.1.name}
-
-{$location.address.1.name}
-{/if}
-{if $location.address.1.street_address}{$location.address.1.street_address}
-{/if}
-{if $location.address.1.supplemental_address_1}{$location.address.1.supplemental_address_1}
-{/if}
-{if $location.address.1.supplemental_address_2}{$location.address.1.supplemental_address_2}
-{/if}
-{if $location.address.1.city}{$location.address.1.city} {$location.address.1.postal_code}{if $location.address.1.postal_code_suffix} - {$location.address.1.postal_code_suffix}{/if}
-{/if}
-
-{/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}
-{/foreach}
-{foreach from=$location.email item=eventEmail}
-{if $eventEmail.email}
-
-{ts}Email{/ts}: {$eventEmail.email}{/if}{/foreach}
-{/if}
-
-{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 $email}
-
-===========================================================
-{ts}Registered Email{/ts}
-
-===========================================================
-{$email}
-{/if}
-{if $event.is_monetary} {* This section for Paid events only.*}
-
-===========================================================
-{$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}
----------------------------------------------------------
-{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}
-{/if}
-{/foreach}
-{/if}
-{if $amount && !$lineItem}
-{foreach from=$amount item=amnt key=level}{$amnt.amount|crmMoney} {$amnt.label}
-{/foreach}
-{/if}
-{if $isPrimary }
-
-{ts}Total Amount{/ts}: {$totalAmount|crmMoney} {if $hookDiscount.message}({$hookDiscount.message}){/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 $contributionTypeName}
-{ts}Contribution Type{/ts}: {$contributionTypeName}
-{/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 $contributeMode ne 'notify' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
-
-===========================================================
-{ts}Billing Name and Address{/ts}
-
-===========================================================
-{$billingName}
-{$address}
-{/if}
-
-{if $contributeMode eq 'direct' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
-===========================================================
-{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}
-
-
diff --git a/CRM/Upgrade/3.1.beta1.msg_template/message_templates/event_online_receipt_html.tpl b/CRM/Upgrade/3.1.beta1.msg_template/message_templates/event_online_receipt_html.tpl
deleted file mode 100644 (file)
index af9cec5..0000000
+++ /dev/null
@@ -1,433 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title></title>
-</head>
-<body>
-
-{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}
-
-<center>
- <table width="620" border="0" cellpadding="0" cellspacing="0" id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left;">
-
-  <!-- BEGIN HEADER -->
-  <!-- You can add table row(s) here with logo or other header elements -->
-  <!-- END HEADER -->
-
-  <!-- BEGIN CONTENT -->
-
-  <tr>
-   <td>
-
-    {if $event.confirm_email_text AND (not $isOnWaitlist AND not $isRequireApproval)}
-     <p>{$event.confirm_email_text|htmlize}</p>
-    {/if}
-
-    {if $isOnWaitlist}
-     <p>{ts}You have been added to the WAIT LIST for this event.{/ts}</p>
-     {if $isPrimary}
-       <p>{ts}If space becomes available you will receive an email with
-a link to a web page where you can complete your registration.{/ts}</p>
-     {/if}
-    {elseif $isRequireApproval}
-     <p>{ts}Your registration has been submitted.{/ts}</p>
-     {if $isPrimary}
-      <p>{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}</p>
-     {/if}
-    {elseif $is_pay_later}
-     <p>{$pay_later_receipt}</p> {* FIXME: this might be text rather than HTML *}
-    {else}
-     <p>{ts}Please print this confirmation for your records.{/ts}</p>
-    {/if}
-
-   </td>
-  </tr>
-  <tr>
-   <td>
-    <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
-     <tr>
-      <th {$headerStyle}>
-       {ts}Event Information and Location{/ts}
-      </th>
-     </tr>
-     <tr>
-      <td colspan="2" {$valueStyle}>
-       {$event.event_title}<br />
-       {$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}
-      </td>
-     </tr>
-
-     {if $event.participant_role neq 'Attendee' and $defaultRole}
-      <tr>
-       <td {$labelStyle}>
-        {ts}Participant Role{/ts}
-       </td>
-       <td {$valueStyle}>
-        {$event.participant_role}
-       </td>
-      </tr>
-     {/if}
-
-     {if $isShowLocation}
-      <tr>
-       <td colspan="2" {$valueStyle}>
-        {if $location.address.1.name}
-         {$location.address.1.name}<br />
-        {/if}
-        {if $location.address.1.street_address}
-         {$location.address.1.street_address}<br />
-        {/if}
-        {if $location.address.1.supplemental_address_1}
-         {$location.address.1.supplemental_address_1}<br />
-        {/if}
-        {if $location.address.1.supplemental_address_2}
-         {$location.address.1.supplemental_address_2}<br />
-        {/if}
-        {if $location.address.1.city}
-         {$location.address.1.city} {$location.address.1.postal_code}{if $location.address.1.postal_code_suffix} - {$location.address.1.postal_code_suffix}{/if}<br />
-        {/if}
-       </td>
-      </tr>
-     {/if}
-
-     {if $location.phone.1.phone || $location.email.1.email}
-      <tr>
-       <td colspan="2" {$labelStyle}>
-        {ts}Event Contacts:{/ts}
-       </td>
-      </tr>
-      {foreach from=$location.phone item=phone}
-       {if $phone.phone}
-        <tr>
-         <td {$labelStyle}>
-          {if $phone.phone_type}
-           {$phone.phone_type_display}
-          {else}
-           {ts}Phone{/ts}
-          {/if}
-         </td>
-         <td {$valueStyle}>
-          {$phone.phone}
-         </td>
-        </tr>
-       {/if}
-      {/foreach}
-      {foreach from=$location.email item=eventEmail}
-       {if $eventEmail.email}
-        <tr>
-         <td {$labelStyle}>
-          {ts}Email{/ts}
-         </td>
-         <td {$valueStyle}>
-          {$eventEmail.email}
-         </td>
-        </tr>
-       {/if}
-      {/foreach}
-     {/if}
-     <tr>
-      <td colspan="2" {$valueStyle}>
-       {capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture}
-       <a href="{$icalFeed}">{ts}Download iCalendar File{/ts}</a>
-      </td>
-     </tr>
-     {if $email}
-      <tr>
-       <th {$headerStyle}>
-        {ts}Registered Email{/ts}
-       </th>
-      </tr>
-      <tr>
-       <td colspan="2" {$valueStyle}>
-        {$email}
-       </td>
-      </tr>
-     {/if}
-
-
-     {if $event.is_monetary}
-
-      <tr>
-       <th {$headerStyle}>
-        {$event.fee_label}
-       </th>
-      </tr>
-
-      {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. *}
-           <tr>
-            <td colspan="2" {$labelStyle}>
-             {ts 1=$priceset+1}Participant %1{/ts}
-            </td>
-           </tr>
-          {/if}
-         {/if}
-         <tr>
-          <td colspan="2" {$valueStyle}>
-           <table> {* FIXME: style this table so that it looks like the text version (justification, etc.) *}
-            <tr>
-             <th>{ts}Item{/ts}</th>
-             <th>{ts}Qty{/ts}</th>
-             <th>{ts}Each{/ts}</th>
-             <th>{ts}Total{/ts}</th>
-            </tr>
-            {foreach from=$value item=line}
-             <tr>
-              <td>
-               {$line.description|truncate:30:"..."}
-              </td>
-              <td>
-               {$line.qty}
-              </td>
-              <td>
-               {$line.unit_price|crmMoney}
-              </td>
-              <td>
-               {$line.line_total|crmMoney}
-              </td>
-             </tr>
-            {/foreach}
-           </table>
-          </td>
-         </tr>
-        {/if}
-       {/foreach}
-      {/if}
-
-      {if $amount && !$lineItem}
-       {foreach from=$amount item=amnt key=level}
-        <tr>
-         <td colspan="2" {$valueStyle}>
-          {$amnt.amount|crmMoney} {$amnt.label}
-         </td>
-        </tr>
-       {/foreach}
-      {/if}
-
-      {if $isPrimary}
-       <tr>
-        <td {$labelStyle}>
-         {ts}Total Amount{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$totalAmount|crmMoney} {if $hookDiscount.message}({$hookDiscount.message}){/if}
-        </td>
-       </tr>
-
-       {if $is_pay_later}
-        <tr>
-         <td colspan="2" {$labelStyle}>
-          {$pay_later_receipt}
-         </td>
-        </tr>
-       {/if}
-
-       {if $register_date}
-        <tr>
-         <td {$labelStyle}>
-          {ts}Registration Date{/ts}
-         </td>
-         <td {$valueStyle}>
-          {$register_date|crmDate}
-         </td>
-        </tr>
-       {/if}
-
-       {if $receive_date}
-        <tr>
-         <td {$labelStyle}>
-          {ts}Transaction Date{/ts}
-         </td>
-         <td {$valueStyle}>
-          {$receive_date|crmDate}
-         </td>
-        </tr>
-       {/if}
-
-       {if $contributionTypeName}
-        <tr>
-         <td {$labelStyle}>
-          {ts}Contribution Type{/ts}
-         </td>
-         <td {$valueStyle}>
-          {$contributionTypeName}
-         </td>
-        </tr>
-       {/if}
-
-       {if $trxn_id}
-        <tr>
-         <td {$labelStyle}>
-          {ts}Transaction #{/ts}
-         </td>
-         <td {$valueStyle}>
-          {$trxn_id}
-         </td>
-        </tr>
-       {/if}
-
-       {if $paidBy}
-        <tr>
-         <td {$labelStyle}>
-          {ts}Paid By{/ts}
-         </td>
-         <td {$valueStyle}>
-         {$paidBy}
-         </td>
-        </tr>
-       {/if}
-
-       {if $checkNumber}
-        <tr>
-         <td {$labelStyle}>
-          {ts}Check Number{/ts}
-         </td>
-         <td {$valueStyle}>
-          {$checkNumber}
-         </td>
-        </tr>
-       {/if}
-
-       {if $contributeMode ne 'notify' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
-        <tr>
-         <th {$headerStyle}>
-          {ts}Billing Name and Address{/ts}
-         </th>
-        </tr>
-        <tr>
-         <td colspan="2" {$valueStyle}>
-          {$billingName}<br />
-          {$address|nl2br}
-         </td>
-        </tr>
-       {/if}
-
-       {if $contributeMode eq 'direct' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
-        <tr>
-         <th {$headerStyle}>
-          {ts}Credit Card Information{/ts}
-         </th>
-        </tr>
-        <tr>
-         <td colspan="2" {$valueStyle}>
-          {$credit_card_type}<br />
-          {$credit_card_number}<br />
-          {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}
-         </td>
-        </tr>
-       {/if}
-
-      {/if}
-
-     {/if} {* End of conditional section for Paid events *}
-
-     {if $customPre}
-      <tr>
-       <th {$headerStyle}>
-        {$customPre_grouptitle}
-       </th>
-      </tr>
-      {foreach from=$customPre item=value key=customName}
-       {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
-        <tr>
-         <td {$labelStyle}>
-          {$customName}
-         </td>
-         <td {$valueStyle}>
-          {$value}
-         </td>
-        </tr>
-       {/if}
-      {/foreach}
-     {/if}
-
-     {if $customPost}
-      <tr>
-       <th {$headerStyle}>
-        {$customPost_grouptitle}
-       </th>
-      </tr>
-      {foreach from=$customPost item=value key=customName}
-       {if ( $trackingFields and ! in_array( $customName, $trackingFields ) ) or ! $trackingFields}
-        <tr>
-         <td {$labelStyle}>
-          {$customName}
-         </td>
-         <td {$valueStyle}>
-          {$value}
-         </td>
-        </tr>
-       {/if}
-      {/foreach}
-     {/if}
-
-     {if $customProfile}
-      {foreach from=$customProfile item=value key=customName}
-       <tr>
-        <th {$headerStyle}>
-         {ts 1=$customName+1}Participant Information - Participant %1{/ts}
-        </th>
-       <tr>
-       {foreach from=$value item=val key=field}
-        {if $field eq 'additionalCustomPre' or $field eq 'additionalCustomPost'}
-         <tr>
-          <td colspan="2" {$labelStyle}>
-           {if $field eq 'additionalCustomPre'}
-            {$additionalCustomPre_grouptitle}
-           {else}
-            {$additionalCustomPost_grouptitle}
-           {/if}
-          </td>
-         </tr>
-         {foreach from=$val item=v key=f}
-          <tr>
-           <td {$labelStyle}>
-            {$f}
-           </td>
-           <td {$valueStyle}>
-            {$v}
-           </td>
-          </tr>
-         {/foreach}
-        {/if}
-       {/foreach}
-      {/foreach}
-     {/if}
-
-     {if $customGroup}
-      {foreach from=$customGroup item=value key=customName}
-       <tr>
-        <th {$headerStyle}>
-         {$customName}
-        </th>
-       </tr>
-       {foreach from=$value item=v key=n}
-        <tr>
-         <td {$labelStyle}>
-          {$n}
-         </td>
-         <td {$valueStyle}>
-          {$v}
-         </td>
-        </tr>
-       {/foreach}
-      {/foreach}
-     {/if}
-
-    </table>
-   </td>
-  </tr>
-
- </table>
-</center>
-
-</body>
-</html>
diff --git a/CRM/Upgrade/3.1.beta1.msg_template/message_templates/event_online_receipt_text.tpl b/CRM/Upgrade/3.1.beta1.msg_template/message_templates/event_online_receipt_text.tpl
deleted file mode 100644 (file)
index 53872b9..0000000
+++ /dev/null
@@ -1,226 +0,0 @@
-{if $event.confirm_email_text AND (not $isOnWaitlist AND not $isRequireApproval)}
-{$event.confirm_email_text}
-{/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}
-===========================================================
-{else}
-
-{ts}Please print this confirmation for your records.{/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 $event.participant_role neq 'Attendee' and $defaultRole}
-{ts}Participant Role{/ts}: {$event.participant_role}
-{/if}
-
-{if $isShowLocation}
-{if $location.address.1.name}
-
-{$location.address.1.name}
-{/if}
-{if $location.address.1.street_address}{$location.address.1.street_address}
-{/if}
-{if $location.address.1.supplemental_address_1}{$location.address.1.supplemental_address_1}
-{/if}
-{if $location.address.1.supplemental_address_2}{$location.address.1.supplemental_address_2}
-{/if}
-{if $location.address.1.city}{$location.address.1.city} {$location.address.1.postal_code}{if $location.address.1.postal_code_suffix} - {$location.address.1.postal_code_suffix}{/if}
-{/if}
-
-{/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}
-{/foreach}
-{foreach from=$location.email item=eventEmail}
-{if $eventEmail.email}
-
-{ts}Email{/ts}: {$eventEmail.email}{/if}{/foreach}
-{/if}
-
-{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 $email}
-
-===========================================================
-{ts}Registered Email{/ts}
-
-===========================================================
-{$email}
-{/if}
-{if $event.is_monetary} {* This section for Paid events only.*}
-
-===========================================================
-{$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}
----------------------------------------------------------
-{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}
-{/if}
-{/foreach}
-{/if}
-{if $amount && !$lineItem}
-{foreach from=$amount item=amnt key=level}{$amnt.amount|crmMoney} {$amnt.label}
-{/foreach}
-{/if}
-{if $isPrimary }
-
-{ts}Total Amount{/ts}: {$totalAmount|crmMoney} {if $hookDiscount.message}({$hookDiscount.message}){/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 $contributionTypeName}
-{ts}Contribution Type{/ts}: {$contributionTypeName}
-{/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 $contributeMode ne 'notify' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
-
-===========================================================
-{ts}Billing Name and Address{/ts}
-
-===========================================================
-{$billingName}
-{$address}
-{/if}
-
-{if $contributeMode eq 'direct' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
-===========================================================
-{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}
-
-
diff --git a/CRM/Upgrade/3.1.beta1.msg_template/message_templates/membership_online_receipt_html.tpl b/CRM/Upgrade/3.1.beta1.msg_template/message_templates/membership_online_receipt_html.tpl
deleted file mode 100644 (file)
index f1de997..0000000
+++ /dev/null
@@ -1,490 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title></title>
-</head>
-<body>
-
-{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}
-
-<center>
- <table width="620" border="0" cellpadding="0" cellspacing="0" id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left;">
-
-  <!-- BEGIN HEADER -->
-  <!-- You can add table row(s) here with logo or other header elements -->
-  <!-- END HEADER -->
-
-  <!-- BEGIN CONTENT -->
-
-  <tr>
-   <td>
-
-    {if $receipt_text}
-     <p>{$receipt_text|htmlize}</p>
-    {/if}
-
-    {if $is_pay_later}
-     <p>{$pay_later_receipt}</p> {* FIXME: this might be text rather than HTML *}
-    {else}
-     <p>{ts}Please print this confirmation for your records.{/ts}</p>
-    {/if}
-
-   </td>
-  </tr>
-  <tr>
-   <td>
-    <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
-
-     {if $membership_assign}
-      <tr>
-       <th {$headerStyle}>
-        {ts}Membership Information{/ts}
-       </th>
-      </tr>
-      <tr>
-       <td {$labelStyle}>
-        {ts}Membership Type{/ts}
-       </td>
-       <td {$valueStyle}>
-        {$membership_name}
-       </td>
-      </tr>
-      {if $mem_start_date}
-       <tr>
-        <td {$labelStyle}>
-         {ts}Membership Start Date{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$mem_start_date|crmDate}
-        </td>
-       </tr>
-      {/if}
-      {if $mem_end_date}
-       <tr>
-        <td {$labelStyle}>
-         {ts}Membership End Date{/ts}
-        </td>
-        <td {$valueStyle}>
-          {$mem_end_date|crmDate}
-        </td>
-       </tr>
-      {/if}
-     {/if}
-
-
-     {if $amount}
-
-
-      <tr>
-       <th {$headerStyle}>
-        {ts}Membership Fee{/ts}
-       </th>
-      </tr>
-
-      {if $membership_amount}
-
-       <tr>
-        <td {$labelStyle}>
-         {ts 1=$membership_name}%1 Membership{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$membership_amount|crmMoney}
-        </td>
-       </tr>
-       {if $amount}
-        {if ! $is_separate_payment }
-         <tr>
-          <td {$labelStyle}>
-           {ts}Contribution Amount{/ts}
-          </td>
-          <td {$valueStyle}>
-           {$amount|crmMoney}
-          </td>
-         </tr>
-        {else}
-         <tr>
-          <td {$labelStyle}>
-           {ts}Additional Contribution{/ts}
-          </td>
-          <td {$valueStyle}>
-           {$amount|crmMoney}
-          </td>
-         </tr>
-        {/if}
-       {/if}
-       <tr>
-        <td {$labelStyle}>
-         {ts}Total{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$amount+$membership_amount|crmMoney}
-        </td>
-       </tr>
-
-      {elseif $lineItem and $priceSetID}
-
-       {foreach from=$lineItem item=value key=priceset}
-        <tr>
-         <td colspan="2" {$valueStyle}>
-          <table> {* FIXME: style this table so that it looks like the text version (justification, etc.) *}
-           <tr>
-            <th>{ts}Item{/ts}</th>
-            <th>{ts}Qty{/ts}</th>
-            <th>{ts}Each{/ts}</th>
-            <th>{ts}Total{/ts}</th>
-           </tr>
-           {foreach from=$value item=line}
-            <tr>
-             <td>
-              {$line.description|truncate:30:"..."}
-             </td>
-             <td>
-              {$line.qty}
-             </td>
-             <td>
-              {$line.unit_price|crmMoney}
-             </td>
-             <td>
-              {$line.line_total|crmMoney}
-             </td>
-            </tr>
-           {/foreach}
-          </table>
-         </td>
-        </tr>
-       {/foreach}
-       <tr>
-        <td {$labelStyle}>
-         {ts}Total Amount{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$amount|crmMoney}
-        </td>
-       </tr>
-
-      {else}
-
-       <tr>
-        <td {$labelStyle}>
-         {ts}Amount{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$amount|crmMoney} {if $amount_level} - {$amount_level}{/if}
-        </td>
-       </tr>
-
-      {/if}
-
-
-     {elseif $membership_amount}
-
-
-      <tr>
-       <th {$headerStyle}>
-        {ts}Membership Fee{/ts}
-       </th>
-      </tr>
-      <tr>
-       <td {$labelStyle}>
-        {ts 1=$membership_name}%1 Membership{/ts}
-       </td>
-       <td {$valueStyle}>
-        {$membership_amount|crmMoney}
-       </td>
-      </tr>
-
-
-     {/if}
-
-
-     {if $receive_date}
-      <tr>
-       <td {$labelStyle}>
-        {ts}Date{/ts}
-       </td>
-       <td {$valueStyle}>
-        {$receive_date|crmDate}
-       </td>
-      </tr>
-     {/if}
-
-     {if $is_monetary and $trxn_id}
-      <tr>
-       <td {$labelStyle}>
-        {ts}Transaction #{/ts}
-       </td>
-       <td {$valueStyle}>
-        {$trxn_id}
-       </td>
-      </tr>
-     {/if}
-
-     {if $membership_trx_id}
-      <tr>
-       <td {$labelStyle}>
-        {ts}Membership Transaction #{/ts}
-       </td>
-       <td {$valueStyle}>
-        {$membership_trx_id}
-       </td>
-      </tr>
-     {/if}
-
-     {if $is_recur}
-      {if $contributeMode eq 'notify'}
-       <tr>
-        <td {$labelStyle}>
-         {ts 1=$cancelSubscriptionUrl}This is a recurring contribution. You can modify or cancel future contributions by <a href="%1">logging in to your account</a>.{/ts}
-        </td>
-       </tr>
-      {elseif $contributeMode eq 'directIPN' and $receiptFromEmail}
-       <tr>
-        <td {$labelStyle}>
-         {ts 1=$receiptFromEmail}This is a recurring contribution. To modify or cancel future contributions please contact us at %1.{/ts}
-        </td>
-       </tr>
-      {/if}
-     {/if}
-
-     {if $honor_block_is_active}
-      <tr>
-       <th {$headerStyle}>
-        {$honor_type}
-       </th>
-      </tr>
-      <tr>
-       <td colspan="2" {$labelStyle}>
-        {$honor_prefix} {$honor_first_name} {$honor_last_name}
-       </td>
-      </tr>
-      {if $honor_email}
-       <tr>
-        <td {$labelStyle}>
-         {ts}Honoree Email{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$honor_email}
-        </td>
-       </tr>
-      {/if}
-     {/if}
-
-     {if $pcpBlock}
-      <tr>
-       <th {$headerStyle}>
-        {ts}Personal Campaign Page{/ts}
-       </th>
-      </tr>
-      <tr>
-       <td {$labelStyle}>
-        {ts}Display In Honor Roll{/ts}
-       </td>
-       <td {$valueStyle}>
-        {if $pcp_display_in_roll}{ts}Yes{/ts}{else}{ts}No{/ts}{/if}
-       </td>
-      </tr>
-      {if $pcp_roll_nickname}
-       <tr>
-        <td {$labelStyle}>
-         {ts}Nickname{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$pcp_roll_nickname}
-        </td>
-       </tr>
-      {/if}
-      {if $pcp_personal_note}
-       <tr>
-        <td {$labelStyle}>
-         {ts}Personal Note{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$pcp_personal_note}
-        </td>
-       </tr>
-      {/if}
-     {/if}
-
-     {if $onBehalfName}
-      <tr>
-       <th {$headerStyle}>
-        {ts}On Behalf Of{/ts}
-       </th>
-      </tr>
-      <tr>
-       <td colspan="2" {$valueStyle}>
-        {$onBehalfName}<br />
-        {$onBehalfAddress|nl2br}<br />
-        {$onBehalfEmail}
-       </td>
-      </tr>
-     {/if}
-
-     {if ! ($contributeMode eq 'notify' OR $contributeMode eq 'directIPN') and $is_monetary}
-      {if $is_pay_later}
-       <tr>
-        <th {$headerStyle}>
-         {ts}Registered Email{/ts}
-        </th>
-       </tr>
-       <tr>
-        <td colspan="2" {$valueStyle}>
-         {$email}
-        </td>
-       </tr>
-      {elseif $amount GT 0 OR $membership_amount GT 0}
-       <tr>
-        <th {$headerStyle}>
-         {ts}Billing Name and Address{/ts}
-        </th>
-       </tr>
-       <tr>
-        <td colspan="2" {$valueStyle}>
-         {$billingName}<br />
-         {$address|nl2br}<br />
-         {$email}
-        </td>
-       </tr>
-      {/if}
-     {/if}
-
-     {if $contributeMode eq 'direct' AND !$is_pay_later AND ($amount GT 0 OR $membership_amount GT 0)}
-      <tr>
-       <th {$headerStyle}>
-        {ts}Credit Card Information{/ts}
-       </th>
-      </tr>
-      <tr>
-       <td colspan="2" {$valueStyle}>
-        {$credit_card_type}<br />
-        {$credit_card_number}<br />
-        {ts}Expires{/ts}: {$credit_card_exp_date|truncate:7:''|crmDate}<br />
-       </td>
-      </tr>
-     {/if}
-
-     {if $selectPremium}
-      <tr>
-       <th {$headerStyle}>
-        {ts}Premium Information{/ts}
-       </th>
-      </tr>
-      <tr>
-       <td colspan="2" {$labelStyle}>
-        {$product_name}
-       </td>
-      </tr>
-      {if $option}
-       <tr>
-        <td {$labelStyle}>
-         {ts}Option{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$option}
-        </td>
-       </tr>
-      {/if}
-      {if $sku}
-       <tr>
-        <td {$labelStyle}>
-         {ts}SKU{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$sku}
-        </td>
-       </tr>
-      {/if}
-      {if $start_date}
-       <tr>
-        <td {$labelStyle}>
-         {ts}Start Date{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$start_date|crmDate}
-        </td>
-       </tr>
-      {/if}
-      {if $end_date}
-       <tr>
-        <td {$labelStyle}>
-         {ts}End Date{/ts}
-        </td>
-        <td {$valueStyle}>
-         {$end_date|crmDate}
-        </td>
-       </tr>
-      {/if}
-      {if $contact_email OR $contact_phone}
-       <tr>
-        <td colspan="2" {$valueStyle}>
-         <p>{ts}For information about this premium, contact:{/ts}</p>
-         {if $contact_email}
-          <p>{$contact_email}</p>
-         {/if}
-         {if $contact_phone}
-          <p>{$contact_phone}</p>
-         {/if}
-        </td>
-       </tr>
-      {/if}
-      {if $is_deductible AND $price}
-        <tr>
-         <td colspan="2" {$valueStyle}>
-          <p>{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}</p>
-         </td>
-        </tr>
-      {/if}
-     {/if}
-
-     {if $customPre}
-      <tr>
-       <th {$headerStyle}>
-        {$customPre_grouptitle}
-       </th>
-      </tr>
-      {foreach from=$customPre item=customValue key=customName}
-       {if ($trackingFields and ! in_array($customName, $trackingFields)) or ! $trackingFields}
-        <tr>
-         <td {$labelStyle}>
-          {$customName}
-         </td>
-         <td {$valueStyle}>
-          {$customValue}
-         </td>
-        </tr>
-       {/if}
-      {/foreach}
-     {/if}
-
-     {if $customPost}
-      <tr>
-       <th {$headerStyle}>
-        {$customPost_grouptitle}
-       </th>
-      </tr>
-      {foreach from=$customPost item=customValue key=customName}
-       {if ($trackingFields and ! in_array($customName, $trackingFields)) or ! $trackingFields}
-        <tr>
-         <td {$labelStyle}>
-          {$customName}
-         </td>
-         <td {$valueStyle}>
-          {$customValue}
-         </td>
-        </tr>
-       {/if}
-      {/foreach}
-     {/if}
-
-    </table>
-   </td>
-  </tr>
-
- </table>
-</center>
-
-</body>
-</html>
diff --git a/CRM/Upgrade/3.1.beta1.msg_template/message_templates/membership_online_receipt_text.tpl b/CRM/Upgrade/3.1.beta1.msg_template/message_templates/membership_online_receipt_text.tpl
deleted file mode 100644 (file)
index 0fdd40c..0000000
+++ /dev/null
@@ -1,209 +0,0 @@
-{if $receipt_text}
-{$receipt_text}
-{/if}
-{if $is_pay_later}
-
-===========================================================
-{$pay_later_receipt}
-===========================================================
-{else}
-
-{ts}Please print this receipt for your records.{/ts}
-{/if}
-
-{if $membership_assign}
-===========================================================
-{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 $membership_amount }
-{ts 1=$membership_name}%1 Membership{/ts}: {$membership_amount|crmMoney}
-{if $amount}
-{if ! $is_separate_payment }
-{ts}Contribution Amount{/ts}: {$amount|crmMoney}
-{else}
-{ts}Additional Contribution{/ts}: {$amount|crmMoney}
-{/if}
-{/if}
--------------------------------------------
-{ts}Total{/ts}: {$amount+$membership_amount|crmMoney}
-{elseif $lineItem and $priceSetID}
-{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}
-{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}
-{if $contributeMode eq 'notify'}
-{ts}This is a recurring contribution. You can modify or cancel future contributions by logging in to your account at:{/ts}
-
-{$cancelSubscriptionUrl}
-{elseif $contributeMode eq 'directIPN' and $receiptFromEmail}
-{ts 1=$receiptFromEmail}This is a recurring contribution. To modify or cancel future contributions please contact us at %1.{/ts}
-
-{/if}
-{/if}
-
-{if $honor_block_is_active }
-===========================================================
-{$honor_type}
-===========================================================
-{$honor_prefix} {$honor_first_name} {$honor_last_name}
-{if $honor_email}
-{ts}Honoree Email{/ts}: {$honor_email}
-{/if}
-
-{/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 $onBehalfName}
-===========================================================
-{ts}On Behalf Of{/ts}
-
-===========================================================
-{$onBehalfName}
-{$onBehalfAddress}
-
-{$onBehalfEmail}
-
-{/if}
-
-{if !( $contributeMode eq 'notify' OR $contributeMode eq 'directIPN' ) and $is_monetary}
-{if $is_pay_later}
-===========================================================
-{ts}Registered Email{/ts}
-
-===========================================================
-{$email}
-{elseif $amount GT 0 OR $membership_amount GT 0 }
-===========================================================
-{ts}Billing Name and Address{/ts}
-
-===========================================================
-{$billingName}
-{$address}
-
-{$email}
-{/if} {* End ! is_pay_later condition. *}
-{/if}
-{if $contributeMode eq 'direct' AND !$is_pay_later AND ( $amount GT 0 OR $membership_amount GT 0 ) }
-
-===========================================================
-{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}
diff --git a/CRM/Upgrade/3.1.beta1.msg_template/message_templates/participant_cancelled_html.tpl b/CRM/Upgrade/3.1.beta1.msg_template/message_templates/participant_cancelled_html.tpl
deleted file mode 100644 (file)
index 953f679..0000000
+++ /dev/null
@@ -1,153 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title></title>
-</head>
-<body>
-
-{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}
-
-<center>
- <table width="620" border="0" cellpadding="0" cellspacing="0" id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left;">
-
-  <!-- BEGIN HEADER -->
-  <!-- You can add table row(s) here with logo or other header elements -->
-  <!-- END HEADER -->
-
-  <!-- BEGIN CONTENT -->
-
-  <tr>
-   <td>
-    <p>{ts 1=$contact.display_name}Dear %1{/ts},</p>
-    <p>{ts}Your Event Registration has been cancelled.{/ts}</p>
-   </td>
-  </tr>
-  <tr>
-   <td>
-    <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
-     <tr>
-      <th {$headerStyle}>
-       {ts}Event Information and Location{/ts}
-      </th>
-     </tr>
-     <tr>
-      <td colspan="2" {$valueStyle}>
-       {$event.event_title}<br />
-       {$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}
-      </td>
-     </tr>
-     <tr>
-      <td {$labelStyle}>
-       {ts}Participant Role{/ts}:
-      </td>
-      <td {$valueStyle}>
-       {$participant.role}
-      </td>
-     </tr>
-
-     {if $isShowLocation}
-      <tr>
-       <td colspan="2" {$valueStyle}>
-        {if $event.location.address.1.name}
-         {$event.location.address.1.name}<br />
-        {/if}
-        {if $event.location.address.1.street_address}
-         {$event.location.address.1.street_address}<br />
-        {/if}
-        {if $event.location.address.1.supplemental_address_1}
-         {$event.location.address.1.supplemental_address_1}<br />
-        {/if}
-        {if $event.location.address.1.supplemental_address_2}
-         {$event.location.address.1.supplemental_address_2}<br />
-        {/if}
-        {if $event.location.address.1.city}
-         {$event.location.address.1.city} {$event.location.address.1.postal_code}
-         {if $event.location.address.1.postal_code_suffix}
-          - {$event.location.address.1.postal_code_suffix}
-         {/if}
-        {/if}
-       </td>
-      </tr>
-     {/if}
-
-     {if $event.location.phone.1.phone || $event.location.email.1.email}
-      <tr>
-       <td colspan="2" {$labelStyle}>
-        {ts}Event Contacts:{/ts}
-       </td>
-      </tr>
-      {foreach from=$event.location.phone item=phone}
-       {if $phone.phone}
-        <tr>
-         <td {$labelStyle}>
-          {if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}
-         </td>
-         <td {$valueStyle}>
-          {$phone.phone}
-         </td>
-        </tr>
-       {/if}
-      {/foreach}
-      {foreach from=$event.location.email item=eventEmail}
-       {if $eventEmail.email}
-        <tr>
-         <td {$labelStyle}>
-          {ts}Email{/ts}
-         </td>
-         <td {$valueStyle}>
-          {$eventEmail.email}
-         </td>
-        </tr>
-       {/if}
-      {/foreach}
-     {/if}
-
-     {capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture}
-     <tr>
-      <td colspan="2" {$valueStyle}>
-       <a href="{$icalFeed}">{ts}Download iCalendar File{/ts}</a>
-      </td>
-     </tr>
-
-     {if $contact.email}
-      <tr>
-       <th {$headerStyle}>
-        {ts}Registered Email{/ts}
-       </th>
-      </tr>
-      <tr>
-       <td colspan="2" {$valueStyle}>
-        {$contact.email}
-       </td>
-      </tr>
-     {/if}
-
-     {if $register_date}
-      <tr>
-       <td {$labelStyle}>
-        {ts}Registration Date{/ts}
-       </td>
-       <td {$valueStyle}>
-        {$participant.register_date|crmDate}
-       </td>
-      </tr>
-     {/if}
-
-    </table>
-   </td>
-  </tr>
-
-  <tr>
-   <td>
-    <p>{ts 1=$domain.phone 2=$domain.email}Please contact us at %1 or send email to %2 if you have questions.{/ts}</p>
-   </td>
-  </tr>
-
- </table>
-</center>
-
-</body>
-</html>
diff --git a/CRM/Upgrade/3.1.beta1.msg_template/message_templates/participant_cancelled_text.tpl b/CRM/Upgrade/3.1.beta1.msg_template/message_templates/participant_cancelled_text.tpl
deleted file mode 100644 (file)
index ae0543e..0000000
+++ /dev/null
@@ -1,61 +0,0 @@
-{ts 1=$contact.display_name}Dear %1{/ts},
-
-{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}
-{if $event.location.address.1.name}
-
-{$event.location.address.1.name}
-{/if}
-{if $event.location.address.1.street_address}{$event.location.address.1.street_address}
-{/if}
-{if $event.location.address.1.supplemental_address_1}{$event.location.address.1.supplemental_address_1}
-{/if}
-{if $event.location.address.1.supplemental_address_2}{$event.location.address.1.supplemental_address_2}
-{/if}
-{if $event.location.address.1.city}{$event.location.address.1.city} {$event.location.address.1.postal_code}{if $event.location.address.1.postal_code_suffix} - {$event.location.address.1.postal_code_suffix}{/if}
-{/if}
-
-{/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}
-
-{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 $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}
-
diff --git a/CRM/Upgrade/3.1.beta1.msg_template/message_templates/participant_expired_html.tpl b/CRM/Upgrade/3.1.beta1.msg_template/message_templates/participant_expired_html.tpl
deleted file mode 100644 (file)
index d203e19..0000000
+++ /dev/null
@@ -1,156 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title></title>
-</head>
-<body>
-
-{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}
-
-<center>
- <table width="620" border="0" cellpadding="0" cellspacing="0" id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left;">
-
-  <!-- BEGIN HEADER -->
-  <!-- You can add table row(s) here with logo or other header elements -->
-  <!-- END HEADER -->
-
-  <!-- BEGIN CONTENT -->
-
-  <tr>
-   <td>
-    <p>{ts 1=$contact.display_name}Dear %1{/ts},</p>
-    <p>{ts 1=$event.event_title}Your pending event registration for %1 has expired
-because you did not confirm your registration.{/ts}</p>
-    <p>{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}</p>
-   </td>
-  </tr>
-  <tr>
-   <td>
-    <table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">
-     <tr>
-      <th {$headerStyle}>
-       {ts}Event Information and Location{/ts}
-      </th>
-     </tr>
-     <tr>
-      <td colspan="2" {$valueStyle}>
-       {$event.event_title}<br />
-       {$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}
-      </td>
-     </tr>
-     <tr>
-      <td {$labelStyle}>
-       {ts}Participant Role{/ts}:
-      </td>
-      <td {$valueStyle}>
-       {$participant.role}
-      </td>
-     </tr>
-
-     {if $isShowLocation}
-      <tr>
-       <td colspan="2" {$valueStyle}>
-        {if $event.location.address.1.name}
-         {$event.location.address.1.name}<br />
-        {/if}
-        {if $event.location.address.1.street_address}
-         {$event.location.address.1.street_address}<br />
-        {/if}
-        {if $event.location.address.1.supplemental_address_1}
-         {$event.location.address.1.supplemental_address_1}<br />
-        {/if}
-        {if $event.location.address.1.supplemental_address_2}
-         {$event.location.address.1.supplemental_address_2}<br />
-        {/if}
-        {if $event.location.address.1.city}
-         {$event.location.address.1.city} {$event.location.address.1.postal_code}
-         {if $event.location.address.1.postal_code_suffix}
-          - {$event.location.address.1.postal_code_suffix}
-         {/if}
-        {/if}
-       </td>
-      </tr>
-     {/if}
-
-     {if $event.location.phone.1.phone || $event.location.email.1.email}
-      <tr>
-       <td colspan="2" {$labelStyle}>
-        {ts}Event Contacts:{/ts}
-       </td>
-      </tr>
-      {foreach from=$event.location.phone item=phone}
-       {if $phone.phone}
-        <tr>
-         <td {$labelStyle}>
-          {if $phone.phone_type}{$phone.phone_type_display}{else}{ts}Phone{/ts}{/if}
-         </td>
-         <td {$valueStyle}>
-          {$phone.phone}
-         </td>
-        </tr>
-       {/if}
-      {/foreach}
-      {foreach from=$event.location.email item=eventEmail}
-       {if $eventEmail.email}
-        <tr>
-         <td {$labelStyle}>
-          {ts}Email{/ts}
-         </td>
-         <td {$valueStyle}>
-          {$eventEmail.email}
-         </td>
-        </tr>
-       {/if}
-      {/foreach}
-     {/if}
-
-     {capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture}
-     <tr>
-      <td colspan="2" {$valueStyle}>
-       <a href="{$icalFeed}">{ts}Download iCalendar File{/ts}</a>
-      </td>
-     </tr>
-
-     {if $contact.email}
-      <tr>
-       <th {$headerStyle}>
-        {ts}Registered Email{/ts}
-       </th>
-      </tr>
-      <tr>
-       <td colspan="2" {$valueStyle}>
-        {$contact.email}
-       </td>
-      </tr>
-     {/if}
-
-     {if $register_date}
-      <tr>
-       <td {$labelStyle}>
-        {ts}Registration Date{/ts}
-       </td>
-       <td {$valueStyle}>
-        {$participant.register_date|crmDate}
-       </td>
-      </tr>
-     {/if}
-
-    </table>
-   </td>
-  </tr>
-
-  <tr>
-   <td>
-    <p>{ts 1=$domain.phone 2=$domain.email}Please contact us at %1 or send email to %2 if you have questions.{/ts}</p>
-   </td>
-  </tr>
-
- </table>
-</center>
-
-</body>
-</html>
diff --git a/CRM/Upgrade/3.1.beta1.msg_template/message_templates/participant_expired_text.tpl b/CRM/Upgrade/3.1.beta1.msg_template/message_templates/participant_expired_text.tpl
deleted file mode 100644 (file)
index fcf0630..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-{ts 1=$contact.display_name}Dear %1{/ts},
-
-{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}
-{if $event.location.address.1.name}
-
-{$event.location.address.1.name}
-{/if}
-{if $event.location.address.1.street_address}{$event.location.address.1.street_address}
-{/if}
-{if $event.location.address.1.supplemental_address_1}{$event.location.address.1.supplemental_address_1}
-{/if}
-{if $event.location.address.1.supplemental_address_2}{$event.location.address.1.supplemental_address_2}
-{/if}
-{if $event.location.address.1.city}{$event.location.address.1.city} {$event.location.address.1.postal_code}{if $event.location.address.1.postal_code_suffix} - {$event.location.address.1.postal_code_suffix}{/if}
-{/if}
-
-{/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}
-
-{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 $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}
-
diff --git a/CRM/Upgrade/3.1.beta2.msg_template/civicrm_msg_template.tpl b/CRM/Upgrade/3.1.beta2.msg_template/civicrm_msg_template.tpl
deleted file mode 100644 (file)
index 44501b8..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-{php}
-  $dir = SMARTY_DIR . '/../../CRM/Upgrade/3.1.beta2.msg_template/message_templates';
-  $templates = array();
-  foreach (preg_grep('/\.tpl$/', scandir($dir)) as $filename) {
-    $parts = explode('_', basename($filename, '.tpl'));
-    $templates[] = array('type' => array_pop($parts), 'name' => implode('_', $parts), 'filename' => "$dir/$filename");
-  }
-  $this->assign('templates', $templates);
-{/php}
-
-{foreach from=$templates item=tpl}
-  {fetch assign=content file=$tpl.filename}
-  SELECT @workflow_id := MAX(id) FROM civicrm_option_value WHERE name = '{$tpl.name}';
-  SELECT @content := msg_{$tpl.type} FROM civicrm_msg_template WHERE workflow_id = @workflow_id AND is_reserved = 1 LIMIT 1;
-  UPDATE civicrm_msg_template SET msg_{$tpl.type} = '{$content|escape:"quotes"}' WHERE workflow_id = @workflow_id AND (is_reserved = 1 OR (is_default = 1 AND msg_{$tpl.type} = @content));
-{/foreach}
diff --git a/CRM/Upgrade/3.1.beta2.msg_template/message_templates/contribution_offline_receipt_subject.tpl b/CRM/Upgrade/3.1.beta2.msg_template/message_templates/contribution_offline_receipt_subject.tpl
deleted file mode 100644 (file)
index a2e2f61..0000000
+++ /dev/null
@@ -1 +0,0 @@
-{ts}Contribution Receipt{/ts}
diff --git a/CRM/Upgrade/3.1.beta2.msg_template/message_templates/membership_offline_receipt_subject.tpl b/CRM/Upgrade/3.1.beta2.msg_template/message_templates/membership_offline_receipt_subject.tpl
deleted file mode 100644 (file)
index ccc8b3c..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-{if $receiptType EQ 'membership signup'}
-{ts}Membership Confirmation and Receipt{/ts}
-{elseif $receiptType EQ 'membership renewal'}
-{ts}Membership Renewal Confirmation and Receipt{/ts}
-{/if}
diff --git a/CRM/Upgrade/3.1.beta4.msg_template/civicrm_msg_template.tpl b/CRM/Upgrade/3.1.beta4.msg_template/civicrm_msg_template.tpl
deleted file mode 100644 (file)
index 31a1b52..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-{php}
-  $dir = SMARTY_DIR . '/../../CRM/Upgrade/3.1.beta4.msg_template/message_templates';
-  $templates = array();
-  foreach (preg_grep('/\.tpl$/', scandir($dir)) as $filename) {
-    $parts = explode('_', basename($filename, '.tpl'));
-    $templates[] = array('type' => array_pop($parts), 'name' => implode('_', $parts), 'filename' => "$dir/$filename");
-  }
-  $this->assign('templates', $templates);
-{/php}
-
-{foreach from=$templates item=tpl}
-  {fetch assign=content file=$tpl.filename}
-  SELECT @workflow_id := MAX(id) FROM civicrm_option_value WHERE name = '{$tpl.name}';
-  SELECT @content := msg_{$tpl.type} FROM civicrm_msg_template WHERE workflow_id = @workflow_id AND is_reserved = 1 LIMIT 1;
-  UPDATE civicrm_msg_template SET msg_{$tpl.type} = '{$content|escape:"quotes"}' WHERE workflow_id = @workflow_id AND (is_reserved = 1 OR (is_default = 1 AND msg_{$tpl.type} = @content));
-{/foreach}
diff --git a/CRM/Upgrade/3.1.beta4.msg_template/message_templates/event_online_receipt_text.tpl b/CRM/Upgrade/3.1.beta4.msg_template/message_templates/event_online_receipt_text.tpl
deleted file mode 100644 (file)
index 6939821..0000000
+++ /dev/null
@@ -1,227 +0,0 @@
-{if $event.confirm_email_text AND (not $isOnWaitlist AND not $isRequireApproval)}
-{$event.confirm_email_text}
-{/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}
-===========================================================
-{else}
-
-{ts}Please print this confirmation for your records.{/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 $event.participant_role neq 'Attendee' and $defaultRole}
-{ts}Participant Role{/ts}: {$event.participant_role}
-{/if}
-
-{if $isShowLocation}
-{if $location.address.1.name}
-
-{$location.address.1.name}
-{/if}
-{if $location.address.1.street_address}{$location.address.1.street_address}
-{/if}
-{if $location.address.1.supplemental_address_1}{$location.address.1.supplemental_address_1}
-{/if}
-{if $location.address.1.supplemental_address_2}{$location.address.1.supplemental_address_2}
-{/if}
-{if $location.address.1.city}{$location.address.1.city} {$location.address.1.postal_code}{if $location.address.1.postal_code_suffix} - {$location.address.1.postal_code_suffix}{/if}
-{/if}
-
-{/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}
-{/foreach}
-{foreach from=$location.email item=eventEmail}
-{if $eventEmail.email}
-
-{ts}Email{/ts}: {$eventEmail.email}{/if}{/foreach}
-{/if}
-
-{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 $email}
-
-===========================================================
-{ts}Registered Email{/ts}
-
-===========================================================
-{$email}
-{/if}
-{if $event.is_monetary} {* This section for Paid events only.*}
-
-===========================================================
-{$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}
----------------------------------------------------------
-{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}
-{/if}
-{/foreach}
-{/if}
-{if $amount && !$lineItem}
-{foreach from=$amount item=amnt key=level}{$amnt.amount|crmMoney} {$amnt.label}
-{/foreach}
-{/if}
-{if $isPrimary }
-
-{ts}Total Amount{/ts}: {$totalAmount|crmMoney} {if $hookDiscount.message}({$hookDiscount.message}){/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 $contributionTypeName}
-{ts}Contribution Type{/ts}: {$contributionTypeName}
-{/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 $contributeMode ne 'notify' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
-
-===========================================================
-{ts}Billing Name and Address{/ts}
-
-===========================================================
-{$billingName}
-{$address}
-{/if}
-
-{if $contributeMode eq 'direct' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
-===========================================================
-{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}
-
-
diff --git a/CRM/Upgrade/3.1.beta4.msg_template/message_templates/pcp_status_change_html.tpl b/CRM/Upgrade/3.1.beta4.msg_template/message_templates/pcp_status_change_html.tpl
deleted file mode 100644 (file)
index c85a2af..0000000
+++ /dev/null
@@ -1,59 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title></title>
-</head>
-<body>
-
-<center>
- <table width="620" border="0" cellpadding="0" cellspacing="0" id="crm-event_receipt" style="font-family: Arial, Verdana, sans-serif; text-align: left;">
-
-  <!-- BEGIN HEADER -->
-  <!-- You can add table row(s) here with logo or other header elements -->
-  <!-- END HEADER -->
-
-  <!-- BEGIN CONTENT -->
-
-  <tr>
-   <td>
-
-    <h1>{ts}Your Personal Campaign Page{/ts}</h1>
-
-    {if $pcpStatus eq 'Approved'}
-
-     <p>{ts}Your personal campaign page has been approved and is now live.{/ts}</p>
-     <p>{ts}Whenever you want to preview, update or promote your page{/ts}:</p>
-     <ol>
-      <li><a href="{$loginUrl}">{ts}Login to your account{/ts}</a></li>
-      <li><a href="{$pcpInfoURL}">{ts}Go to your page{/ts}</a></li>
-     </ol>
-     <p>{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}</p>
-
-     {if $isTellFriendEnabled}
-      <p><a href="{$pcpTellFriendURL}">{ts}After logging in, you can use this form to promote your fundraising page{/ts}</a></p>
-     {/if}
-
-     {if $pcpNotifyEmailAddress}
-      <p>{ts}Questions? Send email to{/ts}: {$pcpNotifyEmailAddress}</p>
-     {/if}
-
-    {elseif $pcpStatus eq 'Not Approved'}
-
-     <p>{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}</p>
-     {if $pcpNotifyEmailAddress}
-      <p>{ts}Please contact our site administrator for more information{/ts}: {$pcpNotifyEmailAddress}</p>
-     {/if}
-
-    {/if}
-
-   </td>
-  </tr>
-
- </table>
-</center>
-
-</body>
-</html>
diff --git a/CRM/Upgrade/3.1.beta4.msg_template/message_templates/pcp_status_change_text.tpl b/CRM/Upgrade/3.1.beta4.msg_template/message_templates/pcp_status_change_text.tpl
deleted file mode 100644 (file)
index 7c6cdc3..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-{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}
diff --git a/CRM/Upgrade/Incremental/sql/2.1.2.mysql b/CRM/Upgrade/Incremental/sql/2.1.2.mysql
deleted file mode 100644 (file)
index ea79c5d..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
--- /****************************************************************************
--- *
--- * MySQL Script for civicrm database/tables - upgradation from 2.1.1 -> 2.1.2
--- *
--- *****************************************************************************/
--- fix constraint
-ALTER TABLE `civicrm_group_nesting`
-    DROP FOREIGN KEY `FK_civicrm_group_nesting_child_group_id`;
-ALTER TABLE `civicrm_group_nesting`
-    ADD CONSTRAINT `FK_civicrm_group_nesting_child_group_id` FOREIGN KEY (`child_group_id`) REFERENCES `civicrm_group` (`id`) ON DELETE CASCADE;
-
--- CRM-3749
-UPDATE civicrm_uf_field SET field_type = 'Contact'
-WHERE field_name IN ('address_name','city','contact_sub_type','contact_type','country','custom_greeting','display_name','do_not_email','do_not_mail','do_not_phone','do_not_trade','email','external_identifier','geo_code_1','geo_code_2','group','im','image_URL','id','nick_name','is_opt_out','on_hold','openid','phone','postal_code','postal_code_suffix','preferred_communication_method','preferred_mail_format','sort_name','contact_source','state_province','street_address','supplemental_address_1','supplemental_address_2','tag','user_unique_id','is_bulkmail','world_region');
-
--- civicrm_note constraint fix
-ALTER TABLE civicrm_note
-    DROP FOREIGN KEY `FK_civicrm_note_contact_id`;
-ALTER TABLE `civicrm_note`
-    ADD CONSTRAINT `FK_civicrm_note_contact_id` FOREIGN KEY (`contact_id`) REFERENCES `civicrm_contact` (`id`) ON DELETE SET NULL;
diff --git a/CRM/Upgrade/Incremental/sql/2.2.0.mysql.tpl b/CRM/Upgrade/Incremental/sql/2.2.0.mysql.tpl
deleted file mode 100644 (file)
index f0ddd3d..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
--- remove activity_medium option group and values
-
-DELETE ov.*
-FROM  civicrm_option_value ov
-INNER JOIN civicrm_option_group og ON og.id = ov.option_group_id
-WHERE og.name like 'activity_medium';
-
-DELETE FROM civicrm_option_group WHERE name like 'activity_medium';
-
-ALTER TABLE `civicrm_activity`
-  MODIFY `medium_id` INT( 10 ) UNSIGNED NULL DEFAULT NULL COMMENT 'Activity Medium, Implicit FK to civicrm_option_value where option_group = encounter_medium.';
diff --git a/CRM/Upgrade/Incremental/sql/2.2.1.mysql.tpl b/CRM/Upgrade/Incremental/sql/2.2.1.mysql.tpl
deleted file mode 100644 (file)
index 9298450..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
--- CRM-4257
-
-SELECT @og_id_pl := max(id) from civicrm_option_group where name = 'participant_listing';
-
-DELETE FROM `civicrm_option_value` WHERE `option_group_id` = @og_id_pl;
-
- {if $multilingual}
-    INSERT INTO civicrm_option_value
-      (option_group_id, {foreach from=$locales item=locale}label_{$locale}, description_{$locale}, {/foreach}  value, name, filter, weight, is_reserved, is_active) VALUES
-      (@og_id_pl, {foreach from=$locales item=locale}'Name Only', 'CRM_Event_Page_ParticipantListing_Name',{/foreach}  1, 'Name Only', 0, 1, 1, 1),
-      (@og_id_pl, {foreach from=$locales item=locale}'Name and Email', 'CRM_Event_Page_ParticipantListing_NameAndEmail',{/foreach}  2, 'Name and Email', 0, 2, 1, 1),
-      (@og_id_pl, {foreach from=$locales item=locale}'Name, Status and Register Date', 'CRM_Event_Page_ParticipantListing_NameStatusAndDate',{/foreach}  3, 'Name, Status and Register Date', 0, 3, 1, 1);
-
- {else}
-    INSERT INTO `civicrm_option_value`
-      (`option_group_id`, `label`, `value`, `name`, `filter`, `weight`, `description`, `is_reserved`, `is_active`) VALUES
-      (@og_id_pl, 'Name Only', 1, 'Name Only', 0, 1, 'CRM_Event_Page_ParticipantListing_Name', 1, 1),
-      (@og_id_pl, 'Name and Email', 2, 'Name and Email', 0, 2, 'CRM_Event_Page_ParticipantListing_NameAndEmail', 1, 1),
-      (@og_id_pl, 'Name, Status and Register Date', 3, 'Name, Status and Register Date', 0, 3, 'CRM_Event_Page_ParticipantListing_NameStatusAndDate', 1, 1);
- {/if}
-
---CRM-4256
--- Update table name in civicrm_price_set_entity (Price Set)
-
-UPDATE `civicrm_price_set_entity` c SET c.`entity_table`='civicrm_event' WHERE c.`entity_table`='civicrm_event_page';
-
---Adding new custom search for Contribution Amounts by Tag.
-
-SELECT @og_id_cs  := id FROM civicrm_option_group WHERE name = 'custom_search';
-SELECT @maxValue  := max(CAST( `value` AS UNSIGNED )) FROM civicrm_option_value WHERE option_group_id = @og_id_cs;
-
- {if $multilingual}
-     INSERT INTO civicrm_option_value
-        (option_group_id, {foreach from=$locales item=locale}label_{$locale}, description_{$locale}, {/foreach} value, name, weight, is_active) VALUES
-           (@og_id_cs, {foreach from=$locales item=locale}'CRM_Contact_Form_Search_Custom_TagContributions', 'Find Contribution Amounts by Tag', {/foreach} @maxValue + 1, 'CRM_Contact_Form_Search_Custom_TagContributions', @maxValue + 1, 1);
- {else}
-     INSERT INTO civicrm_option_value
-         (option_group_id, label, value, name, description, weight, is_active ) VALUES
-             (@og_id_cs, 'CRM_Contact_Form_Search_Custom_TagContributions', @maxValue + 1, 'CRM_Contact_Form_Search_Custom_TagContributions', 'Find Contribution Amounts by Tag', @maxValue + 1, 1);
- {/if}
diff --git a/CRM/Upgrade/Incremental/sql/2.2.3.mysql.tpl b/CRM/Upgrade/Incremental/sql/2.2.3.mysql.tpl
deleted file mode 100644 (file)
index 8e0fb9c..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
--- CRM-4374
-
-SELECT @og_id_at   := max(id) from civicrm_option_group where name = 'activity_type';
-SELECT @max_val_at := max(round(value)) from civicrm_option_value where option_group_id=@og_id_at;
-SELECT @max_wt_at  := max(weight) from civicrm_option_value where option_group_id=@og_id_at;
-
-SELECT @og_id_mp   := max(id) from civicrm_option_group where name = 'mail_protocol';
-SELECT @max_val_mp := max(round(value)) from civicrm_option_value where option_group_id=@og_id_mp;
-SELECT @max_wt_mp  := max(weight) from civicrm_option_value where option_group_id=@og_id_mp;
-
-SELECT @civicase_component_id := id from civicrm_component where name = 'CiviCase';
-
- {if $multilingual}
-    INSERT INTO civicrm_option_value
-      (option_group_id, {foreach from=$locales item=locale}label_{$locale},{/foreach}  value, name, filter, weight, is_reserved, is_active, component_id) VALUES
-      (@og_id_at, {foreach from=$locales item=locale}'Change Case Start Date',{/foreach} @max_val_at + 1, 'Change Case Start Date', 0, @max_wt_at + 1, 1, 1, @civicase_component_id),
-      (@og_id_mp, {foreach from=$locales item=locale}'Localdir',{/foreach} @max_val_mp + 1, 'Localdir', 0, @max_wt_mp + 1, 1, 1, NULL);
- {else}
-    INSERT INTO `civicrm_option_value`
-      (`option_group_id`, `label`, `value`, `name`, `filter`, `weight`, `is_reserved`, `is_active`, component_id) VALUES
-      (@og_id_at, 'Change Case Start Date', @max_val_at + 1, 'Change Case Start Date', 0, @max_wt_at + 1, 1, 1, @civicase_component_id ),
-      (@og_id_mp, 'Localdir',               @max_val_mp + 1, 'Localdir',               0, @max_wt_mp + 1, 1, 1, NULL);
- {/if}
-
---CRM-4373
---Adding new custom search for FullText Search.
-
-SELECT @og_id_cs  := id FROM civicrm_option_group WHERE name = 'custom_search';
-SELECT @maxValue  := max(CAST( `value` AS UNSIGNED )) FROM civicrm_option_value WHERE option_group_id = @og_id_cs;
-
- {if $multilingual}
-     INSERT INTO civicrm_option_value
-        (option_group_id, {foreach from=$locales item=locale}label_{$locale}, description_{$locale}, {/foreach} value, name, weight, is_active) VALUES
-           (@og_id_cs, {foreach from=$locales item=locale}'CRM_Contact_Form_Search_Custom_FullText', 'Full-text Search', {/foreach} @maxValue + 1, 'CRM_Contact_Form_Search_Custom_FullText', @maxValue + 1, 1);
- {else}
-     INSERT INTO civicrm_option_value
-         (option_group_id, label, value, name, description, weight, is_active ) VALUES
-             (@og_id_cs, 'CRM_Contact_Form_Search_Custom_FullText', @maxValue + 1, 'CRM_Contact_Form_Search_Custom_FullText', 'Full-text Search', @maxValue + 1, 1);
- {/if}
diff --git a/CRM/Upgrade/Incremental/sql/2.2.6.mysql.tpl b/CRM/Upgrade/Incremental/sql/2.2.6.mysql.tpl
deleted file mode 100644 (file)
index 5aecbfd..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
--- CRM-4571
-
-ALTER TABLE civicrm_cache MODIFY data longtext;
diff --git a/CRM/Upgrade/Incremental/sql/2.2.7.mysql.tpl b/CRM/Upgrade/Incremental/sql/2.2.7.mysql.tpl
deleted file mode 100644 (file)
index 9bc5f4d..0000000
+++ /dev/null
@@ -1,121 +0,0 @@
--- CiviReport Component
-INSERT INTO civicrm_component (name, namespace) VALUES ('CiviReport', 'CRM_Report' );
-
-INSERT INTO civicrm_acl
-    (name, deny, entity_table, entity_id, operation, object_table, object_id, acl_table, acl_id, is_active)
-VALUES
-    ('Core ACL', 0, 'civicrm_acl_role', 1, 'All', 'access CiviReport',      NULL, NULL, NULL, 1),
-    ('Core ACL', 0, 'civicrm_acl_role', 1, 'All', 'access Report Criteria', NULL, NULL, NULL, 1),
-    ('Core ACL', 0, 'civicrm_acl_role', 1, 'All', 'administer Reports',     NULL, NULL, NULL, 1);
-
--- Report Templates
-{if $multilingual}
-    INSERT INTO civicrm_option_group
-        ( name,                 {foreach from=$locales item=locale}description_{$locale},   {/foreach} is_reserved, is_active)
-    VALUES
-        ( 'report_template',    {foreach from=$locales item=locale}'Report Template',       {/foreach} 0, 1 );
-{else}
-    INSERT INTO civicrm_option_group
-        (name, description, is_reserved, is_active )
-    VALUES
-        ('report_template', 'Report Template', 0, 1 );
-{/if}
-
-SELECT @contributeCompId := max(id) FROM civicrm_component where name = 'CiviContribute';
-SELECT @eventCompId      := max(id) FROM civicrm_component where name = 'CiviEvent';
-SELECT @memberCompId     := max(id) FROM civicrm_component where name = 'CiviMember';
-SELECT @pledgeCompId     := max(id) FROM civicrm_component where name = 'CiviPledge';
-
-SELECT @option_group_id_report         := max(id) from civicrm_option_group where name = 'report_template';
-
-{if $multilingual}
-    INSERT INTO civicrm_option_value
-  (option_group_id, {foreach from=$locales item=locale}label_{$locale}, description_{$locale}, {/foreach} value, name, weight, is_active, component_id )
-    VALUES
-        (@option_group_id_report , {foreach from=$locales item=locale}'Constituent Report (Summary)',           'Provides a list of address and telephone information for constituent records in your system.',                                                                                                                           {/foreach}   'contact/summary',                'CRM_Report_Form_Contact_Summary',                 1,   1, NULL ),
-        (@option_group_id_report , {foreach from=$locales item=locale}'Constituent Report (Detail)',            'Provides contact-related information on contributions, memberships, events and activities.',                                                                                                                             {/foreach}   'contact/detail',                 'CRM_Report_Form_Contact_Detail',                  2,   1, NULL ),
-        (@option_group_id_report , {foreach from=$locales item=locale}'Activity Report',                        'Provides a list of constituent activity including activity statistics for one/all contacts during a given date range(required)',                                                                                         {/foreach}   'activity',                       'CRM_Report_Form_Activity',                        3,   0, NULL ),
-        (@option_group_id_report , {foreach from=$locales item=locale}'Walk / Phone List Report',               'Provides a detailed report for your walk/phonelist for targetted contacts',                                                                                                                                              {/foreach}   'walklist',                       'CRM_Report_Form_Walklist',                        4,   0, NULL ),
-        (@option_group_id_report , {foreach from=$locales item=locale}'Current Employer Report',                'Provides detail list of employer employee relationships along with employment details Ex Join Date',                                                                                                                     {/foreach}   'contact/currentEmployer',        'CRM_Report_Form_Contact_CurrentEmployer',         5,   0, NULL ),
-        (@option_group_id_report , {foreach from=$locales item=locale}'Donor Report (Summary)',                 'Shows contribution statistics by month / week / year .. country / state .. type.',                                                                                                                                       {/foreach}   'contribute/summary',             'CRM_Report_Form_Contribute_Summary',              6,   1, @contributeCompId ),
-        (@option_group_id_report , {foreach from=$locales item=locale}'Donor Report (Detail)',                  'Lists detailed contribution(s) for one / all contacts. Contribution summary report points to this report for specific details.',                                                                                         {/foreach}   'contribute/detail',              'CRM_Report_Form_Contribute_Detail',               7,   1, @contributeCompId ),
-        (@option_group_id_report , {foreach from=$locales item=locale}'Donation Summary Report (Repeat)',       'Given two date ranges, shows contacts (and their contributions) who contributed in both the date ranges with percentage increase / decrease.',                                                                           {/foreach}   'contribute/repeat',              'CRM_Report_Form_Contribute_Repeat',               8,   1, @contributeCompId ),
-        (@option_group_id_report , {foreach from=$locales item=locale}'Donation Summary Report (Organization)', '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.',                      {/foreach}   'contribute/organizationSummary', 'CRM_Report_Form_Contribute_OrganizationSummary',  9,   0, @contributeCompId ),
-        (@option_group_id_report , {foreach from=$locales item=locale}'Donation Summary Report (Household)',    '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.)',  {/foreach}   'contribute/householdSummary',    'CRM_Report_Form_Contribute_HouseholdSummary',     10,  0, @contributeCompId ),
-        (@option_group_id_report , {foreach from=$locales item=locale}'Top Donors Report',                      '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).',                                                                   {/foreach}   'contribute/topDonor',            'CRM_Report_Form_Contribute_TopDonor',             11,  0, @contributeCompId ),
-        (@option_group_id_report , {foreach from=$locales item=locale}'SYBUNT Report',                          '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.',                                    {/foreach}   'contribute/sybunt',              'CRM_Report_Form_Contribute_Sybunt',               12,  1, @contributeCompId ),
-        (@option_group_id_report , {foreach from=$locales item=locale}'LYBUNT Report',                          '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.',                                                          {/foreach}   'contribute/lybunt',              'CRM_Report_Form_Contribute_Lybunt',               13,  1, @contributeCompId ),
-        (@option_group_id_report , {foreach from=$locales item=locale}'Soft Credit Report',                     'Soft Credit details.',                                                                                                                                                                                                   {/foreach}   'contribute/softcredit',          'CRM_Report_Form_Contribute_SoftCredit',           14,  1, @contributeCompId ),
-        (@option_group_id_report , {foreach from=$locales item=locale}'Membership Report (Summary)',            'Provides a list of members. You can included address and phone information and group the members based on membership type.',                                                                                             {/foreach}   'member/summary',                 'CRM_Report_Form_Member_Summary',                  15,  1, @memberCompId ),
-        (@option_group_id_report , {foreach from=$locales item=locale}'Membership Report (Detail)',             'Provides a list of members along with their membership status and membership details (Join Date, Start Date, End Date).',                                                                                                {/foreach}   'member/detail',                  'CRM_Report_Form_Member_Detail',                   16,  1, @memberCompId ),
-        (@option_group_id_report , {foreach from=$locales item=locale}'Membership Report (Lapsed)',             'Provides a list of memberships that lapsed or will lapse before the date you specify.',                                                                                                                                  {/foreach}   'member/lapse',                   'CRM_Report_Form_Member_Lapse',                    17,  1, @memberCompId ),
-        (@option_group_id_report , {foreach from=$locales item=locale}'Event Participant Report (List)',        'Provides lists of participants for an event.',                                                                                                                                                                           {/foreach}   'event/participantListing',       'CRM_Report_Form_Event_ParticipantListing',        18,  1, @eventCompId  ),
-        (@option_group_id_report , {foreach from=$locales item=locale}'Event Income Report (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.',                                  {/foreach}   'event/summary',                  'CRM_Report_Form_Event_Summary',                   19,  1, @eventCompId  ),
-        (@option_group_id_report , {foreach from=$locales item=locale}'Event Income Report (Detail)',           'Helps you to analyze the income generated by an event. The report can include details by participant type, status and payment method.',                                                                                  {/foreach}   'event/income',                   'CRM_Report_Form_Event_Income',                    20,  1, @eventCompId  ),
-        (@option_group_id_report , {foreach from=$locales item=locale}'Pledge Report',                          'Pledge Report',                                                                                                                                                                                                          {/foreach}   'pledge/summary',                 'CRM_Report_Form_Pledge_Summary',                  21,  0, @pledgeCompId ),
-        (@option_group_id_report , {foreach from=$locales item=locale}'Pledged but not Paid Report',            'Pledged but not Paid Report',                                                                                                                                                                                            {/foreach}   'pledge/pbnp',                    'CRM_Report_Form_Pledge_Pbnp',                     22,  0, @pledgeCompId );
-
-{else}
-    INSERT INTO civicrm_option_value
-        (option_group_id, label, value, name, weight, description, is_active, component_id )
-    VALUES
-        (@option_group_id_report , 'Constituent Report (Summary)',            'contact/summary',                'CRM_Report_Form_Contact_Summary',                 1,  'Provides a list of address and telephone information for constituent records in your system.',                                      1, NULL ),
-        (@option_group_id_report , 'Constituent Report (Detail)',             'contact/detail',                 'CRM_Report_Form_Contact_Detail',                  2,  'Provides contact-related information on contributions, memberships, events and activities.',                                        1, NULL ),
-        (@option_group_id_report , 'Activity Report',                         'activity',                       'CRM_Report_Form_Activity',                        3,  'Provides a list of constituent activity including activity statistics for one/all contacts during a given date range(required)',    0, NULL ),
-        (@option_group_id_report , 'Walk / Phone List Report',                'walklist',                       'CRM_Report_Form_Walklist',                        4,  'Provides a detailed report for your walk/phonelist for targetted contacts',                                                         0, NULL ),
-        (@option_group_id_report , 'Current Employer Report',                 'contact/currentEmployer',        'CRM_Report_Form_Contact_CurrentEmployer',         5,  'Provides detail list of employer employee relationships along with employment details Ex Join Date',                                0, NULL ),
-        (@option_group_id_report , 'Donor Report (Summary)',                  'contribute/summary',             'CRM_Report_Form_Contribute_Summary',              6,  'Shows contribution statistics by month / week / year .. country / state .. type.',                                                  1, @contributeCompId ),
-        (@option_group_id_report , 'Donor Report (Detail)',                   'contribute/detail',              'CRM_Report_Form_Contribute_Detail',               7,  'Lists detailed contribution(s) for one / all contacts. Contribution summary report points to this report for specific details.',                                                                                        1, @contributeCompId ),
-        (@option_group_id_report , 'Donation Summary Report (Repeat)',        'contribute/repeat',              'CRM_Report_Form_Contribute_Repeat',               8,  'Given two date ranges, shows contacts (and their contributions) who contributed in both the date ranges with percentage increase / decrease.',                                                                          1, @contributeCompId ),
-        (@option_group_id_report , 'Donation Summary Report (Organization)',  'contribute/organizationSummary', 'CRM_Report_Form_Contribute_OrganizationSummary',  9,  '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.',                     0, @contributeCompId ),
-        (@option_group_id_report , 'Donation Summary Report (Household)',     'contribute/householdSummary',    'CRM_Report_Form_Contribute_HouseholdSummary',     10, '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.)', 0, @contributeCompId ),
-        (@option_group_id_report , 'Top Donors Report',                       'contribute/topDonor',            'CRM_Report_Form_Contribute_TopDonor',             11, '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).',                                                                  0, @contributeCompId ),
-        (@option_group_id_report , 'SYBUNT Report',                           'contribute/sybunt',              'CRM_Report_Form_Contribute_Sybunt',               12, '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.',                                   1, @contributeCompId ),
-        (@option_group_id_report , 'LYBUNT Report',                           'contribute/lybunt',              'CRM_Report_Form_Contribute_Lybunt',               13, '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.',                                                         1, @contributeCompId ),
-        (@option_group_id_report , 'Soft Credit Report',                      'contribute/softcredit',          'CRM_Report_Form_Contribute_SoftCredit',           14, 'Soft Credit details.',                                                                                                                                                                                                  1, @contributeCompId ),
-        (@option_group_id_report , 'Membership Report (Summary)',             'member/summary',                 'CRM_Report_Form_Member_Summary',                  15, 'Provides a list of members. You can included address and phone information and group the members based on membership type.',                                                                                            1, @memberCompId ),
-        (@option_group_id_report , 'Membership Report (Detail)',              'member/detail',                  'CRM_Report_Form_Member_Detail',                   16, 'Provides a list of members along with their membership status and membership details (Join Date, Start Date, End Date).',                                                                                               1, @memberCompId ),
-        (@option_group_id_report , 'Membership Report (Lapsed)',              'member/lapse',                   'CRM_Report_Form_Member_Lapse',                    17, 'Provides a list of memberships that lapsed or will lapse before the date you specify.',                                                                                                                                 1, @memberCompId ),
-        (@option_group_id_report , 'Event Participant Report (List)',         'event/participantListing',       'CRM_Report_Form_Event_ParticipantListing',        18, 'Provides lists of participants for an event.',                                                                                                                                                                          1, @eventCompId  ),
-        (@option_group_id_report , 'Event Income Report (Summary)',           'event/summary',                  'CRM_Report_Form_Event_Summary',                   19, '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.',                                 1, @eventCompId  ),
-        (@option_group_id_report , 'Event Income Report (Detail)',            'event/income',                   'CRM_Report_Form_Event_Income',                    20, 'Helps you to analyze the income generated by an event. The report can include details by participant type, status and payment method.',                                                                                 1, @eventCompId  ),
-        (@option_group_id_report , 'Pledge Report',                           'pledge/summary',                 'CRM_Report_Form_Pledge_Summary',                  21, 'Pledge Report',                                                                                                                                                                                                         0, @pledgeCompId ),
-        (@option_group_id_report , 'Pledged but not Paid Report',             'pledge/pbnp',                    'CRM_Report_Form_Pledge_Pbnp',                     22, 'Pledged but not Paid Report',                                                                                                                                                                                           0, @pledgeCompId );
-{/if}
-
--- civicrm_report_instance
-CREATE TABLE civicrm_report_instance (
-    id int unsigned NOT NULL AUTO_INCREMENT  COMMENT 'Report Instance ID',
-    title varchar(255)    COMMENT 'Report Instance Title.',
-    report_id varchar(64) NOT NULL   COMMENT 'FK to civicrm_option_value for the report template',
-    description varchar(255)    COMMENT 'Report Instance description.',
-    permission varchar(255)    COMMENT 'permission required to be able to run this instance',
-    form_values text    COMMENT 'Submitted form values for this report',
-    is_active tinyint    COMMENT 'Is this entry active?',
-    email_subject varchar(255)    COMMENT 'Subject of email',
-    email_to text    COMMENT 'comma-separated list of email addresses to send the report to',
-    email_cc text    COMMENT 'comma-separated list of email addresses to send the report to',
-    header text    COMMENT 'comma-separated list of email addresses to send the report to',
-    footer text    COMMENT 'comma-separated list of email addresses to send the report to',
-    PRIMARY KEY ( id )
-)  ENGINE=InnoDB DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci  ;
-
--- report instance
-INSERT INTO `civicrm_report_instance`
-    (title, report_id, description, permission, form_values)
-VALUES
-    ('{ts escape="sql"}Constituent Report (Summary){/ts}',      'contact/summary',          'Provides a list of address and telephone information for constituent records in your system.',     'administer CiviCRM',       '{literal}a:21:{s:6:"fields"#a:4:{s:12:"display_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: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:18:"administer CiviCRM"#s:6:"groups"#s:0:""#}{/literal}'),
-    ('{ts escape="sql"}Constituent Report (Detail){/ts}',       'contact/detail',           'Provides contact-related information on contributions, memberships, events and activities.',       'administer CiviCRM',       '{literal}a:15:{s:6:"fields"#a:18:{s:12:"display_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:20:"contribution_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: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: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:"display_name_op"#s:3:"has"#s:18:"display_name_value"#s:0:""#s:6:"gid_op"#s:2:"in"#s:9:"gid_value"#a: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:18:"administer CiviCRM"#s:6:"groups"#s:0:""#}{/literal}'),
-    ('{ts escape="sql"}Donor Report (Summary){/ts}',            'contribute/summary',       'Shows contribution statistics by month / week / year .. country / state .. type.',                 'access CiviContribute',    '{literal}a:37:{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"#a:3:{s:1:"M"#s:0:""#s:1:"d"#s:0:""#s:1:"Y"#s:0:""#}s:15:"receive_date_to"#a:3:{s:1:"M"#s:0:""#s:1:"d"#s:0:""#s:1:"Y"#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: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: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:""#}{/literal}'),
-    ('{ts escape="sql"}Donor Report (Detail){/ts}',             'contribute/detail',        'Lists detailed contribution(s) for one / all contacts. Contribution summary report points to this report for specific details.',               'access CiviContribute', '{literal}a:30:{s:6:"fields"#a:6:{s:12:"display_name"#s:1:"1"#s:5:"email"#s:1:"1"#s:5:"phone"#s:1:"1"#s:10:"country_id"#s:1:"1"#s:12:"total_amount"#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:"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"#a:3:{s:1:"M"#s:0:""#s:1:"d"#s:0:""#s:1:"Y"#s:0:""#}s:15:"receive_date_to"#a:3:{s:1:"M"#s:0:""#s:1:"d"#s:0:""#s:1:"Y"#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: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:11:"description"#s:126:"Lists detailed contribution(s) for one / all contacts. Contribution summary report points to this report for specific 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:""#}{/literal}'),
-    ('{ts escape="sql"}Donation Summary Report (Repeat){/ts}',  'contribute/repeat',        'Given two date ranges, shows contacts (and their contributions) who contributed in both the date ranges with percentage increase / decrease.', 'access CiviContribute', '{literal}a:26:{s:6:"fields"#a:3:{s:12:"display_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"#a:3:{s:1:"M"#s:0:""#s:1:"d"#s:0:""#s:1:"Y"#s:0:""#}s:16:"receive_date1_to"#a:3:{s:1:"M"#s:0:""#s:1:"d"#s:0:""#s:1:"Y"#s:0:""#}s:22:"receive_date2_relative"#s:9:"this.year"#s:18:"receive_date2_from"#a:3:{s:1:"M"#s:0:""#s:1:"d"#s:0:""#s:1:"Y"#s:0:""#}s:16:"receive_date2_to"#a:3:{s:1:"M"#s:0:""#s:1:"d"#s:0:""#s:1:"Y"#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: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:""#}{/literal}'),
-    ('{ts escape="sql"}SYBUNT Report{/ts}',                     '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', '{literal}a:15:{s:6:"fields"#a:3:{s:12:"display_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:"2009"#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: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:""#}{/literal}'),
-    ('{ts escape="sql"}LYBUNT Report{/ts}',                     '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', '{literal}a:16:{s:6:"fields"#a:3:{s:12:"display_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:"2009"#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: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:""#}{/literal}'),
-    ('{ts escape="sql"}Soft Credit Report{/ts}',                'contribute/softcredit',    'Soft Credit details.',                                     'access CiviContribute',    '{literal}a:20:{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:12:"total_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"#a:3:{s:1:"M"#s:0:""#s:1:"d"#s:0:""#s:1:"Y"#s:0:""#}s:15:"receive_date_to"#a:3:{s:1:"M"#s:0:""#s:1:"d"#s:0:""#s:1:"Y"#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: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: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:""#}{/literal}'),
-    ('{ts escape="sql"}Membership Report (Summary){/ts}',       'member/summary',           'Provides a summary of memberships by type and join date.', 'access CiviMember',        '{literal}a:19:{s:6:"fields"#a:2:{s:18:"membership_type_id"#s:1:"1"#s:12:"total_amount"#s:1:"1"#}s:18:"join_date_relative"#s:1:"0"#s:14:"join_date_from"#a:3:{s:1:"M"#s:0:""#s:1:"d"#s:0:""#s:1:"Y"#s:0:""#}s:12:"join_date_to"#a:3:{s:1:"M"#s:0:""#s:1:"d"#s:0:""#s:1:"Y"#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:1:{i:0#s:1:"1"#}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:6:"charts"#s:0:""#s:7:"options"#N#}{/literal}'),
-    ('{ts escape="sql"}Membership Report (Detail){/ts}',        'member/detail',            'Provides a list of members along with their membership status and membership details (Join Date, Start Date, End Date).',  'access CiviMember', '{literal}a:22:{s:6:"fields"#a:5:{s:12:"display_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:18:"join_date_relative"#s:1:"0"#s:14:"join_date_from"#a:3:{s:1:"M"#s:0:""#s:1:"d"#s:0:""#s:1:"Y"#s:0:""#}s:12:"join_date_to"#a:3:{s:1:"M"#s:0:""#s:1:"d"#s:0:""#s:1:"Y"#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: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:6:"groups"#s:0:""#}{/literal}'),
-    ('{ts escape="sql"}Membership Report (Lapsed){/ts}',        'member/lapse',             'Provides a list of memberships that lapsed or will lapse before the date you specify.',                                    'access CiviMember', '{literal}a:14:{s:6:"fields"#a:5:{s:12:"display_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:"gid_op"#s:2:"in"#s:9:"gid_value"#a:0:{}s:28:"membership_end_date_relative"#s:1:"0"#s:24:"membership_end_date_from"#a:3:{s:1:"M"#s:0:""#s:1:"d"#s:0:""#s:1:"Y"#s:0:""#}s:22:"membership_end_date_to"#a:3:{s:1:"M"#s:0:""#s:1:"d"#s:0:""#s:1:"Y"#s:0:""#}s:8:"grpid_op"#s:2:"in"#s:11:"grpid_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:6:"groups"#s:0:""#}{/literal}'),
-    ('{ts escape="sql"}Event Participant Report (List){/ts}',   'event/participantListing', 'Provides lists of participants for an event.', 'access CiviEvent', '{literal}a:24:{s:6:"fields"#a:4:{s:12:"display_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"#a:3:{s:1:"M"#s:0:""#s:1:"d"#s:0:""#s:1:"Y"#s:0:""#}s:28:"participant_register_date_to"#a:3:{s:1:"M"#s:0:""#s:1:"d"#s:0:""#s:1:"Y"#s:0:""#}s:6:"eid_op"#s:2:"in"#s:9:"eid_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#}{/literal}'),
-    ('{ts escape="sql"}Event Income Report (Summary){/ts}',     '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', '{literal}a:17:{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"#a:3:{s:1:"M"#s:0:""#s:1:"d"#s:0:""#s:1:"Y"#s:0:""#}s:19:"event_start_date_to"#a:3:{s:1:"M"#s:0:""#s:1:"d"#s:0:""#s:1:"Y"#s:0:""#}s:23:"event_end_date_relative"#s:1:"0"#s:19:"event_end_date_from"#a:3:{s:1:"M"#s:0:""#s:1:"d"#s:0:""#s:1:"Y"#s:0:""#}s:17:"event_end_date_to"#a:3:{s:1:"M"#s:0:""#s:1:"d"#s:0:""#s:1:"Y"#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:""#}{/literal}'),
-    ('{ts escape="sql"}Event Income Report (Detail){/ts}',      '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', '{literal}a:7:{s:5:"id_op"#s:2:"in"#s:8:"id_value"#a:3:{i:0#i:1#i:1#i:3#i:2#i:2#}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"#}{/literal}'),
-    ('{ts escape="sql"}Attendee List{/ts}',                     'event/participantListing', 'Provides lists of event attendees.', 'access CiviEvent', '{literal}a:24:{s:6:"fields"#a:4:{s:12:"display_name"#s:1:"1"#s:14:"participant_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:1:{i:0#s:1:"1"#}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"#a:3:{s:1:"M"#s:0:""#s:1:"d"#s:0:""#s:1:"Y"#s:0:""#}s:28:"participant_register_date_to"#a:3:{s:1:"M"#s:0:""#s:1:"d"#s:0:""#s:1:"Y"#s:0:""#}s:6:"eid_op"#s:2:"in"#s:9:"eid_value"#a:0:{}s:16:"blank_column_end"#s:1:"1"#s:11:"description"#s:34:"Provides lists of event attendees."#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#}{/literal}');
\ No newline at end of file
diff --git a/CRM/Upgrade/Incremental/sql/2.2.alpha1.mysql.tpl b/CRM/Upgrade/Incremental/sql/2.2.alpha1.mysql.tpl
deleted file mode 100644 (file)
index 7b4159e..0000000
+++ /dev/null
@@ -1,684 +0,0 @@
--- /************************************************************************
--- *
--- * MySQL Script for civicrm database/tables - upgradation from 2.1 -> 2.2
--- *
--- *************************************************************************/
-
--- Please add script for all the schema / fixed-data related modifications to
--- this sql script as you resolve 2.2 issues. Include the issue number which
--- is the source of the change, as part of the comment.
-
--- fix version column first
-ALTER TABLE `civicrm_domain`
-  MODIFY version varchar(32) COMMENT 'The civicrm version this instance is running';
-
--- make the register_by_id cascade in civicrm_participant
-
-ALTER TABLE `civicrm_participant`
-   DROP FOREIGN KEY `FK_civicrm_participant_registered_by_id`;
-ALTER TABLE `civicrm_participant`
-    ADD CONSTRAINT `FK_civicrm_participant_registered_by_id` FOREIGN KEY (`registered_by_id`) REFERENCES `civicrm_participant` (`id`) ON DELETE CASCADE;
-
-
--- merge civicrm_event_page to civicrm_event
-
-ALTER TABLE `civicrm_event`
-  {if $multilingual}
-    {foreach from=$locales item=locale}
-      ADD `intro_text_{$locale}` text collate utf8_unicode_ci,
-      ADD `footer_text_{$locale}` text collate utf8_unicode_ci,
-      ADD `confirm_title_{$locale}` varchar(255) collate utf8_unicode_ci default NULL,
-      ADD `confirm_text_{$locale}` text collate utf8_unicode_ci,
-      ADD `confirm_footer_text_{$locale}` text collate utf8_unicode_ci,
-      ADD `confirm_email_text_{$locale}` text collate utf8_unicode_ci,
-      ADD `confirm_from_name_{$locale}` varchar(255) collate utf8_unicode_ci default NULL,
-      ADD `thankyou_title_{$locale}` varchar(255) collate utf8_unicode_ci default NULL,
-      ADD `thankyou_text_{$locale}` text collate utf8_unicode_ci,
-      ADD `thankyou_footer_text_{$locale}` text collate utf8_unicode_ci,
-      ADD `pay_later_text_{$locale}` text collate utf8_unicode_ci,
-      ADD `pay_later_receipt_{$locale}` text collate utf8_unicode_ci,
-    {/foreach}
-  {else}
-    ADD `intro_text` text collate utf8_unicode_ci COMMENT 'Introductory message for Event Registration page. Text and html allowed. Displayed at the top of Event Registration form.',
-    ADD `footer_text` text collate utf8_unicode_ci COMMENT 'Footer message for Event Registration page. Text and html allowed. Displayed at the bottom of Event Registration form.',
-    ADD `confirm_title` varchar(255) collate utf8_unicode_ci default NULL COMMENT 'Title for Confirmation page.',
-    ADD `confirm_text` text collate utf8_unicode_ci COMMENT 'Introductory message for Event Registration page. Text and html allowed. Displayed at the top of Event Registration form.',
-    ADD `confirm_footer_text` text collate utf8_unicode_ci COMMENT 'Footer message for Event Registration page. Text and html allowed. Displayed at the bottom of Event Registration form.',
-    ADD `confirm_email_text` text collate utf8_unicode_ci COMMENT 'text to include above standard event info on confirmation email. emails are text-only, so do not allow html for now',
-    ADD `confirm_from_name` varchar(255) collate utf8_unicode_ci default NULL COMMENT 'FROM email name used for confirmation emails.',
-    ADD `thankyou_title` varchar(255) collate utf8_unicode_ci default NULL COMMENT 'Title for ThankYou page.',
-    ADD `thankyou_text` text collate utf8_unicode_ci COMMENT 'ThankYou Text.',
-    ADD `thankyou_footer_text` text collate utf8_unicode_ci COMMENT 'Footer message.',
-    ADD `pay_later_text` text collate utf8_unicode_ci COMMENT 'The text displayed to the user in the main form',
-    ADD `pay_later_receipt` text collate utf8_unicode_ci COMMENT 'The receipt sent to the user instead of the normal receipt text',
-  {/if}
-   ADD `is_email_confirm` tinyint(4) default '0' COMMENT 'If true, confirmation is automatically emailed to contact on successful registration.',
-   ADD `confirm_from_email` varchar(255) collate utf8_unicode_ci default NULL COMMENT 'FROM email address used for confirmation emails.',
-   ADD `cc_confirm` varchar(255) collate utf8_unicode_ci default NULL COMMENT 'comma-separated list of email addresses to cc each time a confirmation is sent',
-   ADD `bcc_confirm` varchar(255) collate utf8_unicode_ci default NULL COMMENT 'comma-separated list of email addresses to bcc each time a confirmation is sent',
-   ADD `default_fee_id` int(10) unsigned default NULL COMMENT 'FK to civicrm_option_value.',
-   ADD `default_discount_id` int(10) unsigned default NULL COMMENT 'FK to civicrm_option_value.',
-   ADD `is_pay_later` tinyint(4) default '0' COMMENT 'if true - allows the user to send payment directly to the org later',
-   ADD `is_multiple_registrations` tinyint(4) default '0' COMMENT 'if true - allows the user to register multiple participants for event',
-   ALTER `max_participants`  DROP DEFAULT;
-
-UPDATE civicrm_event ce
-LEFT JOIN civicrm_event_page cp ON ce.id=cp.event_id
-SET
-  {if $multilingual}
-    {foreach from=$locales item=locale}
-      ce.intro_text_{$locale} = cp.intro_text_{$locale},
-      ce.footer_text_{$locale} = cp.footer_text_{$locale},
-      ce.confirm_title_{$locale} = cp.confirm_title_{$locale},
-      ce.confirm_text_{$locale} = cp.confirm_text_{$locale},
-      ce.confirm_footer_text_{$locale} = cp.confirm_footer_text_{$locale},
-      ce.confirm_email_text_{$locale} = cp.confirm_email_text_{$locale},
-      ce.confirm_from_name_{$locale} = cp.confirm_from_name_{$locale},
-      ce.thankyou_title_{$locale} = cp.thankyou_title_{$locale},
-      ce.thankyou_text_{$locale} = cp.thankyou_text_{$locale},
-      ce.thankyou_footer_text_{$locale} = cp.thankyou_footer_text_{$locale},
-      ce.pay_later_text_{$locale} = cp.pay_later_text_{$locale},
-      ce.pay_later_receipt_{$locale} = cp.pay_later_receipt_{$locale},
-    {/foreach}
-  {else}
-    ce.intro_text = cp.intro_text,
-    ce.footer_text = cp.footer_text,
-    ce.confirm_title = cp.confirm_title,
-    ce.confirm_text = cp.confirm_text,
-    ce.confirm_footer_text = cp.confirm_footer_text,
-    ce.confirm_email_text = cp.confirm_email_text,
-    ce.confirm_from_name = cp.confirm_from_name,
-    ce.thankyou_title = cp.thankyou_title,
-    ce.thankyou_text = cp.thankyou_text,
-    ce.thankyou_footer_text = cp.thankyou_footer_text,
-    ce.pay_later_text = cp.pay_later_text,
-    ce.pay_later_receipt = cp.pay_later_receipt,
-  {/if}
-    ce.is_email_confirm = cp.is_email_confirm,
-    ce.confirm_from_email = cp.confirm_from_email,
-    ce.cc_confirm = cp.cc_confirm,
-    ce.bcc_confirm = cp.bcc_confirm,
-    ce.default_fee_id = cp.default_fee_id,
-    ce.default_discount_id = cp.default_discount_id,
-    ce.is_pay_later = cp.is_pay_later,
-    ce.is_multiple_registrations = cp.is_multiple_registrations;
-
--- CRM-3391
--- Update table name in civicrm_option_group (Fee Level)
--- cleanup for unused option group
-
-DELETE og.* FROM civicrm_option_group og
- LEFT JOIN civicrm_event_page ep ON ep.id = SUBSTRING_INDEX( SUBSTRING( og.name, 27 ) , '.discount', 1)
- WHERE og.name LIKE 'civicrm_event_page.amount%' AND ep.id IS NULL;
-
-{foreach from =$eventFees item=ogid}
-
-  SELECT @option_group_id := id ,@event_page_id := SUBSTRING_INDEX( SUBSTRING( name, 27 ) , '.discount', 1 )
-    FROM civicrm_option_group WHERE `name` LIKE 'civicrm_event_page.amount%' LIMIT 1;
-
-  SELECT @event_id := ep.event_id FROM civicrm_event_page ep WHERE ep.id = @event_page_id;
-
-  UPDATE `civicrm_option_group`
-    SET `name` = REPLACE( name, CONCAT_WS('.', 'civicrm_event_page.amount', @event_page_id ), CONCAT_WS('.', 'civicrm_event.amount', @event_id ) )
-    WHERE `id` = @option_group_id;
-{/foreach}
-
--- Update table entity_table and entity_id civicrm_tell_friend
-UPDATE civicrm_tell_friend tf
-  SET tf.`entity_table` = 'civicrm_event',
-      tf.`entity_id` = (SELECT e.`event_id` FROM civicrm_event_page e WHERE e.`id` = tf.`entity_id`)
-  WHERE tf.`entity_table`='civicrm_event_page' ;
-
---CRM-4256
--- Update table name in civicrm_price_set_entity (Price Set)
-UPDATE civicrm_price_set_entity pse
-  SET pse.`entity_table`='civicrm_event',
-      pse.`entity_id` = (SELECT e.`event_id` FROM civicrm_event_page e WHERE e.`id` = pse.`entity_id`)
-  WHERE pse.`entity_table`='civicrm_event_page';
-
--- /*******************************************************
--- *
--- * Drop civicrm_event_page table
--- *
--- *******************************************************/
-
-DROP TABLE civicrm_event_page;
-
--- CRM-3546
-{if $multilingual}
-  INSERT INTO civicrm_option_group (name, {foreach from=$locales item=locale}description_{$locale},{/foreach} is_reserved, is_active) VALUES ('visibility', {foreach from=$locales item=locale}'Visibility',{/foreach} 0, 1);
-
-{else}
-  INSERT INTO civicrm_option_group (name, description, is_reserved, is_active) VALUES ('visibility', 'Visibility', 0, 1);
-{/if}
-
-SELECT @option_group_id_vis := max(id) from civicrm_option_group where name = 'visibility';
-
-{if $multilingual}
-  INSERT INTO civicrm_option_value
-    (option_group_id,      {foreach from=$locales item=locale}label_{$locale},{/foreach} value, name,     weight) VALUES
-    (@option_group_id_vis, {foreach from=$locales item=locale}'Public',{/foreach}        1,     'public', 1),
-    (@option_group_id_vis, {foreach from=$locales item=locale}'Admin',{/foreach}         2,     'admin',  2);
-{else}
-  INSERT INTO civicrm_option_value
-    (option_group_id,      label,    value, name,     weight) VALUES
-    (@option_group_id_vis, 'Public', 1,     'public', 1),
-    (@option_group_id_vis, 'Admin',  2,     'admin',  2);
-{/if}
-
-ALTER TABLE civicrm_option_value
-  ADD visibility_id int unsigned default NULL;
-
-
--- * A Personal Campaign Page Block stores admin configurable status options and rules
-
-CREATE TABLE civicrm_pcp_block (
-     id int unsigned NOT NULL AUTO_INCREMENT  COMMENT 'PCP block Id',
-     entity_table varchar(64)    ,
-     entity_id int unsigned NOT NULL   COMMENT 'FK to civicrm_contribution_page.id',
-     supporter_profile_id int unsigned   DEFAULT NULL COMMENT 'Does Personal Campaign Page require manual activation by administrator? (is inactive by default after setup)?',
-     is_approval_needed tinyint   DEFAULT NULL COMMENT 'Does Personal Campaign Page require manual activation by administrator? (is inactive by default after setup)?',
-     is_tellfriend_enabled tinyint   DEFAULT NULL COMMENT 'Does Personal Campaign Page allow using tell a friend?',
-     tellfriend_limit int unsigned   DEFAULT NULL COMMENT 'Maximum recipient fields allowed in tell a friend',
-     link_text varchar(255)   DEFAULT NULL COMMENT 'Link text for PCP.',
-     is_active tinyint   DEFAULT 1 COMMENT 'Is Personal Campaign Page Block enabled/active?',
-     PRIMARY KEY ( id ),
-     CONSTRAINT FK_civicrm_pcp_block_entity_id FOREIGN KEY (entity_id) REFERENCES civicrm_contribution_page(id)
-)  ENGINE=InnoDB DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci  ;
-
--- * civicrm_pcp
-
-CREATE TABLE civicrm_pcp (
-     id int unsigned NOT NULL AUTO_INCREMENT  COMMENT 'Personal Campaign Page ID',
-     contact_id int unsigned NOT NULL   COMMENT 'FK to Contact ID',
-     status_id int unsigned NOT NULL   ,
-     title varchar(255)   DEFAULT NULL ,
-     intro_text text   DEFAULT NULL ,
-     page_text text   DEFAULT NULL ,
-     donate_link_text varchar(255)   DEFAULT NULL ,
-     contribution_page_id int unsigned NOT NULL   COMMENT 'The Contribution Page which triggered this pcp',
-     is_thermometer int unsigned   DEFAULT 0 ,
-     is_honor_roll int unsigned   DEFAULT 0 ,
-     goal_amount decimal(20,2)    COMMENT 'Goal amount of this Personal Campaign Page.',
-     referer varchar(255)   DEFAULT NULL ,
-     is_active tinyint   DEFAULT 0 COMMENT 'Is Personal Campaign Page enabled/active?',
-     PRIMARY KEY ( id ),
-     CONSTRAINT FK_civicrm_pcp_contact_id FOREIGN KEY (contact_id) REFERENCES civicrm_contact(id) ON DELETE CASCADE,
-     CONSTRAINT FK_civicrm_pcp_contribution_page_id FOREIGN KEY (contribution_page_id) REFERENCES civicrm_contribution_page(id)
-)  ENGINE=InnoDB DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci  ;
-
--- * civicrm_contribution_soft
-
-CREATE TABLE civicrm_contribution_soft (
-     id int unsigned NOT NULL AUTO_INCREMENT  COMMENT 'Soft Contribution ID',
-     contribution_id int unsigned NOT NULL   COMMENT 'FK to contribution table.',
-     contact_id int unsigned NOT NULL   COMMENT 'FK to Contact ID',
-     amount decimal(20,2) NOT NULL   COMMENT 'Amount of this soft contribution.',
-     pcp_id int unsigned   DEFAULT NULL ,
-     pcp_display_in_roll tinyint   DEFAULT 0 ,
-     pcp_roll_nickname varchar(255)   DEFAULT NULL ,
-     pcp_personal_note varchar(255)   DEFAULT NULL ,
-     PRIMARY KEY ( id ) ,
-     INDEX index_id( pcp_id ) ,
-     CONSTRAINT FK_civicrm_contribution_soft_contribution_id FOREIGN KEY (contribution_id) REFERENCES civicrm_contribution(id) ON DELETE CASCADE,
-     CONSTRAINT FK_civicrm_contribution_soft_contact_id FOREIGN KEY (contact_id) REFERENCES civicrm_contact(id) ON DELETE CASCADE
-)  ENGINE=InnoDB DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci  ;
-
-
--- fixed for CRM-2105 Greeting Type
-{if $multilingual}
-  INSERT INTO civicrm_option_group (name, {foreach from=$locales item=locale}description_{$locale},{/foreach} is_reserved, is_active) VALUES ('greeting_type', {foreach from=$locales item=locale}'Greeting Type',{/foreach} 0, 1);
-{else}
-  INSERT INTO civicrm_option_group (name, description, is_reserved, is_active ) VALUES ('greeting_type', 'Greeting Type', 0, 1 );
-{/if}
-
-SELECT @option_group_id_gr  := max(id) from civicrm_option_group where name = 'greeting_type';
-
-{if $multilingual}
-  INSERT INTO civicrm_option_value
-    (option_group_id,     {foreach from=$locales item=locale}label_{$locale},{/foreach}                value, name,                           is_default, weight, is_reserved) VALUES
-    (@option_group_id_gr, {foreach from=$locales item=locale}'Dear [first]',{/foreach}                 1,     'Dear [first]',                 1,          1,      0),
-    (@option_group_id_gr, {foreach from=$locales item=locale}'Dear [prefix] [first] [last]',{/foreach} 2,     'Dear [prefix] [first] [last]', 0,          2,      0),
-    (@option_group_id_gr, {foreach from=$locales item=locale}'Dear [prefix] [last]',{/foreach}         3,     'Dear [prefix] [last]',         0,          3,      0),
-    (@option_group_id_gr, {foreach from=$locales item=locale}'Customized',{/foreach}                   4,     'Customized',                   0,          4,      1);
-{else}
-  INSERT INTO civicrm_option_value
-    (option_group_id,     label,                          value, name,                           is_default, weight, is_reserved) VALUES
-    (@option_group_id_gr, 'Dear [first]',                 1,     'Dear [first]',                 1,          1,      0),
-    (@option_group_id_gr, 'Dear [prefix] [first] [last]', 2,     'Dear [prefix] [first] [last]', 0,          2,      0),
-    (@option_group_id_gr, 'Dear [prefix] [last]',         3,     'Dear [prefix] [last]',         0,          3,      0),
-    (@option_group_id_gr, 'Customized',                   4,     'Customized',                   0,          4,      1);
-{/if}
-
-ALTER TABLE `civicrm_contact` ADD `greeting_type_id` int(10) unsigned NULL DEFAULT NULL AFTER greeting_type;
-
-SELECT @greetingvalue := value FROM civicrm_option_value, civicrm_option_group
-  WHERE civicrm_option_group.name = 'greeting_type' && civicrm_option_value.name = 'Dear [first]';
-UPDATE civicrm_contact SET greeting_type_id = @greetingvalue WHERE civicrm_contact.greeting_type = 'Informal';
-
-SELECT @greetingvalue := value FROM civicrm_option_value, civicrm_option_group
-  WHERE civicrm_option_group.name = 'greeting_type' && civicrm_option_value.name = 'Dear [prefix] [first] [last]';
-UPDATE civicrm_contact SET greeting_type_id = @greetingvalue WHERE civicrm_contact.greeting_type = 'Formal';
-
-SELECT @greetingvalue := value FROM civicrm_option_value, civicrm_option_group
-  WHERE civicrm_option_group.name = 'greeting_type' && civicrm_option_value.name = 'Dear [prefix] [last]';
-UPDATE civicrm_contact SET greeting_type_id = @greetingvalue WHERE civicrm_contact.greeting_type = 'Honorific';
-
-SELECT @greetingvalue := value FROM civicrm_option_value, civicrm_option_group
-  WHERE civicrm_option_group.name = 'greeting_type' && civicrm_option_value.name = 'Customized';
-UPDATE civicrm_contact SET greeting_type_id = @greetingvalue WHERE civicrm_contact.greeting_type = 'Custom';
-
-
-ALTER TABLE `civicrm_contact` DROP `greeting_type`;
-
-
--- Add 'Address Edit option IM  & Open ID
--- CRM- 3419
-
-SELECT @option_group_id_ao := max(id) from civicrm_option_group where name = 'address_options';
-
-{if $multilingual}
-  INSERT INTO civicrm_option_value
-    (option_group_id,     {foreach from=$locales item=locale}label_{$locale},{/foreach}      value, name,     weight, is_reserved) VALUES
-    (@option_group_id_ao, {foreach from=$locales item=locale}'Instant Messenger',{/foreach}  13,    'im',     13,     1),
-    (@option_group_id_ao, {foreach from=$locales item=locale}'OpenID',{/foreach}             14,    'openid', 14,     1);
-{else}
-  INSERT INTO civicrm_option_value
-    (option_group_id,     label,                value, name,     weight, is_reserved) VALUES
-    (@option_group_id_ao, 'Instant Messenger',  13,    'im',     13,     1),
-    (@option_group_id_ao, 'OpenID',             14,    'openid', 14,     1);
-{/if}
-
-UPDATE civicrm_preferences SET address_options  = CONCAT(address_options, '13\ 114\ 1');
-
-
--- * Fix for CRM-3248
-{if $multilingual}
-  INSERT INTO civicrm_option_group (name, {foreach from=$locales item=locale}description_{$locale},{/foreach} is_reserved, is_active ) VALUES ('phone_type', {foreach from=$locales item=locale}'Phone Type',{/foreach} 0, 1);
-{else}
-  INSERT INTO civicrm_option_group (name, description, is_reserved, is_active) VALUES ('phone_type', 'Phone Type', 0, 1);
-{/if}
-
-SELECT @option_group_id_pt := max(id) from civicrm_option_group where name = 'phone_type';
-
-{if $multilingual}
-  INSERT INTO civicrm_option_value
-    (option_group_id,     {foreach from=$locales item=locale}label_{$locale},{/foreach} value, name,        weight) VALUES
-    (@option_group_id_pt, {foreach from=$locales item=locale}'Phone',{/foreach}         1,     'Phone',     1),
-    (@option_group_id_pt, {foreach from=$locales item=locale}'Mobile',{/foreach}        2,     'Mobile',    2),
-    (@option_group_id_pt, {foreach from=$locales item=locale}'Fax',{/foreach}           3,     'Fax',       3),
-    (@option_group_id_pt, {foreach from=$locales item=locale}'Pager',{/foreach}         4,     'Pager',     4),
-    (@option_group_id_pt, {foreach from=$locales item=locale}'Voicemail',{/foreach}     5,     'Voicemail', 5);
-{else}
-  INSERT INTO civicrm_option_value
-    (option_group_id,     label,       value, name,        weight) VALUES
-    (@option_group_id_pt, 'Phone' ,    1,     'Phone',     1),
-    (@option_group_id_pt, 'Mobile',    2,     'Mobile',    2),
-    (@option_group_id_pt, 'Fax'   ,    3,     'Fax',       3),
-    (@option_group_id_pt, 'Pager' ,    4,     'Pager',     4),
-    (@option_group_id_pt, 'Voicemail', 5,     'Voicemail', 5);
-{/if}
-
-ALTER TABLE `civicrm_phone`         ADD `phone_type_id` int(10) unsigned NULL DEFAULT NULL AFTER phone_type;
-ALTER TABLE `civicrm_mapping_field` ADD `phone_type_id` int(10) unsigned NULL DEFAULT NULL AFTER phone_type;
-ALTER TABLE `civicrm_uf_field`      ADD `phone_type_id` int(10) unsigned NULL DEFAULT NULL AFTER phone_type;
-
-SELECT @phonevalue := value FROM civicrm_option_value, civicrm_option_group
-  WHERE civicrm_option_group.name = 'phone_type' && civicrm_option_value.name = 'Phone';
-UPDATE civicrm_phone         SET phone_type_id = @phonevalue WHERE civicrm_phone.phone_type         = 'Phone';
-UPDATE civicrm_mapping_field SET phone_type_id = @phonevalue WHERE civicrm_mapping_field.phone_type = 'Phone';
-UPDATE civicrm_uf_field      SET phone_type_id = @phonevalue WHERE civicrm_uf_field.phone_type      = 'Phone';
-
-SELECT @phonevalue := value FROM civicrm_option_value, civicrm_option_group
-  WHERE civicrm_option_group.name = 'phone_type' && civicrm_option_value.name = 'Mobile';
-UPDATE civicrm_phone         SET phone_type_id = @phonevalue WHERE civicrm_phone.phone_type         = 'Mobile';
-UPDATE civicrm_mapping_field SET phone_type_id = @phonevalue WHERE civicrm_mapping_field.phone_type = 'Mobile';
-UPDATE civicrm_uf_field      SET phone_type_id = @phonevalue WHERE civicrm_uf_field.phone_type      = 'Mobile';
-
-SELECT @phonevalue := value FROM civicrm_option_value, civicrm_option_group
-  WHERE civicrm_option_group.name = 'phone_type' && civicrm_option_value.name = 'Fax';
-UPDATE civicrm_phone         SET phone_type_id = @phonevalue WHERE civicrm_phone.phone_type         = 'Fax';
-UPDATE civicrm_mapping_field SET phone_type_id = @phonevalue WHERE civicrm_mapping_field.phone_type = 'Fax';
-UPDATE civicrm_uf_field      SET phone_type_id = @phonevalue WHERE civicrm_uf_field.phone_type      = 'Fax';
-
-SELECT @phonevalue := value FROM civicrm_option_value, civicrm_option_group
-  WHERE civicrm_option_group.name = 'phone_type' && civicrm_option_value.name = 'Pager';
-UPDATE civicrm_phone         SET phone_type_id = @phonevalue WHERE civicrm_phone.phone_type         = 'Pager';
-UPDATE civicrm_mapping_field SET phone_type_id = @phonevalue WHERE civicrm_mapping_field.phone_type = 'Pager';
-UPDATE civicrm_uf_field      SET phone_type_id = @phonevalue WHERE civicrm_uf_field.phone_type      = 'Pager';
-
-ALTER TABLE `civicrm_phone`         DROP `phone_type`;
-ALTER TABLE `civicrm_mapping_field` DROP `phone_type`;
-ALTER TABLE `civicrm_uf_field`      DROP `phone_type`;
-
--- custom Group table
-ALTER TABLE civicrm_custom_group
-  ADD  min_multiple int unsigned   DEFAULT 0 COMMENT 'minimum number of multiple records (typically 0?)',
-  ADD  max_multiple int unsigned   DEFAULT 0 COMMENT 'maximum number of multiple records, if 0 - no max';
-
-ALTER TABLE civicrm_custom_field
-  ADD text_length int unsigned    COMMENT 'field length if alphanumeric' AFTER options_per_line;
-
--- need to add update statement for site preference options to enable
--- preferences for contact_type / groups / tags, CRM-2794
-
-SELECT @option_group_id_aso  := max(id) from civicrm_option_group where name = 'advanced_search_options';
-
-{if $multilingual}
-  INSERT INTO civicrm_option_value
-    (option_group_id,      {foreach from=$locales item=locale}label_{$locale},{/foreach} value, name,          weight) VALUES
-    (@option_group_id_aso, {foreach from=$locales item=locale}'Contact Type',{/foreach}  16,    'contactType', 16),
-    (@option_group_id_aso, {foreach from=$locales item=locale}'Groups',{/foreach}        17,    'groups',      17),
-    (@option_group_id_aso, {foreach from=$locales item=locale}'Tags',{/foreach}          18,    'tags',        18);
-{else}
-  INSERT INTO civicrm_option_value
-    (option_group_id,      label,          value, name,          weight) VALUES
-    (@option_group_id_aso, 'Contact Type', 16,    'contactType', 16),
-    (@option_group_id_aso, 'Groups',       17,    'groups',      17),
-    (@option_group_id_aso, 'Tags',         18,    'tags',        18);
-{/if}
-
-
-UPDATE civicrm_preferences SET advanced_search_options = CONCAT(advanced_search_options, '16\ 117\ 118\ 1');
-
-ALTER TABLE civicrm_preferences
-  ADD mailing_backend text COMMENT 'Smtp Backend configuration.';
-
-
--- /**
---  * add new mailing fields
---  * CRM-3599 (created_id, scheduled_id)
---  * CRM-3598 (search_id, search_args)
--- **/
-
-ALTER TABLE civicrm_mailing
-  ADD override_verp tinyint   DEFAULT 0 AFTER msg_template_id,
-  ADD created_id int unsigned NULL DEFAULT NULL AFTER override_verp,
-  ADD scheduled_id int unsigned NULL DEFAULT NULL AFTER created_id,
-  ADD is_archived tinyint   DEFAULT 0 COMMENT 'Is this mailing archived?',
-  ADD CONSTRAINT FK_civicrm_mailing_created_id FOREIGN KEY (created_id) REFERENCES civicrm_contact(id) ON DELETE CASCADE,
-  ADD CONSTRAINT FK_civicrm_mailing_scheduled_id FOREIGN KEY (scheduled_id) REFERENCES civicrm_contact(id) ON DELETE CASCADE;
-
-ALTER TABLE civicrm_mailing_group
-  ADD search_id int AFTER entity_id,
-  ADD search_args text AFTER search_id,
-  MODIFY `group_type` enum('Include','Exclude','Base') NULL DEFAULT NULL;
-
-
--- CRM-3609 (used IGNORE as 2.1 post beta5 should have this already)
-
-INSERT IGNORE INTO civicrm_state_province (id, country_id, abbreviation, name) VALUES (5217, 1020, "BRU", "Brussels");
-
--- ======== CiviCase Related Upgrade ==========
--- Insert the CiviCase Component
-INSERT INTO `civicrm_component` ( `name`, `namespace`) VALUES ( 'CiviCase','CRM_Case' );
-SELECT @caseCompId := id FROM `civicrm_component` where `name` like 'CiviCase';
-
--- CRM-3667 case mapping
-SELECT @option_group_id_mt := max(id) from civicrm_option_group where name = 'mapping_type';
-
-{if $multilingual}
-  INSERT INTO civicrm_option_value
-    (option_group_id,     {foreach from=$locales item=locale}label_{$locale},{/foreach} value, name,          weight, is_reserved) VALUES
-    (@option_group_id_mt, {foreach from=$locales item=locale}'Export Case',{/foreach}   12,    'Export Case', 12,     1);
-{else}
-  INSERT INTO civicrm_option_value
-    (option_group_id,     label,         value, name,          weight, is_reserved) VALUES
-    (@option_group_id_mt, 'Export Case', 12,    'Export Case', 12,     1);
-{/if}
-
--- * Case Status - Set names for Open and Closed and add Urgent status
-SELECT @csgId := max(id) FROM civicrm_option_group WHERE name = 'case_status';
-
-{if $multilingual}
-  {foreach from=$locales item=locale}
-    UPDATE civicrm_option_value SET name = 'Open'   WHERE option_group_id = @csgId AND label_{$locale} = 'Ongoing';
-    UPDATE civicrm_option_value SET name = 'Closed' WHERE option_group_id = @csgId AND label_{$locale} = 'Resolved';
-  {/foreach}
-  INSERT INTO civicrm_option_value
-    (option_group_id, {foreach from=$locales item=locale}label_{$locale},{/foreach} value, name,     weight, is_reserved) VALUES
-    (@csgId,          {foreach from=$locales item=locale}'Urgent',{/foreach}        3,     'Urgent', 3,      1);
-{else}
-  UPDATE civicrm_option_value SET name = 'Open'   WHERE option_group_id = @csgId AND label = 'Ongoing';
-  UPDATE civicrm_option_value SET name = 'Closed' WHERE option_group_id = @csgId AND label = 'Resolved';
-  INSERT INTO civicrm_option_value
-    (option_group_id, label,    value, name,     weight, is_reserved) VALUES
-    (@csgId,          'Urgent', 3,     'Urgent', 3,      1);
-{/if}
-
--- Relationship Types for cases
-INSERT INTO civicrm_relationship_type( name_a_b, name_b_a, description, contact_type_a, contact_type_b, is_reserved )
-    VALUES( 'Case Coordinator is', 'Case Coordinator', 'Case Coordinator', 'Individual', 'Individual', 0 );
-
-INSERT INTO civicrm_relationship_type( name_a_b, name_b_a, description, contact_type_a, contact_type_b, is_reserved )
-    VALUES( 'Supervised by', 'Supervisor', 'Immediate workplace supervisor', 'Individual', 'Individual', 0 );
-
--- Activity Types for cases
-SELECT @option_group_id_activity_type        := max(id) from civicrm_option_group where name = 'activity_type';
-SELECT @max_val := MAX(ROUND(op.value)) FROM civicrm_option_value op WHERE op.option_group_id  = @option_group_id_activity_type;
-
-{if $multilingual}
-  INSERT INTO civicrm_option_value
-    (option_group_id,                {foreach from=$locales item=locale}label_{$locale},{/foreach}      value,                           name,                 weight,                          component_id) VALUES
-    (@option_group_id_activity_type, {foreach from=$locales item=locale}'Open Case',{/foreach}          (SELECT @max_val := @max_val+1), 'Open Case',          (SELECT @max_val := @max_val+1), @caseCompId),
-    (@option_group_id_activity_type, {foreach from=$locales item=locale}'Follow up',{/foreach}          (SELECT @max_val := @max_val+1), 'Follow up',          (SELECT @max_val := @max_val+1), @caseCompId),
-    (@option_group_id_activity_type, {foreach from=$locales item=locale}'Change Case Type',{/foreach}   (SELECT @max_val := @max_val+1), 'Change Case Type',   (SELECT @max_val := @max_val+1), @caseCompId),
-    (@option_group_id_activity_type, {foreach from=$locales item=locale}'Change Case Status',{/foreach} (SELECT @max_val := @max_val+1), 'Change Case Status', (SELECT @max_val := @max_val+1), @caseCompId),
-    (@option_group_id_activity_type, {foreach from=$locales item=locale}'Close Case',{/foreach}         (SELECT @max_val := @max_val+1), 'Close Case',         (SELECT @max_val := @max_val+1), @caseCompId);
-{else}
-  INSERT INTO civicrm_option_value
-    (option_group_id,                label,                value,                           name,                 weight,                          component_id) VALUES
-    (@option_group_id_activity_type, 'Open Case',          (SELECT @max_val := @max_val+1), 'Open Case',          (SELECT @max_val := @max_val+1), @caseCompId),
-    (@option_group_id_activity_type, 'Follow up',          (SELECT @max_val := @max_val+1), 'Follow up',          (SELECT @max_val := @max_val+1), @caseCompId),
-    (@option_group_id_activity_type, 'Change Case Type',   (SELECT @max_val := @max_val+1), 'Change Case Type',   (SELECT @max_val := @max_val+1), @caseCompId),
-    (@option_group_id_activity_type, 'Change Case Status', (SELECT @max_val := @max_val+1), 'Change Case Status', (SELECT @max_val := @max_val+1), @caseCompId),
-    (@option_group_id_activity_type, 'Close Case',         (SELECT @max_val := @max_val+1), 'Close Case',         (SELECT @max_val := @max_val+1), @caseCompId);
-{/if}
-
--- Encounter Medium Option Values for Case Activities
-{if $multilingual}
-  INSERT INTO civicrm_option_group
-    (name, {foreach from=$locales item=locale}label_{$locale}, description_{$locale},{/foreach} is_reserved, is_active)
-    VALUES
-    ('encounter_medium', {foreach from=$locales item=locale}'Encounter Medium', 'Encounter medium for case activities (e.g. In Person, By Phone, etc.)',{/foreach} 1, 1 );
-  SELECT @option_group_id_medium := max(id) FROM civicrm_option_group WHERE name = 'encounter_medium';
-  INSERT INTO civicrm_option_value
-    (option_group_id,         {foreach from=$locales item=locale}label_{$locale},{/foreach} value, name,          is_default, weight, is_reserved) VALUES
-    (@option_group_id_medium, {foreach from=$locales item=locale}'In Person',{/foreach}     1,     'in_person',   0,          1,      1),
-    (@option_group_id_medium, {foreach from=$locales item=locale}'Phone',{/foreach}         2,     'phone',       1,          2,      1),
-    (@option_group_id_medium, {foreach from=$locales item=locale}'Email',{/foreach}         3,     'email',       0,          3,      1),
-    (@option_group_id_medium, {foreach from=$locales item=locale}'Fax',{/foreach}           4,     'fax',         0,          4,      1),
-    (@option_group_id_medium, {foreach from=$locales item=locale}'Letter Mail',{/foreach}   5,     'letter_mail', 0,          5,      1);
-{else}
-  INSERT INTO civicrm_option_group
-    (name, label, description, is_reserved, is_active )
-    VALUES
-    ('encounter_medium', 'Encounter Medium', 'Encounter medium for case activities (e.g. In Person, By Phone, etc.)', 1, 1);
-  SELECT @option_group_id_medium := max(id) FROM civicrm_option_group WHERE name = 'encounter_medium';
-  INSERT INTO civicrm_option_value
-    (option_group_id,         label,         value, name,          is_default, weight, is_reserved) VALUES
-    (@option_group_id_medium, 'In Person',   1,     'in_person',   0,          1,      1),
-    (@option_group_id_medium, 'Phone',       2,     'phone',       1,          2,      1),
-    (@option_group_id_medium, 'Email',       3,     'email',       0,          3,      1),
-    (@option_group_id_medium, 'Fax',         4,     'fax',         0,          4,      1),
-    (@option_group_id_medium, 'Letter Mail', 5,     'letter_mail', 0,          5,      1);
-{/if}
-
--- CRM-3573
--- added column case_id in civicrm_relationship table.
--- added columns medium, is_auto, relationship_id fileds in civicrm_activity.
--- added value 'Case' in civicrm_custom_group.
-
-ALTER TABLE `civicrm_relationship`
-  ADD `case_id` int(10) unsigned DEFAULT NULL COMMENT 'FK to civicrm_case' AFTER is_permission_b_a,
-  ADD CONSTRAINT FK_civicrm_case_id FOREIGN KEY (case_id) REFERENCES civicrm_case(id) ON DELETE CASCADE;
-
-ALTER TABLE `civicrm_case`
- ADD `is_deleted` tinyint   DEFAULT 0;
-
-ALTER TABLE `civicrm_activity`
-  ADD `medium_id` int(10) unsigned default NULL COMMENT 'Activity Medium, Implicit FK to civicrm_option_value where option_group = activity_medium.',
-  ADD `is_auto` tinyint(4) default '0' COMMENT 'if true - activity is auto populated while case review',
-  ADD `relationship_id` int(10) unsigned default NULL COMMENT 'FK to Relationship ID',
-  ADD `is_current_revision` tinyint   DEFAULT 1 ,
-  ADD `original_id` int unsigned    COMMENT 'Activity ID of the first activity record in versioning chain.',
-  ADD `is_deleted` tinyint   DEFAULT 0,
-  ADD CONSTRAINT FK_civicrm_activity_original_id FOREIGN KEY (original_id) REFERENCES civicrm_activity(id) ON DELETE CASCADE,
-  ADD CONSTRAINT FK_civicrm_relationship_id FOREIGN KEY (relationship_id) REFERENCES civicrm_relationship(id) ON DELETE SET NULL;
-
-ALTER TABLE `civicrm_custom_group`
-  MODIFY `extends` enum('Contact','Individual','Household','Organization','Location','Address','Contribution','Activity','Relationship','Group','Membership','Participant','Event','Grant','Pledge','Case') collate utf8_unicode_ci default 'Contact' COMMENT 'Type of object this group extends (can add other options later e.g. contact_address, etc.).';
-
--- schema change CRM-3337
-ALTER TABLE `civicrm_custom_group` CHANGE `extends_entity_column_name` `extends_entity_column_id` INT( 10 ) UNSIGNED NULL DEFAULT NULL COMMENT 'reference to option value';
-
--- added new column 'skipBreadcrumb' to civicrm_menu. CRM-2699.
-
-ALTER TABLE `civicrm_menu`
-  ADD `skipBreadcrumb` tinyint(4) COMMENT 'skip this url being exposed to breadcrumb';
-
--- CRM-3709
-CREATE INDEX index_option_group_id_name ON civicrm_option_value( `option_group_id` , `name` );
-
--- fix constraint
-ALTER TABLE `civicrm_group_nesting`
-    DROP FOREIGN KEY `FK_civicrm_group_nesting_child_group_id`;
-ALTER TABLE `civicrm_group_nesting`
-    ADD CONSTRAINT `FK_civicrm_group_nesting_child_group_id` FOREIGN KEY (`child_group_id`) REFERENCES `civicrm_group` (`id`) ON DELETE CASCADE;
-
-ALTER TABLE `civicrm_group`
- ADD `is_hidden` tinyint   DEFAULT 0 COMMENT 'Is this group hidden?';
-
--- New field for CRM-3494 (billing name and address for contributions)
-ALTER TABLE `civicrm_contribution`
-  ADD `address_id` int(10) unsigned default NULL COMMENT 'Conditional foreign key to civicrm_address.id. We insert an address record for each contribution when we have associated billing name and address data.',
-  ADD CONSTRAINT FK_civicrm_contribution_address_id FOREIGN KEY (address_id) REFERENCES civicrm_address(id) ON DELETE SET NULL;
-
--- Removing solicitor_id as per CRM-3917
-INSERT INTO civicrm_contribution_soft (contribution_id, contact_id, amount)
-SELECT id, solicitor_id, total_amount FROM civicrm_contribution
-WHERE solicitor_id IS NOT NULL;
-
-ALTER TABLE `civicrm_contribution`
--- Added check_number as per CRM-3923
-  ADD `check_number` varchar(255) collate utf8_unicode_ci default NULL,
-  DROP FOREIGN KEY `FK_civicrm_contribution_solicitor_id`;
-
-DROP INDEX FK_civicrm_contribution_solicitor_id ON civicrm_contribution;
-ALTER TABLE civicrm_contribution DROP solicitor_id;
-
--- Make sure is_billing flag is true for all address records where location type is Billing
--- Using hard-coded location_type_id since we don't have a non-translatable name for location types
-UPDATE `civicrm_address`
-SET `is_billing` = 1
-WHERE `location_type_id` = 5;
-
--- civicrm_note constraint fix
-ALTER TABLE civicrm_note
-    DROP FOREIGN KEY `FK_civicrm_note_contact_id`;
-ALTER TABLE `civicrm_note`
-    ADD CONSTRAINT `FK_civicrm_note_contact_id` FOREIGN KEY (`contact_id`) REFERENCES `civicrm_contact` (`id`) ON DELETE SET NULL;
-
--- CRM-3860
-ALTER TABLE civicrm_contact
-    ADD api_key varchar(32);
-CREATE INDEX index_api_key ON civicrm_contact(api_key);
-
--- CRM-3863
-SELECT @piOpt := id from civicrm_option_group where name = 'payment_instrument';
-UPDATE civicrm_option_value SET is_reserved = 1 WHERE option_group_id = @piOpt AND name = 'Credit Card';
-
--- CRM-3851: migrate civicrm_domain.email_domain and .email_return_path to civicrm_mail_settings
-SELECT email_domain, email_return_path FROM civicrm_domain LIMIT 1 INTO @domain, @return_path;
-
-
-CREATE TABLE `civicrm_mail_settings` (
-  `id` int(10) unsigned NOT NULL auto_increment COMMENT 'primary key',
-  `name` varchar(255) collate utf8_unicode_ci default NULL COMMENT 'name of this group of settings',
-  `is_default` tinyint(4) default NULL COMMENT 'whether this is the default set of settings for this domain',
-  `domain` varchar(255) collate utf8_unicode_ci default NULL COMMENT 'email address domain (the part after @)',
-  `localpart` varchar(255) collate utf8_unicode_ci default NULL COMMENT 'optional local part (like civimail+ for addresses like civimail+s.1.2@example.com)',
-  `return_path` varchar(255) collate utf8_unicode_ci default NULL COMMENT 'contents of the Return-Path header',
-  `protocol` varchar(255) collate utf8_unicode_ci default NULL COMMENT 'name of the protocol to use for polling (like IMAP, POP3 or Maildir)',
-  `server` varchar(255) collate utf8_unicode_ci default NULL COMMENT 'server to use when polling',
-  `port` int(10) unsigned default NULL COMMENT 'port to use when polling',
-  `username` varchar(255) collate utf8_unicode_ci default NULL COMMENT 'username to use when polling',
-  `password` varchar(255) collate utf8_unicode_ci default NULL COMMENT 'password to use when polling',
-  `is_ssl` tinyint(4) default NULL COMMENT 'whether to use SSL or not',
-  `source` varchar(255) collate utf8_unicode_ci default NULL COMMENT 'folder to poll from when using IMAP, path to poll from when using Maildir, etc.',
-  PRIMARY KEY  (`id`)
-) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-
-INSERT INTO civicrm_mail_settings (name, is_default, domain, return_path) VALUES ('default', true, @domain, @return_path);
-ALTER TABLE civicrm_domain DROP email_domain;
-ALTER TABLE civicrm_domain DROP email_return_path;
-
--- CRM-4258, needs to be done before we add a unique index
-delete t1 from civicrm_entity_tag t1 inner join civicrm_entity_tag t2 where t1.tag_id = t2.tag_id AND t1.contact_id = t2.contact_id AND t1.id > t2.id;
-
--- CRM-3696
-ALTER TABLE civicrm_entity_tag
-  ADD UNIQUE UI_contact_id_tag_id ( contact_id, tag_id );
-
-
-SELECT @option_group_id_ps := id from civicrm_option_group where name = 'participant_status';
-UPDATE civicrm_option_value
-   SET visibility_id = CASE name
-                              WHEN 'Registered' THEN 1
-                              ELSE 2
-                          END
-   WHERE option_group_id = @option_group_id_ps;
-
--- CRM-3487
-ALTER TABLE civicrm_uf_group DROP collapse_display;
-
-
--- FIXED FOR CRM-3772
--- upgrading civicrm_country table for region id by taking reference of civicrm_worldregion
-
--- Europe and Central Asia
-
-SELECT @region_id   := max(id) from civicrm_worldregion where name = "Europe and Central Asia";
-
-UPDATE `civicrm_country` SET `region_id` = @region_id  WHERE `civicrm_country`.`iso_code` IN( "AL","AD","AQ","AT","AZ","BY","BE","BA","BV","BG","HR","CY","CZ","DK","EE","FO","FI","FR","TF","DE","GI","GR","VA","HU","IS","IE","IT","KZ","KG","LV","LI","LT","LU","MK","MT","MD","MC","NL","NO","PL","PT","RO","RU","SM","SK","SI","ES","SJ","SE","CH","TR","TM","UA","GB","UZ","CS","AX","RS","ME" ) AND `civicrm_country`.`region_id` IS null;
-
--- America South, Central, North and Carribean
-
-SELECT @region_id   := max(id) from civicrm_worldregion where name = "America South, Central, North and Carribean";
-
-UPDATE `civicrm_country` SET `region_id` = @region_id  WHERE `civicrm_country`.`iso_code` IN( "AS","AI","AG","AR","AW","BZ","BM","BO","BR","VG","CA","CL","CO","CR","CU","DM","DO","EC","SV","FK","GF","GL","GD","GP","GT","GY","HT","HN","JM","MQ","MX","MS","AN","NI","MP","PY","PE","PR","KN","LC","PM","VC","GS","SR","BS","TT","TC","UM","US","UY","VE","VI" ) AND `civicrm_country`.`region_id` IS null;
-
--- Middle East and North Africa
-
-SELECT @region_id   := max(id) from civicrm_worldregion where name = "Middle East and North Africa";
-
-UPDATE `civicrm_country` SET `region_id` = @region_id  WHERE `civicrm_country`.`iso_code` IN( "DZ","BH","EG","IR","IQ","IL","JO","KW","LB","LY","MA","OM","PS","QA","SA","SY","TN","AE","EH","YE" ) AND `civicrm_country`.`region_id` IS null;
-
--- Asia-Pacific
-
-SELECT @region_id   := max(id) from civicrm_worldregion where name = "Asia-Pacific";
-
-UPDATE `civicrm_country` SET `region_id` = @region_id  WHERE `civicrm_country`.`iso_code` IN( "AF","AM","AU","BD","BB","BT","IO","BN","MM","KH","CN","CX","CC","CK","TL","FJ","PF","GE","GU","HM","HK","IN","ID","JP","KI","KP","KR","LA","MO","MY","MV","MH","FM","MN","NR","NP","NC","NZ","NU","NF","PK","PW","PG","PH","PN","WS","SG","SB","LK","TW","TJ","TH","TK","TO","TV","VU","VN","WF" ) AND `civicrm_country`.`region_id` IS null;
-
--- Africa West, East, Central and Southern
-
-SELECT @region_id   := max(id) from civicrm_worldregion where name = "Africa West, East, Central and Southern";
-
-UPDATE `civicrm_country` SET `region_id` = @region_id  WHERE `civicrm_country`.`iso_code` IN( "AO","BJ","BW","BF","BI","CM","CV","KY","CF","TD","KM","CD","CG","CI","DJ","GQ","ER","ET","GA","GH","GN","GW","KE","LS","LR","MG","MW","ML","MR","MU","YT","MZ","NA","NE","NG","PA","RW","RE","SH","SN","SC","SL","SO","ZA","SD","SZ","ST","TZ","GM","TG","UG","ZM","ZW" ) AND `civicrm_country`.`region_id` IS null;
-
--- unassigned
-
-SELECT @region_id   := max(id) from civicrm_worldregion where name = "unassigned";
-
-UPDATE `civicrm_country` SET `region_id` = @region_id WHERE `civicrm_country`.`iso_code` IN( "JE","GG","IM" ) AND `civicrm_country`.`region_id` IS null;
-
-
--- update minute increment to 1 in activitydatetime in preferences_date
-UPDATE `civicrm_preferences_date` SET `minute_increment` = 1 WHERE `name`  = 'activityDatetime';
-
--- CRM-3730
-ALTER TABLE civicrm_price_field ALTER active_on SET DEFAULT NULL;
-ALTER TABLE civicrm_price_field ALTER expire_on SET DEFAULT NULL;
-
--- ******************************************************
--- END OF THE UPGRADE
diff --git a/CRM/Upgrade/Incremental/sql/2.2.alpha3.mysql.tpl b/CRM/Upgrade/Incremental/sql/2.2.alpha3.mysql.tpl
deleted file mode 100644 (file)
index e0c92fc..0000000
+++ /dev/null
@@ -1,75 +0,0 @@
--- Do not make any changes to this file once alpha3 is tagged
--- CRM-3546 CRM-2105 CRM-3248 CRM-3869 CRM-4013
-
- {if $multilingual}
-   INSERT INTO civicrm_option_group (name, {foreach from=$locales item=locale}description_{$locale},{/foreach} is_reserved, is_active) VALUES ('mail_protocol', {foreach from=$locales item=locale}'Mail Protocol',{/foreach} 0, 1 );
- {else}
-   INSERT INTO civicrm_option_group (name, description, is_reserved, is_active ) VALUES ('mail_protocol', 'Mail Protocol', 0, 1 );
- {/if}
-
- UPDATE civicrm_option_group SET is_reserved = 0, is_active = 1 WHERE name IN( 'mail_protocol', 'visibility', 'greeting_type', 'phone_type' );
- UPDATE civicrm_option_group SET is_active   = 1 WHERE name = 'encounter_medium';
- SELECT @option_group_id_mp := max(id) from civicrm_option_group where name = 'mail_protocol';
-
-{if $multilingual}
-  INSERT INTO civicrm_option_value
-    (option_group_id,     {foreach from=$locales item=locale}label_{$locale},{/foreach} value, name,       weight) VALUES
-    (@option_group_id_mp, {foreach from=$locales item=locale}'IMAP',{/foreach}          1,     'IMAP',     1),
-    (@option_group_id_mp, {foreach from=$locales item=locale}'Maildir',{/foreach}       2,     'Maildir',  2),
-    (@option_group_id_mp, {foreach from=$locales item=locale}'POP3',{/foreach}          3,     'POP3',     3);
-{else}
-  INSERT INTO civicrm_option_value
-    (option_group_id,     label,       value, name,       weight) VALUES
-    (@option_group_id_mp, 'IMAP' ,     1,     'IMAP',     1),
-    (@option_group_id_mp, 'Maildir',   2,     'Maildir',  2),
-    (@option_group_id_mp, 'POP3'   ,   3,     'POP3',     3);
-{/if}
-
-ALTER TABLE `civicrm_domain`
-  MODIFY version varchar(32) COMMENT 'The civicrm version this instance is running';
-
--- CRM-3989
-ALTER TABLE `civicrm_pcp_block`
-  ADD notify_email varchar(255) DEFAULT NULL COMMENT 'If set, notification is automatically emailed to this email-address on create/update Personal Campaign Page';
-
--- PCP userDashboard Option
-
- SELECT @option_group_id_udOpt  := max(id) from civicrm_option_group where name = 'user_dashboard_options';
- SELECT @maxValue  := max(value) from civicrm_option_value where option_group_id=@option_group_id_udOpt ;
-
-{if $multilingual}
-  INSERT INTO civicrm_option_value
-    (option_group_id, {foreach from=$locales item=locale}label_{$locale},{/foreach} value, name, weight, is_reserved, is_active) VALUES
-    (@option_group_id_udOpt, {foreach from=$locales item=locale}'Personal Campaign Pages',{/foreach} @maxValue + 1,'PCP', @maxValue + 1, 0, 1);
-{else}
-  INSERT INTO civicrm_option_value
-    (option_group_id,        label,                    value,          name,  weight, is_reserved, is_active) VALUES
-    (@option_group_id_udOpt, 'Personal Campaign Pages', @maxValue + 1, 'PCP', @maxValue + 1, 0, 1 );
-{/if}
-
--- PCP Status Option Group
-{if $multilingual}
-  INSERT INTO civicrm_option_group
-    (name, {foreach from=$locales item=locale}description_{$locale},{/foreach} is_reserved, is_active) VALUES
-    ('pcp_status', {foreach from=$locales item=locale}'PCP Status',{/foreach} 0, 1);
-
-  SELECT @option_group_id_pcp  := max(id) from civicrm_option_group where name = 'pcp_status';
-
-  INSERT INTO civicrm_option_value
-    (option_group_id, {foreach from=$locales item=locale}label_{$locale},{/foreach} value, name, weight, is_reserved, is_active) VALUES
-    (@option_group_id_pcp, {foreach from=$locales item=locale}'Waiting Review',{/foreach} 1, 'Waiting Review', 1, 1, 1 ),
-    (@option_group_id_pcp, {foreach from=$locales item=locale}'Approved',{/foreach}       2, 'Approved',       2, 1, 1 ),
-    (@option_group_id_pcp, {foreach from=$locales item=locale}'Not Approved',{/foreach}   3, 'Not Approved',   3, 1, 1 );
-{else}
-  INSERT INTO civicrm_option_group
-    ( name, description, is_reserved, is_active) VALUES
-    ('pcp_status','PCP Status', 0, 1 );
-
-  SELECT @option_group_id_pcp  := max(id) from civicrm_option_group where name = 'pcp_status';
-
-  INSERT INTO civicrm_option_value
-    (option_group_id, label, value, name, weight, is_reserved, is_active) VALUES
-    (@option_group_id_pcp, 'Waiting Review', 1, 'Waiting Review',  1, 1, 1 ),
-    (@option_group_id_pcp, 'Approved'      , 2, 'Approved'      ,  2, 1, 1 ),
-    (@option_group_id_pcp, 'Not Approved'  , 3, 'Not Approved'  ,  3, 1, 1 );
-{/if}
\ No newline at end of file
diff --git a/CRM/Upgrade/Incremental/sql/2.2.beta1.mysql.tpl b/CRM/Upgrade/Incremental/sql/2.2.beta1.mysql.tpl
deleted file mode 100644 (file)
index 4c7fcf9..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-{if $multilingual}
-  {foreach from=$locales item=locale}
-     DROP VIEW IF EXISTS civicrm_event_page_{$locale};
-  {/foreach}
-{/if}
-
-ALTER TABLE `civicrm_domain`
-  MODIFY version varchar(32) COMMENT 'The civicrm version this instance is running';
-
-{if $notifyAbsent}
--- CRM-3989
-ALTER TABLE `civicrm_pcp_block`
-  ADD notify_email varchar(255) DEFAULT NULL COMMENT 'If set, notification is automatically emailed to this email-address on create/update Personal Campaign Page';
-{/if}
-
-ALTER TABLE `civicrm_custom_group` ALTER `min_multiple` DROP DEFAULT, ALTER `max_multiple` DROP DEFAULT;
\ No newline at end of file
diff --git a/CRM/Upgrade/Incremental/sql/2.2.beta2.mysql.tpl b/CRM/Upgrade/Incremental/sql/2.2.beta2.mysql.tpl
deleted file mode 100644 (file)
index 66ce25f..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
- -- CRM-4104
-SELECT @og_id_cs  := id FROM civicrm_option_group WHERE name = 'custom_search';
-SELECT @maxValue  := max(CAST( `value` AS UNSIGNED )) FROM civicrm_option_value WHERE option_group_id = @og_id_cs;
-{if $customSearchAbsentAll}
-    {if $multilingual}
-        INSERT INTO civicrm_option_value
-  (option_group_id, {foreach from=$locales item=locale}label_{$locale}, description_{$locale}, {/foreach} value, name, weight, is_active) VALUES
-  (@og_id_cs, {foreach from=$locales item=locale}'CRM_Contact_Form_Search_Custom_ZipCodeRange',   'Zip Code Range',                              {/foreach} @maxValue + 1, 'CRM_Contact_Form_Search_Custom_ZipCodeRange',   @maxValue + 1, 1),
-  (@og_id_cs, {foreach from=$locales item=locale}'CRM_Contact_Form_Search_Custom_DateAdded',      'Date Added to CiviCRM',                       {/foreach} @maxValue + 2, 'CRM_Contact_Form_Search_Custom_DateAdded',      @maxValue + 2, 1),
-  (@og_id_cs, {foreach from=$locales item=locale}'CRM_Contact_Form_Search_Custom_MultipleValues', 'Custom Group Multiple Values Listing',        {/foreach} @maxValue + 3, 'CRM_Contact_Form_Search_Custom_MultipleValues', @maxValue + 3, 1),
-        (@og_id_cs, {foreach from=$locales item=locale}'CRM_Contact_Form_Search_Custom_ContribSYBNT',   'Contributions made in Year X and not Year Y', {/foreach} @maxValue + 4, 'CRM_Contact_Form_Search_Custom_ContribSYBNT',   @maxValue + 4, 1);
-    {else}
-  INSERT INTO civicrm_option_value
-  (option_group_id, label, value, name, description, weight, is_active ) VALUES
-  (@og_id_cs, 'CRM_Contact_Form_Search_Custom_ZipCodeRange',    @maxValue + 1, 'CRM_Contact_Form_Search_Custom_ZipCodeRange',   'Zip Code Range',                               @maxValue + 1, 1),
-        (@og_id_cs, 'CRM_Contact_Form_Search_Custom_DateAdded',       @maxValue + 2, 'CRM_Contact_Form_Search_Custom_DateAdded',      'Date Added to CiviCRM',                        @maxValue + 2, 1),
-        (@og_id_cs, 'CRM_Contact_Form_Search_Custom_MultipleValues',  @maxValue + 3, 'CRM_Contact_Form_Search_Custom_MultipleValues', 'Custom Group Multiple Values Listing',         @maxValue + 3, 1),
-        (@og_id_cs, 'CRM_Contact_Form_Search_Custom_ContribSYBNT',    @maxValue + 4, 'CRM_Contact_Form_Search_Custom_ContribSYBNT',   'Contributions made in Year X and not Year Y',  @maxValue + 4, 1);
-    {/if}
-{else if $customSearchAbsent}
-    {if $multilingual}
-        INSERT INTO civicrm_option_value
-        (option_group_id, {foreach from=$locales item=locale}label_{$locale}, description_{$locale}, {/foreach} value, name, weight, is_active) VALUES
-        (@og_id_cs, {foreach from=$locales item=locale}'CRM_Contact_Form_Search_Custom_MultipleValues', 'Custom Group Multiple Values Listing',        {/foreach} @maxValue + 1, 'CRM_Contact_Form_Search_Custom_MultipleValues', @maxValue + 1, 1),
-        (@og_id_cs, {foreach from=$locales item=locale}'CRM_Contact_Form_Search_Custom_ContribSYBNT',   'Contributions made in Year X and not Year Y', {/foreach} @maxValue + 2, 'CRM_Contact_Form_Search_Custom_ContribSYBNT',   @maxValue + 2, 1);
-    {else}
-        INSERT INTO civicrm_option_value
-  (option_group_id, label, value, name, description, weight, is_active ) VALUES
-  (@og_id_cs, 'CRM_Contact_Form_Search_Custom_MultipleValues', @maxValue + 1, 'CRM_Contact_Form_Search_Custom_MultipleValues', 'Custom Group Multiple Values Listing',         @maxValue + 1, 1),
-        (@og_id_cs, 'CRM_Contact_Form_Search_Custom_ContribSYBNT',   @maxValue + 2, 'CRM_Contact_Form_Search_Custom_ContribSYBNT',   'Contributions made in Year X and not Year Y',  @maxValue + 2, 1);
-    {/if}
-{/if}
-
--- Added dummy processor
-INSERT IGNORE INTO `civicrm_payment_processor_type`
-    (`name`, `title`, `is_active`, `is_default`, `user_name_label`, `class_name`, `billing_mode`) VALUES
-    ('Dummy', 'Dummy Payment Processor', 1, 1, 'User Name', 'Payment_Dummy', 1 );
\ No newline at end of file
diff --git a/CRM/Upgrade/Incremental/sql/2.2.beta3.mysql.tpl b/CRM/Upgrade/Incremental/sql/2.2.beta3.mysql.tpl
deleted file mode 100644 (file)
index fb8580a..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
--- This file contains upgrade queries for db changes introduced after 2.2.beta2
-
--- CRM-4167
-
-ALTER TABLE `civicrm_event`
-  ADD `allow_same_participant_emails` tinyint(4) default '0' COMMENT 'if true - allows the user to register multiple registrations from same email address.';
-
--- CRM-4166
-
-INSERT INTO  `civicrm_payment_processor_type`
-  (name, title, description, is_active, is_default, user_name_label, password_label, signature_label, subject_label, class_name, url_site_default, url_api_default, url_recur_default, url_button_default, url_site_test_default, url_api_test_default, url_recur_test_default, url_button_test_default, billing_mode, is_recur ) VALUES
-  ('Elavon','{ts escape="sql"}Elavon Payment Processor{/ts}','{ts escape="sql"}Elavon / Nova Virtual Merchant{/ts}',1,0,'{ts escape="sql"}SSL Merchant ID {/ts}','{ts escape="sql"}SSL User ID{/ts}','{ts escape="sql"}SSL PIN{/ts}',NULL,'Payment_Elavon','https://www.myvirtualmerchant.com/VirtualMerchant/processxml.do',NULL,NULL,NULL,'https://www.myvirtualmerchant.com/VirtualMerchant/processxml.do',NULL,NULL,NULL,1,0)
-  ON DUPLICATE KEY UPDATE civicrm_payment_processor_type.name='Elavon';
-
--- CRM-4165
-
-SELECT @og_id_at := max(id) from civicrm_option_group where name = 'activity_type';
-SELECT @max_val  := MAX(ROUND(op.value)) FROM civicrm_option_value op WHERE op.option_group_id  = @og_id_at;
-SELECT @max_wt   := MAX(op.weight) FROM civicrm_option_value op WHERE op.option_group_id = @og_id_at;
-SELECT @mem_comp_id := id from civicrm_component where name = 'CiviMember';
-
-{if $multilingual}
-  INSERT INTO civicrm_option_value
-    (option_group_id, {foreach from=$locales item=locale}label_{$locale}, description_{$locale}, {/foreach}  value, name, filter, weight, is_reserved, component_id) VALUES
-    (@og_id_at, {foreach from=$locales item=locale}'Membership Renewal Reminder', 'offline membership renewal reminder.',{/foreach}  @max_val + 1, 'Membership Renewal Reminder', 1, @max_wt + 1, 1, @mem_comp_id);
-{else}
-  INSERT INTO civicrm_option_value
-    (option_group_id, label, value, name, filter, weight, description, is_reserved, component_id) VALUES
-    (@og_id_at, 'Membership Renewal Reminder', @max_val + 1, 'Membership Renewal Reminder', 1, @max_wt + 1, 'offline membership renewal reminder.', 1, @mem_comp_id);
-{/if}
-
--- CRM-3546
-{if $customDataType }
-    {if $multilingual}
-    INSERT INTO civicrm_option_group (name, {foreach from=$locales item=locale}description_{$locale},{/foreach} is_reserved, is_active) VALUES
-    ('custom_data_type', {foreach from=$locales item=locale}'Custom Data Type',{/foreach} 0, 1 );
-
-    SELECT @option_group_id_cdt := id from civicrm_option_group where name = 'custom_data_type';
-    INSERT INTO civicrm_option_value
-        (option_group_id,  {foreach from=$locales item=locale}label_{$locale},{/foreach} value, name, weight) VALUES
-        (@option_group_id_cdt, {foreach from=$locales item=locale}'Participant Role', {/foreach} 1, 'ParticipantRole', 1),
-        (@option_group_id_cdt, {foreach from=$locales item=locale}'Participant Event Name',{/foreach} 2, 'ParticipantEventName', 2);
-    {else}
-    INSERT INTO `civicrm_option_group`
-        (`name`, `description`, `is_reserved`, `is_active`) VALUES
-        ('custom_data_type' , 'Custom Data Type', 0, 1);
-
-    SELECT @option_group_id_cdt := id from civicrm_option_group where name = 'custom_data_type';
-
-    INSERT INTO
-       `civicrm_option_value` (`option_group_id`, `label`, `value`, `name`, `grouping`, `filter`, `is_default`, `weight`, `description`, `is_optgroup`, `is_reserved`, `is_active`, `component_id`, `visibility_id`)
-    VALUES
-       (@option_group_id_cdt, 'Participant Role', '1', 'ParticipantRole', NULL, 0, NULL, 1, NULL, 0, 0, 1, NULL, NULL ),
-       (@option_group_id_cdt, 'Participant Event Name', '2', 'ParticipantEventName', NULL, 0, NULL, 2, NULL, 0, 0, 1, NULL, NULL );
-    {/if}
-{/if}
\ No newline at end of file
diff --git a/CRM/Upgrade/Incremental/sql/2.2.beta4.mysql.tpl b/CRM/Upgrade/Incremental/sql/2.2.beta4.mysql.tpl
deleted file mode 100644 (file)
index 2b7a760..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
--- CRM-1971
-
-ALTER TABLE civicrm_event
-   DROP FOREIGN KEY `FK_civicrm_event_loc_block_id`;
-ALTER TABLE civicrm_event
-   ADD CONSTRAINT `FK_civicrm_event_loc_block_id` FOREIGN KEY (`loc_block_id`) REFERENCES `civicrm_loc_block` (`id`) ON DELETE SET NULL;
-
-ALTER TABLE civicrm_loc_block DROP name;
diff --git a/CRM/Upgrade/Incremental/sql/3.0.0.mysql.tpl b/CRM/Upgrade/Incremental/sql/3.0.0.mysql.tpl
deleted file mode 100644 (file)
index 874a635..0000000
+++ /dev/null
@@ -1,85 +0,0 @@
--- CRM-5119
-    UPDATE civicrm_navigation SET permission ='add contacts'
-        WHERE civicrm_navigation.name IN('New Individual','New Household','New Organization');
-
-    UPDATE civicrm_navigation SET permission ='import contacts'
-        WHERE civicrm_navigation.name IN( 'Import Contacts','Import Activities');
-
-    UPDATE civicrm_navigation SET permission ='edit groups' WHERE civicrm_navigation.name= 'New Group';
-    UPDATE civicrm_navigation SET permission ='edit groups,administer CiviCRM', permission_operator ='AND'
-        WHERE civicrm_navigation.name= 'Manage Groups';
-
-    UPDATE civicrm_navigation SET permission ='administer CiviCRM' WHERE civicrm_navigation.name= 'New Tag';
-    UPDATE civicrm_navigation SET permission ='administer CiviCRM' WHERE civicrm_navigation.name= 'Manage Tags (Categories)';
-
-    UPDATE civicrm_navigation SET permission ='access CiviContribute' WHERE civicrm_navigation.name= 'Dashboard' AND url='civicrm/contribute&reset=1';
-    UPDATE civicrm_navigation SET permission ='access CiviContribute' WHERE civicrm_navigation.name= 'Find Contributions';
-
-    UPDATE civicrm_navigation SET permission ='access CiviPledge'  WHERE civicrm_navigation.name= 'Dashboard' AND url='civicrm/pledge&reset=1';
-    UPDATE civicrm_navigation SET permission ='access CiviPledge'  WHERE civicrm_navigation.name= 'Find Pledges';
-    UPDATE civicrm_navigation SET permission ='access CiviPledge,edit pledges', permission_operator ='AND'
-        WHERE civicrm_navigation.name= 'New Pledge';
-
-    UPDATE civicrm_navigation SET permission ='access CiviContribute,administer CiviCRM',  permission_operator ='AND'
-        WHERE civicrm_navigation.name IN ( 'New Contribution Page','Manage Contribution Pages','Personal Campaign Pages','Premiums',
-                                           'Contribution Types', 'Payment Instruments','Accepted Credit Cards' );
-    UPDATE civicrm_navigation SET permission ='access CiviContribute,edit contributions',  permission_operator ='AND'
-        WHERE civicrm_navigation.name IN ( 'New Contribution','Import Contributions');
-    UPDATE civicrm_navigation SET permission ='access CiviEvent'
-        WHERE civicrm_navigation.name IN( 'CiviEvent Dashboard','Find Participants');
-
-    UPDATE civicrm_navigation SET permission ='access CiviEvent,edit event participants', permission_operator ='AND'
-        WHERE civicrm_navigation.name IN ( 'Register Event Participant','Import Participants');
-
-    UPDATE civicrm_navigation SET permission ='access CiviEvent,administer CiviCRM', permission_operator ='AND'
-        WHERE civicrm_navigation.name IN( 'New Event','Manage Events','Event Templates','New Price Set', 'Manage Price Sets',
-                                          'Participant Listing Templates','Event Types','Participant Statuses','Participant Roles');
-
-    UPDATE civicrm_navigation SET permission ='access CiviMail'
-        WHERE civicrm_navigation.name IN ( 'New Mailing','Draft and Unscheduled Mailings','Scheduled and Sent Mailings','Archived Mailings');
-
-    UPDATE civicrm_navigation SET permission ='access CiviMail,administer CiviCRM',  permission_operator ='AND'
-            WHERE civicrm_navigation.name IN ( 'Headers, Footers, and Automated Messages','Mail Accounts');
-
-    UPDATE civicrm_navigation SET permission ='access CiviMember' WHERE civicrm_navigation.name= 'Dashboard' AND url='civicrm/member&reset=1';
-    UPDATE civicrm_navigation SET permission ='access CiviMember' WHERE civicrm_navigation.name= 'Find Members';
-    UPDATE civicrm_navigation SET permission ='access CiviMember,edit memberships', permission_operator ='AND'
-        WHERE civicrm_navigation.name IN ('New Membership','Import Members');
-
-    UPDATE civicrm_navigation SET permission ='access CiviCase' WHERE civicrm_navigation.name= 'Dashboard' AND url='civicrm/case&reset=1';
-    UPDATE civicrm_navigation SET permission ='access CiviCase' WHERE civicrm_navigation.name= 'Find Cases';
-    UPDATE civicrm_navigation SET permission ='access CiviCase,add contacts', permission_operator ='AND'
-        WHERE civicrm_navigation.name= 'New Case';
-
-    UPDATE civicrm_navigation SET permission ='access CiviGrant' WHERE civicrm_navigation.name= 'Dashboard' AND url='civicrm/grant&reset=1';
-    UPDATE civicrm_navigation SET permission ='access CiviGrant' WHERE civicrm_navigation.name= 'Find Grants';
-    UPDATE civicrm_navigation SET permission ='access CiviGrant,edit grants', permission_operator ='AND'
-        WHERE civicrm_navigation.name= 'New Grant';
-
-    UPDATE civicrm_navigation SET permission ='administer CiviCRM'
-        WHERE civicrm_navigation.name IN ( 'Administration Console', 'Customize','Custom Data','CiviCRM Profile','Navigation Menu',
-                                           'Manage Custom Searches','Configure','Configuration Checklist','Global Settings','Enable Components',
-                                           'Site Preferences','Directories','Resource URLs','Outbound Email','Mapping and Geocoding',
-                                           'Payment Processors','Localization','Address Settings','Search Settings', 'Date Formats', 'CMS Integration',
-                                           'Miscellaneous','Safe File Extensions','Debugging','Import/Export Mappings', 'Message Templates',
-                                           'Domain Information','FROM Email Addresses', 'Update Directory Path and URL','Manage','Find and Merge Duplicate Contacts',
-                                           'Access Control','Synchronize Users to Contacts','Option Lists','Activity Types','Relationship Types','Gender Options',
-                                           'Addressee Formats','Email Greetings','Postal Greetings','Instant Messenger Services','Mobile Phone Providers',
-                                           'Phone Types','Preferred Communication Methods');
-
-    UPDATE civicrm_navigation SET permission ='administer CiviCRM' WHERE civicrm_navigation.name= 'Location Types (Home, Work...)';
-    UPDATE civicrm_navigation SET permission ='administer CiviCRM' WHERE civicrm_navigation.name= 'Tags (Categories)';
-    UPDATE civicrm_navigation SET permission ='administer CiviCRM' WHERE civicrm_navigation.name= 'Individual Prefixes (Ms, Mr...)';
-    UPDATE civicrm_navigation SET permission ='administer CiviCRM' WHERE civicrm_navigation.name= 'Individual Suffixes (Jr, Sr...)';
-
-    UPDATE civicrm_navigation SET permission ='access CiviCase,administer CiviCRM',  permission_operator ='AND'
-        WHERE civicrm_navigation.name IN ( 'Case Types','Redaction Rules');
-
-    UPDATE civicrm_navigation SET permission ='access CiviGrant,administer CiviCRM',  permission_operator ='AND' WHERE civicrm_navigation.name= 'Grant Types';
-
-    UPDATE civicrm_navigation SET permission ='access CiviMember,administer CiviCRM',  permission_operator ='AND'
-        WHERE civicrm_navigation.name IN ( 'Membership Types','Membership Status Rules');
-
-    UPDATE civicrm_navigation SET permission ='access CiviReport' WHERE civicrm_navigation.name = 'Reports Listing';
-    UPDATE civicrm_navigation SET permission ='administer Reports'
-        WHERE civicrm_navigation.name IN ( 'Create Reports from Templates','Manage Templates');
diff --git a/CRM/Upgrade/Incremental/sql/3.0.1.mysql.tpl b/CRM/Upgrade/Incremental/sql/3.0.1.mysql.tpl
deleted file mode 100644 (file)
index c8a6c68..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
--- CRM-CRM-5199
-    UPDATE civicrm_navigation
-    SET url = 'civicrm/activity/add&atype=3&action=add&reset=1&context=standalone'
-        WHERE civicrm_navigation.name= 'New Email';
-    UPDATE civicrm_navigation
-    SET url = 'civicrm/admin/setting/search&reset=1'
-        WHERE civicrm_navigation.name= 'Search Settings';
\ No newline at end of file
diff --git a/CRM/Upgrade/Incremental/sql/3.0.2.mysql.tpl b/CRM/Upgrade/Incremental/sql/3.0.2.mysql.tpl
deleted file mode 100644 (file)
index 7a53715..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
--- adding inbound activity CRM-5290
-{if $addInboundEmail}
-  SELECT @option_group_id_activity_type := max(id) from civicrm_option_group where name = 'activity_type';
-  SELECT @max_val    := MAX(ROUND(op.value)) FROM civicrm_option_value op WHERE op.option_group_id  = @option_group_id_activity_type;
-  SELECT @max_wt     := max(weight) from civicrm_option_value where option_group_id=@option_group_id_activity_type;
-
-  INSERT INTO civicrm_option_value
-        (option_group_id,                {localize field='label'}label{/localize}, {localize field='description'}description{/localize}, value,                           name,                    weight,                      filter, is_reserved)
-        VALUES
-        (@option_group_id_activity_type, {localize}'Inbound Email'{/localize},        {localize}'Inbound Email.'{/localize},              (SELECT @max_val := @max_val+1), 'Inbound Email',       (SELECT @max_wt := @max_wt+1), 1,     1);
-{/if}
diff --git a/CRM/Upgrade/Incremental/sql/3.0.3.mysql.tpl b/CRM/Upgrade/Incremental/sql/3.0.3.mysql.tpl
deleted file mode 100644 (file)
index 5683f12..0000000
+++ /dev/null
@@ -1,64 +0,0 @@
- -- CRM-5333
- -- Delete duplicate records in target and assignment exists if any
-
- DELETE cat.* FROM civicrm_activity_target cat
-              INNER JOIN ( SELECT id, activity_id, target_contact_id
-                           FROM civicrm_activity_target
-                           GROUP BY activity_id, target_contact_id HAVING count(*) > 1 ) dup_cat
-                      ON ( cat.activity_id = dup_cat.activity_id
-                           AND cat.target_contact_id = dup_cat.target_contact_id
-                           AND cat.id <> dup_cat.id );
-
- DELETE caa.* FROM civicrm_activity_assignment caa
-              INNER JOIN ( SELECT id, activity_id, assignee_contact_id
-                           FROM civicrm_activity_assignment
-                           GROUP BY activity_id, assignee_contact_id HAVING count(*) > 1 ) dup_caa
-                      ON ( caa.activity_id = dup_caa.activity_id
-                           AND caa.assignee_contact_id = dup_caa.assignee_contact_id
-                           AND caa.id <> dup_caa.id );
-
- -- Drop unique indexes of activity_target and activity_assignment
-
-  ALTER TABLE  civicrm_activity_assignment
-  DROP INDEX `UI_activity_assignee_contact_id` ,
-  ADD UNIQUE INDEX `UI_activity_assignee_contact_id` (`assignee_contact_id`,`activity_id`);
-
-  ALTER TABLE  civicrm_activity_target
-  DROP INDEX `UI_activity_target_contact_id` ,
-  ADD UNIQUE INDEX `UI_activity_target_contact_id` (`target_contact_id`,`activity_id`);
-
-
--- CRM-5437
-UPDATE civicrm_participant_status_type SET class = 'Pending' WHERE class NOT IN ('Positive', 'Pending', 'Waiting', 'Negative');
-
--- CRM-5451
-ALTER TABLE `civicrm_custom_group`
-DROP FOREIGN KEY `FK_civicrm_custom_group_created_id`;
-
-ALTER TABLE `civicrm_custom_group`
-ADD CONSTRAINT `FK_civicrm_custom_group_created_id` FOREIGN KEY (`created_id`) REFERENCES `civicrm_contact` (`id`) ON DELETE SET NULL;
-
-ALTER TABLE `civicrm_event`
-DROP FOREIGN KEY `FK_civicrm_event_created_id`;
-
-ALTER TABLE `civicrm_event`
-ADD CONSTRAINT `FK_civicrm_event_created_id` FOREIGN KEY (`created_id`) REFERENCES `civicrm_contact` (`id`) ON DELETE SET NULL;
-
-ALTER TABLE `civicrm_contribution_page`
-DROP FOREIGN KEY `FK_civicrm_contribution_page_created_id`;
-
-ALTER TABLE `civicrm_contribution_page`
-ADD CONSTRAINT `FK_civicrm_contribution_page_created_id` FOREIGN KEY (`created_id`) REFERENCES `civicrm_contact` (`id`) ON DELETE SET NULL;
-
-ALTER TABLE `civicrm_uf_group`
-DROP FOREIGN KEY `FK_civicrm_uf_group_created_id`;
-
-ALTER TABLE `civicrm_uf_group`
-ADD CONSTRAINT `FK_civicrm_uf_group_created_id` FOREIGN KEY (`created_id`) REFERENCES `civicrm_contact` (`id`) ON DELETE SET NULL;
-
--- CRM-5471
-UPDATE civicrm_mailing_bounce_pattern
-   SET pattern = 'delivery to the following recipient(s)? failed'
- WHERE pattern = 'delivery to the following recipients failed';
-
-UPDATE civicrm_navigation SET permission ='access CiviCRM', permission_operator ='' WHERE civicrm_navigation.name= 'Manage Groups';
\ No newline at end of file
diff --git a/CRM/Upgrade/Incremental/sql/3.0.4.mysql.tpl b/CRM/Upgrade/Incremental/sql/3.0.4.mysql.tpl
deleted file mode 100644 (file)
index 432f44e..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
--- CRM-5636
-{if $addDeceasedStatus}
-SELECT @maxWeight := MAX(ROUND(weight)) FROM civicrm_membership_status;
-   {if $multilingual}
-      INSERT INTO  civicrm_membership_status
-          ( {foreach from=$locales item=locale}name_{$locale}, {/foreach} is_current_member, is_admin, is_active, is_reserved, weight, is_default )
-      VALUES
-          ( {foreach from=$locales item=locale}'Deceased',{/foreach} 0, 1, 1, 1, (SELECT @maxWeight := @maxWeight + 1), 0 );
-   {else}
-      INSERT INTO  civicrm_membership_status
-          ( name, is_current_member, is_admin, is_active, is_reserved, weight, is_default )
-      VALUES
-          ( 'Deceased', 0, 1, 1, 1, (SELECT @maxWeight := @maxWeight + 1), 0 );
-   {/if}
-{/if}
diff --git a/CRM/Upgrade/Incremental/sql/3.0.5.mysql.tpl b/CRM/Upgrade/Incremental/sql/3.0.5.mysql.tpl
deleted file mode 100644 (file)
index ed3fcb8..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
--- http://forum.civicrm.org/?topic=12481
-UPDATE civicrm_state_province SET name = 'Guizhou' WHERE name = 'Gulzhou';
diff --git a/CRM/Upgrade/Incremental/sql/3.0.alpha1.mysql.tpl b/CRM/Upgrade/Incremental/sql/3.0.alpha1.mysql.tpl
deleted file mode 100644 (file)
index 34162b9..0000000
+++ /dev/null
@@ -1,904 +0,0 @@
-    SELECT @domain_id := min(id) FROM civicrm_domain;
-
-    -- CRM-4048
-    -- modify visibility of civicrm_group
-    ALTER TABLE `civicrm_group`
-        MODIFY `visibility` enum('User and User Admin Only','Public User Pages','Public User Pages and Listings', 'Public Pages') collate utf8_unicode_ci default 'User and User Admin Only' COMMENT 'In what context(s) is this field visible.';
-
-    UPDATE civicrm_group SET visibility = 'Public Pages' WHERE  visibility IN ('Public User Pages', 'Public User Pages and Listings');
-
-    ALTER TABLE `civicrm_group`
-        MODIFY `visibility` enum('User and User Admin Only', 'Public Pages') collate utf8_unicode_ci default 'User and User Admin Only' COMMENT 'In what context(s) is this field visible.';
-
-    -- Modify visibility of civicrm_uf_field
-    ALTER TABLE `civicrm_uf_field`
-        MODIFY `visibility` enum('User and User Admin Only','Public User Pages','Public User Pages and Listings', 'Public Pages', 'Public Pages and Listings') collate utf8_unicode_ci default 'User and User Admin Only' COMMENT 'In what context(s) is this field visible.';
-
-    UPDATE civicrm_uf_field SET visibility = 'Public Pages'              WHERE  visibility = 'Public User Pages';
-    UPDATE civicrm_uf_field SET visibility = 'Public Pages and Listings' WHERE  visibility = 'Public User Pages and Listings';
-
-    ALTER TABLE `civicrm_uf_field`
-        MODIFY `visibility` enum('User and User Admin Only', 'Public Pages', 'Public Pages and Listings') collate utf8_unicode_ci default 'User and User Admin Only' COMMENT 'In what context(s) is this field visible.';
-
-
-    -- CRM-3336
-    -- Add two label_a_b and label_b_a column in civicrm_relationship_type table
-    ALTER TABLE `civicrm_relationship_type`
-        ADD `label_a_b` VARCHAR( 64 ) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL COMMENT 'label for relationship of contact_a to contact_b.' AFTER `name_a_b`,
-        ADD `label_b_a` VARCHAR( 64 ) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL COMMENT 'Optional label for relationship of contact_b to contact_a.' AFTER `name_b_a`;
-
-    -- Copy value from name_a_b to label_a_b and name_b_a to label_b_a column in civicrm_relationship_type.
-    UPDATE civicrm_relationship_type
-        SET  civicrm_relationship_type.label_a_b = civicrm_relationship_type.name_a_b, civicrm_relationship_type.label_b_a = civicrm_relationship_type.name_b_a;
-
-    -- Alter comment of name_a_b and name_b_a column in civicrm_relationship_type table
-    ALTER TABLE `civicrm_relationship_type`
-        CHANGE `name_a_b` `name_a_b` VARCHAR( 64 ) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT 'name for relationship of contact_a to contact_b.' ,
-        CHANGE `name_b_a` `name_b_a` VARCHAR( 64 ) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT 'Optional name for relationship of contact_b to contact_a.';
-
-    -- CRM-3140
-    ALTER TABLE `civicrm_mapping_field`
-        ADD `im_provider_id` int(10) unsigned default NULL COMMENT 'Which type of IM Provider does this name belong' AFTER `phone_type_id`;
-
-
-    -- migrate participant status types, CRM-4321
-
-    -- /*******************************************************
-    -- * civicrm_participant_status_type
-    -- * various types of CiviEvent participant statuses
-    -- *******************************************************/
-    BEGIN;
-    CREATE TABLE civicrm_participant_status_type (
-        id int unsigned NOT NULL AUTO_INCREMENT  COMMENT 'unique participant status type id',
-        name varchar(64)    COMMENT 'non-localized name of the status type',
-        {localize field='label'}label varchar(255)    COMMENT 'localized label for display of this status type'{/localize},
-        class enum('Positive', 'Pending', 'Waiting', 'Negative')    COMMENT 'the general group of status type this one belongs to',
-        is_reserved tinyint    COMMENT 'whether this is a status type required by the system',
-        is_active tinyint   DEFAULT 1 COMMENT 'whether this status type is active',
-        is_counted tinyint    COMMENT 'whether this status type is counted against event size limit',
-        weight int unsigned NOT NULL   COMMENT 'controls sort order',
-        visibility_id int unsigned    COMMENT 'whether the status type is visible to the public, an implicit foreign key to option_value.value related to the `visibility` option_group',
-        PRIMARY KEY ( id )
-    )  ENGINE=InnoDB DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
-
-    SELECT @ps_ogid := id FROM civicrm_option_group WHERE name = 'participant_status';
-    INSERT INTO civicrm_participant_status_type
-        (id, name, {localize field='label'}label{/localize}, is_reserved, is_active, is_counted, weight, visibility_id)
-    SELECT value, name, {localize field='label'}label{/localize}, is_reserved, is_active, filter, weight, visibility_id
-    FROM civicrm_option_value WHERE option_group_id = @ps_ogid;
-
-    UPDATE civicrm_participant_status_type
-  SET class = CASE name
-                        WHEN 'Registered' THEN 'Positive'
-                        WHEN 'Attended'   THEN 'Positive'
-                        WHEN 'No-show'    THEN 'Negative'
-                        WHEN 'Cancelled'  THEN 'Negative'
-                        ELSE 'Pending'
-                    END;
-
-    UPDATE civicrm_participant_status_type
-        SET name = 'Pending from pay later', {localize field='label'}label = 'Pending from pay later'{/localize}
-    WHERE name = 'Pending';
-
-    INSERT INTO civicrm_participant_status_type
-        (name,                                  {localize field='label'}label{/localize},                    class,      is_reserved, is_active, is_counted, weight, visibility_id)
-    VALUES
-        ('Pending from incomplete transaction', {localize}'Pending from incomplete transaction'{/localize}, 'Pending',  1,           1,         1,          6,      2            ),
-        ('On waitlist',                         {localize}'On waitlist'{/localize},                         'Waiting',  1,           0,         0,          7,      2            ),
-        ('Awaiting approval',                   {localize}'Awaiting approval'{/localize},                   'Waiting',  1,           0,         1,          8,      2            ),
-        ('Pending from waitlist',               {localize}'Pending from waitlist'{/localize},               'Pending',  1,           0,         1,          9,      2            ),
-        ('Pending from approval',               {localize}'Pending from approval'{/localize},               'Pending',  1,           0,         1,          10,     2            ),
-        ('Rejected',                            {localize}'Rejected'{/localize},                            'Negative', 1,           0,         0,          11,     2            ),
-        ('Expired',                             {localize}'Expired'{/localize},                             'Negative', 1,           1,         0,          12,     2            );
-
-    -- CRM-4321 migration: Pending from pay later + false is_pay_later ==> Pending from incomplete transaction
-    SELECT @ps_ppl := id FROM civicrm_participant_status_type WHERE name = 'Pending from pay later';
-    SELECT @ps_pit := id FROM civicrm_participant_status_type WHERE name = 'Pending from incomplete transaction';
-    UPDATE civicrm_participant SET status_id = @ps_pit WHERE status_id = @ps_ppl AND is_pay_later = 0;
-
-    DELETE FROM civicrm_option_value WHERE option_group_id = @ps_ogid;
-    DELETE FROM civicrm_option_group WHERE              id = @ps_ogid;
-
-    UPDATE civicrm_participant SET status_id = 1 WHERE status_id IS NULL;
-    ALTER TABLE `civicrm_participant`
-        CHANGE `status_id` `status_id` INT( 10 ) UNSIGNED NOT NULL DEFAULT '1' COMMENT 'Participant status ID. FK to civicrm_participant_status_type. Default of 1 should map to status = Registered.',
-        ADD CONSTRAINT FK_civicrm_participant_status_id FOREIGN KEY (status_id) REFERENCES civicrm_participant_status_type (id);
-
-    COMMIT;
-
-    -- Add is_reserved, name column to civicrm_uf_group table.
-    ALTER TABLE `civicrm_uf_group`
-        ADD `is_reserved` TINYINT( 4 ) NULL DEFAULT NULL COMMENT 'Is this group reserved for use by some other CiviCRM functionality?',
-        ADD `name` VARCHAR( 64 ) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL COMMENT 'Name of the UF group for directly addressing it in the codebase';
-
-    -- Add is_reserved column to civicrm_uf_field.
-    ALTER TABLE `civicrm_uf_field`
-        ADD `is_reserved` TINYINT( 4 ) NULL DEFAULT NULL COMMENT 'Is this group reserved for use by some other CiviCRM functionality?';
-
-    -- add a profile for CRM-4323
-    BEGIN;
-        INSERT INTO civicrm_uf_group
-            (name,                 group_type,    {localize field='title'}title{/localize},  is_reserved)
-        VALUES
-            ('participant_status', 'Participant', {localize}'Participant Status'{/localize}, 1);
-        SELECT @ufgid := id FROM civicrm_uf_group WHERE name = 'participant_status';
-        INSERT INTO civicrm_uf_field
-            (uf_group_id, field_name,              is_required, is_reserved, {localize field='label'}label{/localize},  field_type)
-        VALUES
-            (@ufgid,      'participant_status_id', 1,           1,           {localize}'Participant Status'{/localize}, 'Participant');
-    COMMIT;
-
-    -- CRM-4407
-    ALTER TABLE `civicrm_preferences` ADD `navigation` TEXT NULL AFTER `mailing_backend` ;
-
-    -- CRM-3553
-    -- Activity Type for bulk email
-    -- CRM-4480
-    -- Activity Type for case role assignment
-
-    SELECT @option_group_id_activity_type := max(id) from civicrm_option_group where name = 'activity_type';
-    SELECT @max_val    := MAX(ROUND(op.value)) FROM civicrm_option_value op WHERE op.option_group_id  = @option_group_id_activity_type;
-    SELECT @caseCompId := id FROM `civicrm_component` where `name` like 'CiviCase';
-    SELECT @max_wt     := max(weight) from civicrm_option_value where option_group_id=@option_group_id_activity_type;
-
-    INSERT INTO civicrm_option_value
-        (option_group_id,                {localize field='label'}label{/localize}, {localize field='description'}description{/localize}, value,                           name,               weight,                        filter, component_id)
-    VALUES
-        (@option_group_id_activity_type, {localize}'Bulk Email'{/localize},        {localize}'Bulk Email Sent.'{/localize},              (SELECT @max_val := @max_val+1), 'Bulk Email',       (SELECT @max_wt := @max_wt+1), 1,      NULL),
-        (@option_group_id_activity_type, {localize}'Assign Case Role'{/localize},  {localize}''{/localize},                              (SELECT @max_val := @max_val+2), 'Assign Case Role', (SELECT @max_wt := @max_wt+2), 0,      @caseCompId),
-        (@option_group_id_activity_type, {localize}'Remove Case Role'{/localize},  {localize}''{/localize},                              (SELECT @max_val := @max_val+3), 'Remove Case Role', (SELECT @max_wt := @max_wt+3), 0,      @caseCompId);
-
-    -- CRM-5333
-    -- Drop unique indexes of activity_target and activity_assignment
-
-    ALTER TABLE  civicrm_activity_assignment
-    DROP INDEX `UI_activity_assignee_contact_id` ,
-    ADD  INDEX `UI_activity_assignee_contact_id` (`assignee_contact_id`,`activity_id`);
-
-    ALTER TABLE  civicrm_activity_target
-    DROP INDEX `UI_activity_target_contact_id` ,
-    ADD INDEX `UI_activity_target_contact_id` (`target_contact_id`,`activity_id`);
-
-    -- delete unnecessary activities
-    SELECT @bulkEmailID := op.value from civicrm_option_value op where op.name = 'Bulk Email' and op.option_group_id  = @option_group_id_activity_type;
-
-    UPDATE civicrm_activity ca
-        SET ca.activity_type_id = @bulkEmailID
-    WHERE   ca.activity_type_id = 3
-            AND ca.source_record_id IS NOT NULL
-            AND ca.id NOT IN ( SELECT cca.activity_id FROM civicrm_case_activity cca );
-
-    -- CRM-4478  CRM-4569
-    INSERT INTO civicrm_option_group
-        (name,              {localize field='description'}description{/localize}, is_reserved, is_active)
-    VALUES
-        ('priority',        {localize}'Priority'{/localize},                      0,           1),
-        ('redaction_rule',  {localize}'Redaction Rule'{/localize},                0,           1),
-        ('email_greeting',  {localize}'Email Greeting Type'{/localize},           0,           1),
-        ('postal_greeting', {localize}'Postal Greeting Type'{/localize},          0,           1),
-        ('addressee',       {localize}'Addressee Type'{/localize},                0,           1);
-
-    SELECT @og_id_pr := id FROM civicrm_option_group WHERE name = 'priority';
-    SELECT @og_id_rr := id FROM civicrm_option_group WHERE name = 'redaction_rule';
-    SELECT @og_id_rt := id FROM civicrm_option_group WHERE name = 'report_template';
-    INSERT INTO civicrm_option_value
-        (option_group_id, {localize field='label'}label{/localize},                                          value,   name,     filter, weight, is_active)
-    VALUES
-        (@og_id_pr,       {localize}'Urgent'{/localize},                                                     1,       'Urgent', 0,      1,      1),
-        (@og_id_pr,       {localize}'Normal'{/localize},                                                     2,       'Normal', 0,      2,      1),
-        (@og_id_pr,       {localize}'Low'{/localize},                                                        3,       'Low',    0,      3,      1),
-
-        (@og_id_rr,       {localize}'Vancouver'{/localize},                                                  'city_', NULL,     0,      1,      1),
-        (@og_id_rr,       {localize}'{literal}/(19|20)(\\d{2})-(\\d{1,2})-(\\d{1,2})/{/literal}'{/localize}, 'date_', NULL,     1,      2,      1);
-
-
-    -- CRM-4461
-    -- Add a new custom html type advanced multi-select
-    -- CRM-4679
-    -- Add a new custom data type Auto-Complete & html type Contact Reference
-    ALTER TABLE `civicrm_custom_field`
-        MODIFY `data_type` enum ('String', 'Int', 'Float', 'Money', 'Memo', 'Date', 'Boolean', 'StateProvince', 'Country', 'File', 'Link', 'ContactReference')NOT NULL COMMENT 'Controls location of data storage in extended_data table.',
-        MODIFY `html_type` enum ('Text', 'TextArea', 'Select', 'Multi-Select', 'AdvMulti-Select', 'Radio', 'CheckBox', 'Select Date', 'Select State/Province', 'Select Country', 'Multi-Select Country', 'Multi-Select State/Province', 'File', 'Link', 'RichTextEditor', 'Autocomplete-Select')NOT NULL COMMENT 'HTML types plus several built-in extended types.';
-
-    -- CRM-4407
-    -- Add civicrm_navigation table for CiviCRM Menu
-    CREATE TABLE civicrm_navigation (
-        id int unsigned NOT NULL AUTO_INCREMENT  ,
-        domain_id int unsigned NOT NULL   COMMENT 'Which Domain is this navigation item for',
-        label varchar(255)    COMMENT 'Navigation Title',
-        name varchar(255)    COMMENT 'Internal Name',
-        url varchar(255)    COMMENT 'url in case of custom navigation link',
-        permission varchar(255)    COMMENT 'Permission for menu item',
-        permission_operator varchar(3)    COMMENT 'Permission Operator',
-        parent_id int unsigned    COMMENT 'Parent navigation item, used for grouping',
-        is_active tinyint    COMMENT 'Is this navigation item active?',
-        has_separator tinyint    COMMENT 'If separator needs to be added after this menu item',
-        weight int    COMMENT 'Ordering of the navigation items in various blocks.'
-        ,
-        PRIMARY KEY ( id )
-        ,
-        CONSTRAINT FK_civicrm_navigation_domain_id FOREIGN KEY (domain_id) REFERENCES civicrm_domain(id) ,
-        CONSTRAINT FK_civicrm_navigation_parent_id FOREIGN KEY (parent_id) REFERENCES civicrm_navigation(id) ON DELETE CASCADE
-    )  ENGINE=InnoDB DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci  ;
-
-    -- Insert default menu to table
-    INSERT INTO civicrm_navigation
-        ( id, domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight )
-    VALUES
-        ( 1,  @domain_id, NULL,                                                 '{ts escape="sql"}Search...{/ts}', 'Search...', NULL, '', NULL, '1', NULL, 1 ),
-        ( 2,  @domain_id, 'civicrm/contact/search&reset=1',                     '{ts escape="sql"}Find Contacts{/ts}', 'Find Contacts', NULL, '', '1', '1', NULL, 1 ),
-        ( 3,  @domain_id, 'civicrm/contact/search/advanced&reset=1',            '{ts escape="sql"}Find Contacts - Advanced Search{/ts}', 'Find Contacts - Advanced Search', NULL, '', '1', '1', NULL, 2 ),
-        ( 4,  @domain_id, 'civicrm/contact/search/custom&csid=15&reset=1',      '{ts escape="sql"}Full-text Search{/ts}', 'Full-text Search', NULL, '', '1', '1', NULL, 3 ),
-        ( 5,  @domain_id, 'civicrm/contact/search/builder&reset=1',             '{ts escape="sql"}Search Builder{/ts}', 'Search Builder', NULL, '', '1', '1', '1', 4 ),
-        ( 6,  @domain_id, 'civicrm/case/search&reset=1',                        '{ts escape="sql"}Find Cases{/ts}', 'Find Cases', 'access CiviCase', '', '1', '1', NULL, 5 ),
-        ( 7,  @domain_id, 'civicrm/contribute/search&reset=1',                  '{ts escape="sql"}Find Contributions{/ts}', 'Find Contributions', 'access CiviContribute', '', '1', '1', NULL, 6 ),
-        ( 8,  @domain_id, 'civicrm/mailing&reset=1',                            '{ts escape="sql"}Find Mailings{/ts}', 'Find Mailings', 'access CiviMail', '', '1', '1', NULL, 7 ),
-        ( 9,  @domain_id, 'civicrm/member/search&reset=1',                      '{ts escape="sql"}Find Members{/ts}', 'Find Members', 'access CiviMember', '', '1', '1', NULL, 8 ),
-        ( 10, @domain_id, 'civicrm/event/search&reset=1',                       '{ts escape="sql"}Find Participants{/ts}', 'Find Participants',  'access CiviEvent', '', '1', '1', NULL, 9 ),
-        ( 11, @domain_id, 'civicrm/pledge/search&reset=1',                      '{ts escape="sql"}Find Pledges{/ts}', 'Find Pledges', 'access CiviPledge', '', '1', '1', 1, 10 ),
-
-        ( 12, @domain_id, 'civicrm/contact/search/custom/list&reset=1',         '{ts escape="sql"}Custom Searches...{/ts}', 'Custom Searches...', NULL, '', '1', '1', NULL, 11 ),
-        ( 13, @domain_id, 'civicrm/contact/search/custom&reset=1&csid=8',       '{ts escape="sql"}Activity Search{/ts}', 'Activity Search', NULL, '', '12', '1', NULL, 1 ),
-        ( 14, @domain_id, 'civicrm/contact/search/custom&reset=1&csid=11',      '{ts escape="sql"}Contacts by Date Added{/ts}', 'Contacts by Date Added', NULL, '', '12', '1', NULL, 2 ),
-        ( 15, @domain_id, 'civicrm/contact/search/custom&reset=1&csid=2',       '{ts escape="sql"}Contributors by Aggregate Totals{/ts}', 'Contributors by Aggregate Totals', NULL, '', '12', '1', NULL, 3 ),
-        ( 16, @domain_id, 'civicrm/contact/search/custom&reset=1&csid=6',       '{ts escape="sql"}Proximity Search{/ts}', 'Proximity Search', NULL, '', '12', '1', NULL, 4 ),
-
-        ( 17, @domain_id, NULL,                                                 '{ts escape="sql"}Contacts{/ts}', 'Contacts', NULL, '', NULL, '1', NULL, 3 ),
-        ( 18, @domain_id, 'civicrm/contact/add&reset=1&ct=Individual',          '{ts escape="sql"}New Individual{/ts}', 'New Individual', NULL, '', '17', '1', NULL, 1 ),
-        ( 19, @domain_id, 'civicrm/contact/add&reset=1&ct=Household',           '{ts escape="sql"}New Household{/ts}', 'New Household', NULL, '', '17', '1', NULL, 2 ),
-        ( 20, @domain_id, 'civicrm/contact/add&reset=1&ct=Organization',        '{ts escape="sql"}New Organization{/ts}', 'New Organization', NULL, '', '17', '1', 1, 3 ),
-        ( 21, @domain_id, 'civicrm/activity&reset=1&action=add&context=standalone', '{ts escape="sql"}New Activity{/ts}', 'New Activity', NULL, '', '17', '1', NULL, 4 ),
-        ( 22, @domain_id, 'civicrm/contact/view/activity&atype=3&action=add&reset=1&context=standalone', '{ts escape="sql"}New Email{/ts}', 'New Email', NULL, '', '17', '1', '1', 5 ),
-        ( 23, @domain_id, 'civicrm/import/contact&reset=1',                     '{ts escape="sql"}Import Contacts{/ts}', 'Import Contacts', NULL, '', '17', '1', NULL, 6 ),
-        ( 24, @domain_id, 'civicrm/import/activity&reset=1',                    '{ts escape="sql"}Import Activities{/ts}', 'Import Activities', NULL, '', '17', '1', '1', 7 ),
-        ( 25, @domain_id, 'civicrm/group/add&reset=1',                          '{ts escape="sql"}New Group{/ts}', 'New Group', NULL, '', '17', '1', NULL, 8 ),
-        ( 26, @domain_id, 'civicrm/group&reset=1',                              '{ts escape="sql"}Manage Groups{/ts}', 'Manage Groups', NULL, '', '17', '1', '1', 9 ),
-        ( 27, @domain_id, 'civicrm/admin/tag&reset=1&action=add',               '{ts escape="sql"}New Tag{/ts}', 'New Tag', NULL, '', '17', '1', NULL, 10 ),
-        ( 28, @domain_id, 'civicrm/admin/tag&reset=1',                          '{ts escape="sql"}Manage Tags (Categories){/ts}', 'Manage Tags (Categories)', NULL, '', '17', '1', NULL, 11 ),
-
-        ( 29, @domain_id, NULL,                                                 '{ts escape="sql"}Contributions{/ts}', 'Contributions', 'access CiviContribute', '', NULL, '1', NULL, 4 ),
-        ( 30, @domain_id, 'civicrm/contribute&reset=1',                         '{ts escape="sql"}Dashboard{/ts}', 'Dashboard', NULL, '', '29', '1', NULL, 1 ),
-        ( 31, @domain_id, 'civicrm/contact/view/contribution&reset=1&action=add&context=standalone', '{ts escape="sql"}New Contribution{/ts}', 'New Contribution', NULL, '', '29', '1', NULL, 2 ),
-        ( 32, @domain_id, 'civicrm/contribute/search&reset=1',                  '{ts escape="sql"}Find Contributions{/ts}', 'Find Contributions', NULL, '', '29', '1', NULL, 3 ),
-        ( 33, @domain_id, 'civicrm/contribute/import&reset=1',                  '{ts escape="sql"}Import Contributions{/ts}', 'Import Contributions', NULL, '', '29', '1', '1', 4 ),
-
-        ( 34, @domain_id, NULL,                                                 '{ts escape="sql"}Pledges{/ts}', 'Pledges', 'access CiviPledge', '', 29, '1', 1, 5 ),
-        ( 35, @domain_id, 'civicrm/pledge&reset=1',                             '{ts escape="sql"}Dashboard{/ts}', 'Dashboard', NULL, '', '34', '1', NULL, 1 ),
-        ( 36, @domain_id, 'civicrm/pledge/search&reset=1',                      '{ts escape="sql"}Find Pledges{/ts}', 'Find Pledges', NULL, '', '34', '1', NULL, 2 ),
-        ( 37, @domain_id, 'civicrm/admin/contribute&reset=1&action=add',        '{ts escape="sql"}New Contribution Page{/ts}', 'New Contribution Page', NULL, '', '29', '1', NULL, 6 ),
-        ( 38, @domain_id, 'civicrm/admin/contribute&reset=1',                   '{ts escape="sql"}Manage Contribution Pages{/ts}', 'Manage Contribution Pages', NULL, '', '29', '1', '1', 7 ),
-        ( 39, @domain_id, 'civicrm/admin/pcp&reset=1',                          '{ts escape="sql"}Personal Campaign Pages{/ts}', 'Personal Campaign Pages', NULL, '', '29', '1', NULL, 8 ),
-        ( 40, @domain_id, 'civicrm/admin/contribute/managePremiums&reset=1',    '{ts escape="sql"}Premiums (Thank-you Gifts){/ts}', 'Premiums', NULL, '', '29', '1', NULL, 9   ),
-
-        ( 41, @domain_id, NULL,                                                 '{ts escape="sql"}Events{/ts}', 'Events', 'access CiviEvent', '', NULL, '1', NULL, 5 ),
-        ( 42, @domain_id, 'civicrm/event&reset=1',                              '{ts escape="sql"}Dashboard{/ts}', 'CiviEvent Dashboard', NULL, '', '41', '1', NULL, 1 ),
-        ( 43, @domain_id, 'civicrm/contact/view/participant&reset=1&action=add&context=standalone', '{ts escape="sql"}Register Event Participant{/ts}', 'Register Event Participant', NULL, '', '41', '1', NULL, 2 ),
-        ( 44, @domain_id, 'civicrm/event/search&reset=1',                       '{ts escape="sql"}Find Participants{/ts}', 'Find Participants', NULL, '', '41', '1', NULL, 3 ),
-        ( 45, @domain_id, 'civicrm/event/import&reset=1',                       '{ts escape="sql"}Import Participants{/ts}', 'Import Participants', NULL, '', '41', '1', '1', 4 ),
-        ( 46, @domain_id, 'civicrm/event/add&reset=1&action=add',               '{ts escape="sql"}New Event{/ts}', 'New Event', NULL, '', '41', '1', NULL, 5 ),
-        ( 47, @domain_id, 'civicrm/event/manage&reset=1',                       '{ts escape="sql"}Manage Events{/ts}', 'Manage Events', NULL, '', '41', '1', 1, 6 ),
-        ( 48, @domain_id, 'civicrm/admin/eventTemplate&reset=1',                '{ts escape="sql"}Event Templates{/ts}', 'Event Templates', 'access CiviEvent,administer CiviCRM', '', '41', '1', 1, 7 ),
-        ( 49, @domain_id, 'civicrm/admin/price&reset=1&action=add',             '{ts escape="sql"}New Price Set{/ts}', 'New Price Set', NULL, '', '41', '1', NULL, 8 ),
-        ( 50, @domain_id, 'civicrm/event/price&reset=1',                        '{ts escape="sql"}Manage Price Sets{/ts}', 'Manage Price Sets', NULL, '', '41', '1', NULL, 9 ),
-
-        ( 51, @domain_id, NULL,                                                 '{ts escape="sql"}Mailings{/ts}', 'Mailings', 'access CiviMail', '', NULL, '1', NULL, 6 ),
-        ( 52, @domain_id, 'civicrm/mailing/send&reset=1',                       '{ts escape="sql"}New Mailing{/ts}', 'New Mailing', NULL, '', '51', '1', NULL, 1 ),
-        ( 53, @domain_id, 'civicrm/mailing/browse/unscheduled&reset=1&scheduled=false', '{ts escape="sql"}Draft and Unscheduled Mailings{/ts}', 'Draft and Unscheduled Mailings', NULL, '', '51', '1', NULL, 2 ),
-        ( 54, @domain_id, 'civicrm/mailing/browse/scheduled&reset=1&scheduled=true', '{ts escape="sql"}Scheduled and Sent Mailings{/ts}', 'Scheduled and Sent Mailings', NULL, '', '51', '1', NULL, 3 ),
-        ( 55, @domain_id, 'civicrm/mailing/browse/archived&reset=1',            '{ts escape="sql"}Archived Mailings{/ts}', 'Archived Mailings', NULL, '', '51', '1', 1, 4 ),
-        ( 56, @domain_id, 'civicrm/admin/component&reset=1',                    '{ts escape="sql"}Headers, Footers, and Automated Messages{/ts}', 'Headers, Footers, and Automated Messages', NULL, '', '51', '1', NULL, 5 ),
-        ( 57, @domain_id, 'civicrm/admin/messageTemplates&reset=1',             '{ts escape="sql"}Message Templates{/ts}', 'Message Templates', NULL, '', '51', '1', NULL, 6 ),
-        ( 58, @domain_id, 'civicrm/admin/options/from_email&group=from_email_address&reset=1', '{ts escape="sql"}From Email Addresses{/ts}', 'From Email Addresses', NULL, '', '51', '1', NULL, 7 ),
-
-        ( 59, @domain_id, NULL,                                                 '{ts escape="sql"}Memberships{/ts}', 'Memberships', 'access CiviMember', '', NULL, '1', NULL, 7 ),
-        ( 60, @domain_id, 'civicrm/member&reset=1',                             '{ts escape="sql"}Dashboard{/ts}', 'Dashboard', NULL, '', '59', '1', NULL, 1 ),
-        ( 61, @domain_id, 'civicrm/contact/view/membership&reset=1&action=add&context=standalone', '{ts escape="sql"}New Membership{/ts}', 'New Membership', NULL, '', '59', '1', NULL, 2 ),
-        ( 62, @domain_id, 'civicrm/member/search&reset=1',                      '{ts escape="sql"}Find Members{/ts}', 'Find Members', NULL, '', '59', '1', NULL, 3 ),
-        ( 63, @domain_id, 'civicrm/member/import&reset=1',                      '{ts escape="sql"}Import Members{/ts}', 'Import Members', NULL, '', '59', '1', NULL, 4 ),
-
-        ( 64, @domain_id, NULL,                                                 '{ts escape="sql"}Other{/ts}', 'Other', 'access CiviGrant,access CiviCase', 'OR', NULL, '1', NULL, 8 ),
-        ( 65, @domain_id, NULL,                                                 '{ts escape="sql"}Cases{/ts}', 'Cases', 'access CiviCase', '', '64', '1', NULL, 1 ),
-        ( 66, @domain_id, 'civicrm/case&reset=1',                               '{ts escape="sql"}Dashboard{/ts}', 'Dashboard', NULL, '', '65', '1', NULL, 1 ),
-        ( 67, @domain_id, 'civicrm/contact/view/case&reset=1&action=add&atype=13&context=standalone', '{ts escape="sql"}New Case{/ts}', 'New Case', NULL, '', '65', '1', NULL, 2 ),
-        ( 68, @domain_id, 'civicrm/case/search&reset=1',                        '{ts escape="sql"}Find Cases{/ts}', 'Find Cases', NULL, '', '65', '1', 1, 3 ),
-
-        ( 69, @domain_id, NULL,                                                 '{ts escape="sql"}Grants{/ts}', 'Grants', 'access CiviGrant', '', '64', '1', NULL, 2 ),
-        ( 70, @domain_id, 'civicrm/grant&reset=1',                              '{ts escape="sql"}Dashboard{/ts}', 'Dashboard', NULL, '', '69', '1', NULL, 1 ),
-        ( 71, @domain_id, 'civicrm/contact/view/grant&reset=1&action=add&context=standalone', '{ts escape="sql"}New Grant{/ts}', 'New Grant', NULL, '', '69', '1', NULL, 2 ),
-        ( 72, @domain_id, 'civicrm/grant/search&reset=1',                       '{ts escape="sql"}Find Grants{/ts}', 'Find Grants', NULL, '', '69', '1', 1, 3 ),
-
-        ( 73, @domain_id, NULL,                                                 '{ts escape="sql"}Administer{/ts}', 'Administer', 'administer CiviCRM', '', NULL, '1', NULL, 9 ),
-        ( 74, @domain_id, 'civicrm/admin&reset=1',                              '{ts escape="sql"}Administration Console{/ts}', 'Administration Console', NULL, '', '73', '1', NULL, 1 ),
-
-        ( 75, @domain_id, NULL,                                                 '{ts escape="sql"}Customize{/ts}', 'Customize', NULL, '', '73', '1', NULL, 2 ),
-        ( 76, @domain_id, 'civicrm/admin/custom/group&reset=1',                 '{ts escape="sql"}Custom Data{/ts}', 'Custom Data', NULL, '', '75', '1', NULL, 1 ),
-        ( 77, @domain_id, 'civicrm/admin/uf/group&reset=1',                     '{ts escape="sql"}CiviCRM Profile{/ts}', 'CiviCRM Profile', NULL, '', '75', '1', NULL, 2 ),
-        ( 78, @domain_id, 'civicrm/admin/menu&reset=1',                         '{ts escape="sql"}Navigation Menu{/ts}', 'Navigation Menu', NULL, '', '75', '1', NULL, 3 ),
-        ( 79, @domain_id, 'civicrm/admin/options/custom_search&reset=1&group=custom_search', '{ts escape="sql"}Manage Custom Searches{/ts}', 'Manage Custom Searches', NULL, '', '75', '1', NULL, 4 ),
-
-        ( 80, @domain_id, NULL,                                                 '{ts escape="sql"}Configure{/ts}', 'Configure', NULL, '', '73', '1', NULL, 3 ),
-        ( 81, @domain_id, 'civicrm/admin/configtask&reset=1',                   '{ts escape="sql"}Configuration Checklist{/ts}', 'Configuration Checklist', NULL, '', '80', '1', NULL, 1 ),
-
-        ( 82, @domain_id, 'civicrm/admin/setting&reset=1',                      '{ts escape="sql"}Global Settings{/ts}', 'Global Settings', NULL, '', '80', '1', NULL, 2 ),
-        ( 83, @domain_id, 'civicrm/admin/setting/component&reset=1',            '{ts escape="sql"}Enable CiviCRM Components{/ts}', 'Enable Components', NULL, '', '82', '1', NULL, 1 ),
-        ( 84, @domain_id, 'civicrm/admin/setting/preferences/display&reset=1',  '{ts escape="sql"}Site Preferences (screen and form configuration){/ts}', 'Site Preferences', NULL, '', '82', '1', NULL, 2 ),
-        ( 85, @domain_id, 'civicrm/admin/setting/path&reset=1',                 '{ts escape="sql"}Directories{/ts}', 'Directories', NULL, '', '82', '1', NULL, 3 ),
-        ( 86, @domain_id, 'civicrm/admin/setting/url&reset=1',                  '{ts escape="sql"}Resource URLs{/ts}', 'Resource URLs', NULL, '', '82', '1', NULL, 4 ),
-        ( 87, @domain_id, 'civicrm/admin/setting/smtp&reset=1',                 '{ts escape="sql"}Outbound Email (SMTP/Sendmail){/ts}', 'Outbound Email', NULL, '', '82', '1', NULL, 5 ),
-        ( 88, @domain_id, 'civicrm/admin/setting/mapping&reset=1',              '{ts escape="sql"}Mapping and Geocoding{/ts}', 'Mapping and Geocoding', NULL, '', '82', '1', NULL, 6 ),
-        ( 89, @domain_id, 'civicrm/admin/paymentProcessor&reset=1',             '{ts escape="sql"}Payment Processors{/ts}', 'Payment Processors', NULL, '', '82', '1', NULL, 7 ),
-        ( 90, @domain_id, 'civicrm/admin/setting/localization&reset=1',         '{ts escape="sql"}Localization{/ts}', 'Localization', NULL, '', '82', '1', NULL, 8 ),
-        ( 91, @domain_id, 'civicrm/admin/setting/preferences/address&reset=1',  '{ts escape="sql"}Address Settings{/ts}', 'Address Settings', NULL, '', '82', '1', NULL, 9 ),
-        ( 92, @domain_id, 'civicrm/admin/setting/date&reset=1',                 '{ts escape="sql"}Date Formats{/ts}', 'Date Formats', NULL, '', '82', '1', NULL, 10 ),
-        ( 93, @domain_id, 'civicrm/admin/setting/uf&reset=1',                   '{ts escape="sql"}CMS Integration{/ts}', 'CMS Integration', NULL, '', '82', '1', NULL, 11 ),
-        ( 94, @domain_id, 'civicrm/admin/setting/misc&reset=1',                 '{ts escape="sql"}Miscellaneous (version check, search, reCAPTCHA...){/ts}', 'Miscellaneous', NULL, '', '82', '1', NULL, 12 ),
-        ( 95, @domain_id, 'civicrm/admin/options/safe_file_extension&group=safe_file_extension&reset=1', '{ts escape="sql"}Safe File Extensions{/ts}', 'Safe File Extensions', NULL, '', '82', '1', NULL, 13 ),
-        ( 96, @domain_id, 'civicrm/admin/setting/debug&reset=1',                '{ts escape="sql"}Debugging{/ts}', 'Debugging', NULL, '', '82', '1', NULL, 14 ),
-
-        ( 97, @domain_id, 'civicrm/admin/mapping&reset=1',                      '{ts escape="sql"}Import/Export Mappings{/ts}', 'Import/Export Mappings', NULL, '', '80', '1', NULL, 3 ),
-        ( 98, @domain_id, 'civicrm/admin/messageTemplates&reset=1',             '{ts escape="sql"}Message Templates{/ts}', 'Message Templates', NULL, '', '80', '1', NULL, 4 ),
-        ( 99, @domain_id, 'civicrm/admin/domain&action=update&reset=1',         '{ts escape="sql"}Domain Information{/ts}', 'Domain Information', NULL, '', '80', '1', NULL, 5 ),
-        ( 100,@domain_id, 'civicrm/admin/options/from_email_address&group=from_email_address&reset=1', '{ts escape="sql"}FROM Email Addresses{/ts}', 'FROM Email Addresses', NULL, '', '80', '1', NULL, 6 ),
-        ( 101,@domain_id, 'civicrm/admin/setting/updateConfigBackend&reset=1',  '{ts escape="sql"}Update Directory Path and URL{/ts}', 'Update Directory Path and URL', NULL, '', '80', '1', NULL, 7 ),
-
-        ( 102, @domain_id, NULL,                                                '{ts escape="sql"}Manage{/ts}', 'Manage', NULL, '', '73', '1', NULL, 4 ),
-        ( 103, @domain_id, 'civicrm/admin/deduperules&reset=1',                 '{ts escape="sql"}Find and Merge Duplicate Contacts{/ts}', 'Find and Merge Duplicate Contacts', '', '', '102', '1', NULL, 1 ),
-        ( 104, @domain_id, 'civicrm/admin/access&reset=1',                      '{ts escape="sql"}Access Control{/ts}', 'Access Control', NULL, '', '102', '1', NULL, 2 ),
-        ( 105, @domain_id, 'civicrm/admin/synchUser&reset=1',                   '{ts escape="sql"}Synchronize Users to Contacts{/ts}', 'Synchronize Users to Contacts', NULL, '', '102', '1', NULL, 3 ),
-
-        ( 106, @domain_id, NULL,                                                '{ts escape="sql"}Option Lists{/ts}', 'Option Lists', NULL, '', '73', '1', NULL, 5 ),
-        ( 107, @domain_id, 'civicrm/admin/options/activity_type&reset=1&group=activity_type', '{ts escape="sql"}Activity Types{/ts}', 'Activity Types', NULL, '', '106', '1', NULL, 1 ),
-        ( 108, @domain_id, 'civicrm/admin/reltype&reset=1',                     '{ts escape="sql"}Relationship Types{/ts}', 'Relationship Types', NULL, '', '106', '1', NULL, 2 ),
-        ( 109, @domain_id, 'civicrm/admin/tag&reset=1',                         '{ts escape="sql"}Tags (Categories){/ts}', 'Tags (Categories)', NULL, '', '106', '1', 1, 3 ),
-        ( 110, @domain_id, 'civicrm/admin/options/gender&reset=1&group=gender', '{ts escape="sql"}Gender Options{/ts}', 'Gender Options', NULL, '', '106', '1', NULL, 4 ),
-        ( 111, @domain_id, 'civicrm/admin/options/individual_prefix&group=individual_prefix&reset=1',   '{ts escape="sql"}Individual Prefixes (Ms, Mr...){/ts}', 'Individual Prefixes (Ms, Mr...)', NULL, '', '106', '1', NULL, 5 ),
-        ( 112, @domain_id, 'civicrm/admin/options/individual_suffix&group=individual_suffix&reset=1',   '{ts escape="sql"}Individual Suffixes (Jr, Sr...){/ts}', 'Individual Suffixes (Jr, Sr...)', NULL, '', '106', '1', 1, 6 ),
-        ( 113, @domain_id, 'civicrm/admin/options/addressee&group=addressee&reset=1',                   '{ts escape="sql"}Addressee Formats{/ts}', 'Addressee Formats', NULL, '', '106', '1', NULL, 7 ),
-        ( 114, @domain_id, 'civicrm/admin/options/email_greeting&group=email_greeting&reset=1',         '{ts escape="sql"}Email Greetings{/ts}', 'Email Greetings', NULL, '', '106', '1', NULL, 8 ),
-        ( 115, @domain_id, 'civicrm/admin/options/postal_greeting&group=postal_greeting&reset=1',       '{ts escape="sql"}Postal Greetings{/ts}', 'Postal Greetings', NULL, '', '106', '1', 1, 9 ),
-        ( 116, @domain_id, 'civicrm/admin/options/instant_messenger_service&group=instant_messenger_service&reset=1', '{ts escape="sql"}Instant Messenger Services{/ts}', 'Instant Messenger Services', NULL, '', '106', '1', NULL, 10 ),
-        ( 117, @domain_id, 'civicrm/admin/locationType&reset=1',                '{ts escape="sql"}Location Types (Home, Work...){/ts}', 'Location Types (Home, Work...)', NULL, '', '106', '1', NULL, 11 ),
-        ( 118, @domain_id, 'civicrm/admin/options/mobile_provider&group=mobile_provider&reset=1',   '{ts escape="sql"}Mobile Phone Providers{/ts}', 'Mobile Phone Providers', NULL, '', '106', '1', NULL, 12 ),
-        ( 119, @domain_id, 'civicrm/admin/options/phone_type&group=phone_type&reset=1',             '{ts escape="sql"}Phone Types{/ts}', 'Phone Types', NULL, '', '106', '1', NULL, 13 ),
-        ( 120, @domain_id, 'civicrm/admin/options/preferred_communication_method&group=preferred_communication_method&reset=1', '{ts escape="sql"}Preferred Communication Methods{/ts}', 'Preferred Communication Methods', NULL, '', '106', '1', NULL, 14 ),
-
-        ( 121, @domain_id, NULL,                                                                '{ts escape="sql"}CiviCase{/ts}', 'CiviCase', 'access CiviCase,administer CiviCRM', 'AND', '73', '1', NULL, 6 ),
-        ( 122, @domain_id, 'civicrm/admin/options/case_type&group=case_type&reset=1',           '{ts escape="sql"}Case Types{/ts}', 'Case Types', 'access CiviCase,administer CiviCRM', '', '121', '1', NULL, 1 ),
-        ( 123, @domain_id, 'civicrm/admin/options/redaction_rule&group=redaction_rule&reset=1', '{ts escape="sql"}Redaction Rules{/ts}', 'Redaction Rules', 'access CiviCase,administer CiviCRM', '', '121', '1', NULL, 2 ),
-
-        ( 124, @domain_id, NULL,                                                '{ts escape="sql"}CiviContribute{/ts}', 'CiviContribute', 'access CiviContribute,administer CiviCRM', 'AND', '73', '1', NULL, 7 ),
-        ( 125, @domain_id, 'civicrm/admin/contribute&reset=1&action=add',       '{ts escape="sql"}New Contribution Page{/ts}', 'New Contribution Page', NULL, '', '124', '1', NULL, 6 ),
-        ( 126, @domain_id, 'civicrm/admin/contribute&reset=1',                  '{ts escape="sql"}Manage Contribution Pages{/ts}', 'Manage Contribution Pages', NULL, '', '124', '1', '1', 7 ),
-        ( 127, @domain_id, 'civicrm/admin/pcp&reset=1',                         '{ts escape="sql"}Personal Campaign Pages{/ts}', 'Personal Campaign Pages', NULL, '', '124', '1', NULL, 8 ),
-        ( 128, @domain_id, 'civicrm/admin/contribute/managePremiums&reset=1',   '{ts escape="sql"}Premiums (Thank-you Gifts){/ts}', 'Premiums', NULL, '', '124', '1', 1, 9   ),
-        ( 129, @domain_id, 'civicrm/admin/contribute/contributionType&reset=1', '{ts escape="sql"}Contribution Types{/ts}', 'Contribution Types', NULL, '', '124', '1', NULL, 10   ),
-        ( 130, @domain_id, 'civicrm/admin/options/payment_instrument&group=payment_instrument&reset=1', '{ts escape="sql"}Payment Instruments{/ts}', 'Payment Instruments', NULL, '', '124', '1', NULL, 11   ),
-        ( 131, @domain_id, 'civicrm/admin/options/accept_creditcard&group=accept_creditcard&reset=1',   '{ts escape="sql"}Accepted Credit Cards{/ts}', 'Accepted Credit Cards', NULL, '', '124', '1', NULL, 12   ),
-
-        ( 132, @domain_id, NULL,                                                '{ts escape="sql"}CiviEvent{/ts}', 'CiviEvent', 'access CiviEvent,administer CiviCRM', 'AND', '73', '1', NULL, 8 ),
-        ( 133, @domain_id, 'civicrm/event/add&reset=1&action=add',              '{ts escape="sql"}New Event{/ts}', 'New Event', NULL, '', '132', '1', NULL, 1 ),
-        ( 134, @domain_id, 'civicrm/event/manage&reset=1',                      '{ts escape="sql"}Manage Events{/ts}', 'Manage Events', NULL, '', '132', '1', 1, 2 ),
-        ( 135, @domain_id, 'civicrm/admin/eventTemplate&reset=1',               '{ts escape="sql"}Event Templates{/ts}', 'Event Templates', 'access CiviEvent,administer CiviCRM', '', '132', '1', 1, 3 ),
-        ( 136, @domain_id, 'civicrm/admin/price&reset=1&action=add',            '{ts escape="sql"}New Price Set{/ts}', 'New Price Set', NULL, '', '132', '1', NULL, 4 ),
-        ( 137, @domain_id, 'civicrm/event/price&reset=1',                       '{ts escape="sql"}Manage Price Sets{/ts}', 'Manage Price Sets', NULL, '', '132', '1', 1, 5 ),
-        ( 138, @domain_id, 'civicrm/admin/options/participant_listing&group=participant_listing&reset=1', '{ts escape="sql"}Participant Listing Templates{/ts}', 'Participant Listing Templates', NULL, '', '132', '1', NULL, 6 ),
-        ( 139, @domain_id, 'civicrm/admin/options/event_type&group=event_type&reset=1', '{ts escape="sql"}Event Types{/ts}', 'Event Types', NULL, '', '132', '1', NULL, 7 ),
-        ( 140, @domain_id, 'civicrm/admin/participant_status&reset=1',          '{ts escape="sql"}Participant Statuses{/ts}', 'Participant Statuses', NULL, '', '132', '1', NULL, 8 ),
-        ( 141, @domain_id, 'civicrm/admin/options/participant_role&group=participant_role&reset=1', '{ts escape="sql"}Participant Roles{/ts}', 'Participant Roles', NULL, '', '132', '1', NULL, 9 ),
-
-        ( 142, @domain_id, NULL,                                                        '{ts escape="sql"}CiviGrant{/ts}', 'CiviGrant', 'access CiviGrant,administer CiviCRM', 'AND', '73', '1', NULL, 9 ),
-        ( 143, @domain_id, 'civicrm/admin/options/grant_type&group=grant_type&reset=1', '{ts escape="sql"}Grant Types{/ts}', 'Grant Types', 'access CiviGrant,administer CiviCRM', '', '142', '1', NULL, 1 ),
-
-        ( 144, @domain_id, NULL,                                                '{ts escape="sql"}CiviMail{/ts}', 'CiviMail', 'access CiviMail,administer CiviCRM', 'AND', '73', '1', NULL, 10 ),
-        ( 145, @domain_id, 'civicrm/admin/component&reset=1',                   '{ts escape="sql"}Headers, Footers, and Automated Messages{/ts}', 'Headers, Footers, and Automated Messages', NULL, '', '144', '1', NULL, 1 ),
-        ( 146, @domain_id, 'civicrm/admin/messageTemplates&reset=1',            '{ts escape="sql"}Message Templates{/ts}', 'Message Templates', NULL, '', '144', '1', NULL, 2 ),
-        ( 147, @domain_id, 'civicrm/admin/options/from_email&group=from_email_address&reset=1', '{ts escape="sql"}From Email Addresses{/ts}', 'From Email Addresses', NULL, '', '144', '1', NULL, 3 ),
-        ( 148, @domain_id, 'civicrm/admin/mailSettings&reset=1',                '{ts escape="sql"}Mail Accounts{/ts}', 'Mail Accounts', NULL, '', '144', '1', NULL, 4 ),
-
-        ( 149, @domain_id, NULL,                                                '{ts escape="sql"}CiviMember{/ts}',     'CiviMember', 'access CiviMember,administer CiviCRM', 'AND', '73', '1', NULL, 11 ),
-        ( 150, @domain_id, 'civicrm/admin/member/membershipType&reset=1',       '{ts escape="sql"}Membership Types{/ts}', 'Membership Types', 'access CiviMember,administer CiviCRM', '', '149', '1', NULL, 1 ),
-        ( 151, @domain_id, 'civicrm/admin/member/membershipStatus&reset=1',     '{ts escape="sql"}Membership Status Rules{/ts}', 'Membership Status Rules', 'access CiviMember,administer CiviCRM', '', '149', '1', NULL, 2 ),
-
-        ( 152, @domain_id, NULL,                                                    '{ts escape="sql"}CiviReport{/ts}', 'CiviReport', 'access CiviReport,administer CiviCRM', 'AND', '73', '1', NULL, 12 ),
-        ( 153, @domain_id, 'civicrm/report/list&reset=1',                           '{ts escape="sql"}Reports Listing{/ts}', 'Reports Listing', NULL, '', '152', '1', NULL, 1 ),
-        ( 154, @domain_id, 'civicrm/admin/report/template/list&reset=1',            '{ts escape="sql"}Create Reports from Templates{/ts}', 'Create Reports from Templates', NULL, '', '152', '1', NULL, 2 ),
-        ( 155, @domain_id, 'civicrm/admin/report/options/report_template&reset=1',  '{ts escape="sql"}Manage Templates{/ts}', 'Manage Templates', NULL, '', '152', '1', NULL, 3 ),
-        ( 156, @domain_id, 'civicrm/admin/report/register&reset=1',                  '{ts escape="sql"}Register Report{/ts}', 'Register Report', 'administer Reports',  '', '152', '1', NULL, 4 ),
-
-        ( 157, @domain_id, NULL,                                '{ts escape="sql"}Help{/ts}',               'Help',             NULL, '',     NULL, '1', NULL, 10),
-        ( 158, @domain_id, 'http://documentation.civicrm.org',  '{ts escape="sql"}Documentation{/ts}',      'Documentation',    NULL, 'AND', '157', '1', NULL, 1 ),
-        ( 159, @domain_id, 'http://forum.civicrm.org',          '{ts escape="sql"}Community Forums{/ts}',   'Community Forums', NULL, 'AND', '157', '1', NULL, 2 ),
-        ( 160, @domain_id, 'http://civicrm.org/participate',    '{ts escape="sql"}Participate{/ts}',        'Participate',      NULL, 'AND', '157', '1', NULL, 3 ),
-        ( 161, @domain_id, 'http://civicrm.org/aboutcivicrm',   '{ts escape="sql"}About{/ts}',              'About',            NULL, 'AND', '157', '1', NULL, 4 ),
-
-        ( 162, @domain_id, 'civicrm/admin/setting/search?reset=1',              '{ts escape="sql"}Search Settings{/ts}', 'Search Settings', NULL, '', '82', '1', NULL, 10 ),
-
-        ( 163, @domain_id, NULL,                                                     '{ts escape="sql"}Reports{/ts}',                        'Reports',                       'access CiviReport',   '',  NULL, '1', NULL, 8 ),
-        ( 164, @domain_id, 'civicrm/report/list&reset=1',                            '{ts escape="sql"}Reports Listing{/ts}',                'Reports Listing',                 NULL,                '', '163', '1', NULL, 1 ),
-        ( 165, @domain_id, 'civicrm/admin/report/template/list&reset=1',             '{ts escape="sql"}Create Reports from Templates{/ts}',  'Create Reports from Templates', 'administer Reports',  '', '163', '1', 1,    2 ),
-
-        ( 166, @domain_id, 'civicrm/report/instance/1&reset=1',     '{ts escape="sql"}Constituent Report (Summary){/ts}',       '{literal}Constituent Report (Summary){/literal}',     'administer CiviCRM',       '',  163,  '1', NULL, 3 ),
-        ( 167, @domain_id, 'civicrm/report/instance/2&reset=1',     '{ts escape="sql"}Constituent Report (Detail){/ts}',        '{literal}Constituent Report (Detail){/literal}',      'administer CiviCRM',       '',  163,  '1', NULL, 4 ),
-        ( 168, @domain_id, 'civicrm/report/instance/3&reset=1',     '{ts escape="sql"}Donor Report (Summary){/ts}',             '{literal}Donor Report (Summary){/literal}',           'access CiviContribute',    '',  163,  '1', NULL, 5 ),
-        ( 169, @domain_id, 'civicrm/report/instance/4&reset=1',     '{ts escape="sql"}Donor Report (Detail){/ts}',              '{literal}Donor Report (Detail){/literal}',            'access CiviContribute',    '',  163,  '1', NULL, 6 ),
-        ( 170, @domain_id, 'civicrm/report/instance/5&reset=1',     '{ts escape="sql"}Donation Summary Report (Repeat){/ts}',   '{literal}Donation Summary Report (Repeat){/literal}', 'access CiviContribute',    '',  163,  '1', NULL, 7 ),
-        ( 171, @domain_id, 'civicrm/report/instance/6&reset=1',     '{ts escape="sql"}SYBUNT Report{/ts}',                      'SYBUNT Report',                                       'access CiviContribute',    '',  163,  '1', NULL, 8 ),
-        ( 172, @domain_id, 'civicrm/report/instance/7&reset=1',     '{ts escape="sql"}LYBUNT Report{/ts}',                      'LYBUNT Report',                                       'access CiviContribute',    '',  163,  '1', NULL, 9 ),
-        ( 173, @domain_id, 'civicrm/report/instance/8&reset=1',     '{ts escape="sql"}Soft Credit Report{/ts}',                 'Soft Credit Report',                                  'access CiviContribute',    '',  163,  '1', NULL, 10 ),
-        ( 174, @domain_id, 'civicrm/report/instance/9&reset=1',     '{ts escape="sql"}Membership Report (Summary){/ts}',        '{literal}Membership Report (Summary){/literal}',      'access CiviMember',        '',  163,  '1', NULL, 11 ),
-        ( 175, @domain_id, 'civicrm/report/instance/10&reset=1',    '{ts escape="sql"}Membership Report (Detail){/ts}',         '{literal}Membership Report (Detail){/literal}',       'access CiviMember',        '',  163,  '1', NULL, 12 ),
-        ( 176, @domain_id, 'civicrm/report/instance/11&reset=1',    '{ts escape="sql"}Membership Report (Lapsed){/ts}',         '{literal}Membership Report (Lapsed){/literal}',       'access CiviMember',        '',  163,  '1', NULL, 13 ),
-        ( 177, @domain_id, 'civicrm/report/instance/12&reset=1',    '{ts escape="sql"}Event Participant Report (List){/ts}',    '{literal}Event Participant Report (List){/literal}',  'access CiviEvent',         '',  163,  '1', NULL, 14 ),
-        ( 178, @domain_id, 'civicrm/report/instance/13&reset=1',    '{ts escape="sql"}Event Income Report (Summary){/ts}',      '{literal}Event Income Report (Summary){/literal}',    'access CiviEvent',         '',  163,  '1', NULL, 15 ),
-        ( 179, @domain_id, 'civicrm/report/instance/14&reset=1',    '{ts escape="sql"}Event Income Report (Detail){/ts}',       '{literal}Event Income Report (Detail){/literal}',     'access CiviEvent',         '',  163,  '1', NULL, 16 ),
-        ( 180, @domain_id, 'civicrm/report/instance/15&reset=1',    '{ts escape="sql"}Attendee List{/ts}',                      'Attendee List',                                       'access CiviEvent',         '',  163,  '1', NULL, 17 ),
-        ( 181, @domain_id, 'civicrm/report/instance/16&reset=1',    '{ts escape="sql"}Activity Report{/ts}',                    'activity',                                            'administer CiviCRM',       '',  163,  '1', NULL, 18 ),
-        ( 182, @domain_id, 'civicrm/report/instance/17&reset=1',    '{ts escape="sql"}Relationship Report{/ts}',                'Relationship Report',                                 'administer CiviCRM',       '',  163,  '1', NULL, 19 ),
-        ( 183, @domain_id, 'civicrm/report/instance/18&reset=1',    '{ts escape="sql"}Donation Summary Report (Organization){/ts}', '{literal}Donation Summary Report (Organization){/literal}', 'access CiviContribute', '',  163,  '1', NULL, 20 ),
-        ( 184, @domain_id, 'civicrm/report/instance/19&reset=1',    '{ts escape="sql"}Donation Summary Report (Household){/ts}',    '{literal}Donation Summary Report (Household){/literal}',    'access CiviContribute', '',  163,  '1', NULL, 21 ),
-        ( 185, @domain_id, 'civicrm/report/instance/20&reset=1',    '{ts escape="sql"}Top Donors Report{/ts}',                      'Top Donors Report',                                         'access CiviContribute', '',  163,  '1', NULL, 22 ),
-        ( 186, @domain_id, 'civicrm/report/instance/21&reset=1',    '{ts escape="sql"}Pledge Summary Report{/ts}',              'Pledge Summary Report',            'access CiviPledge',       '',  163,  '1', NULL, 23 ),
-        ( 187, @domain_id, 'civicrm/report/instance/22&reset=1',    '{ts escape="sql"}Pledged but not Paid Report{/ts}',        'Pledged but not Paid Report',      'access CiviPledge',       '',  163,  '1', NULL, 24 );
-
-
-    -- End navigation
-
-    -- Enabled the Report Templates
-    SELECT @option_group_id_report         := max(id) from civicrm_option_group where name = 'report_template';
-
-    UPDATE civicrm_option_value
-        SET is_active = 1
-    WHERE   option_group_id = @option_group_id_report AND
-            value IN ('activity','contribute/organizationSummary','contribute/householdSummary','contribute/topDonor','pledge/summary','pledge/pbnp');
-
-    -- Add New templates
-    INSERT INTO civicrm_option_value
-        (option_group_id,         {localize field='label'}label{/localize},   value,                  name,                                   weight, {localize field='description'}description{/localize}, is_active, component_id)
-    VALUES
-        (@option_group_id_report, {localize}'Relationship Report'{/localize}, 'contact/relationship', 'CRM_Report_Form_Contact_Relationship', 23,     {localize}'Relationship Report'{/localize},           1,         NULL);
-    -- adde new reports
-    INSERT INTO `civicrm_report_instance`
-        (title, report_id, description, permission, form_values)
-    VALUES
-        ('{ts escape="sql"}Activity Report{/ts}',                        'activity',                        'Provides a list of constituent activity including activity statistics for one/all contacts during a given date range(required)', 'administer CiviCRM', '{literal}a:22:{s:6:"fields"#a:7:{s:14:"contact_source"#s:1:"1"#s:16:"contact_assignee"#s:1:"1"#s:14:"contact_target"#s:1:"1"#s:16:"activity_type_id"#s:1:"1"#s:7:"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:27:"activity_date_time_relative"#s:10:"this.month"#s:23:"activity_date_time_from"#a:3:{s:1:"M"#s:0:""#s:1:"d"#s:0:""#s:1:"Y"#s:0:""#}s:21:"activity_date_time_to"#a:3:{s:1:"M"#s:0:""#s:1:"d"#s:0:""#s:1:"Y"#s:0:""#}s:10:"subject_op"#s:3:"has"#s:13:"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:18:"administer CiviCRM"#s:6:"groups"#s:0:""#}{/literal}'),
-        ('{ts escape="sql"}Relationship Report{/ts}',                    'contact/relationship',            'Gives relationship details between two contacats', 'administer CiviCRM', '{literal}a:27:{s:6:"fields"#a:4:{s:14:"display_name_a"#s:1:"1"#s:14:"display_name_b"#s:1:"1"#s:9:"label_a_b"#s:1:"1"#s:7:"email_a"#s:1:"1"#}s:17:"contact_name_a_op"#s:3:"has"#s:20:"contact_name_a_value"#s:0:""#s:17:"contact_name_b_op"#s:3:"has"#s:20:"contact_name_b_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: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:8:"label_op"#s:2:"eq"#s:11:"label_value"#s: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:6:"gid_op"#s:2:"in"#s:9:"gid_value"#a:0:{}s:11:"description"#s:48:"Gives relationship details between two contacts"#s:13:"email_subject"#s:0:""#s:8:"email_to"#s:0:""#s:8:"email_cc"#s:0:""#s:10:"permission"#s:18:"administer CiviCRM"#s:6:"groups"#s:0:""#}{/literal}'),
-        ('{ts escape="sql"}Donation Summary Report (Organization){/ts}', 'contribute/organizationSummary',  '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.', 'access CiviContribute', '{literal}a:20:{s:6:"fields"#a:5:{s:17:"organization_name"#s:1:"1"#s:12:"display_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"#a:3:{s:1:"M"#s:0:""#s:1:"d"#s:0:""#s:1:"Y"#s:0:""#}s:15:"receive_date_to"#a:3:{s:1:"M"#s:0:""#s:1:"d"#s:0:""#s:1:"Y"#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:6:"groups"#s:0:""#}{/literal}'),
-        ('{ts escape="sql"}Donation Summary Report (Household){/ts}',    'contribute/householdSummary',     '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.)', 'access CiviContribute', '{literal}a:20:{s:6:"fields"#a:5:{s:14:"household_name"#s:1:"1"#s:12:"display_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"#a:3:{s:1:"M"#s:0:""#s:1:"d"#s:0:""#s:1:"Y"#s:0:""#}s:15:"receive_date_to"#a:3:{s:1:"M"#s:0:""#s:1:"d"#s:0:""#s:1:"Y"#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:""#}{/literal}'),
-        ('{ts escape="sql"}Top Donors Report{/ts}',                      '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', '{literal}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"#a:3:{s:1:"M"#s:0:""#s:1:"d"#s:0:""#s:1:"Y"#s:0:""#}s:15:"receive_date_to"#a:3:{s:1:"M"#s:0:""#s:1:"d"#s:0:""#s:1:"Y"#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:23:"contribution_type_id_op"#s:2:"in"#s:26:"contribution_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:""#}{/literal}'),
-        ('{ts escape="sql"}Pledge Summary Report{/ts}',                  'pledge/summary',                  'Updates you with your Pledge Summary (if any) such as your pledge status, next payment date, amount, payment due, total amount paid etc.', 'access CiviPledge', '{literal}a:24:{s:6:"fields"#a:4:{s:12:"display_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"#a:3:{s:1:"M"#s:0:""#s:1:"d"#s:0:""#s:1:"Y"#s:0:""#}s:21:"pledge_create_date_to"#a:3:{s:1:"M"#s:0:""#s:1:"d"#s:0:""#s:1:"Y"#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:11:"description"#s:136:"Updates you with your Pledge Summary (if any) such as your pledge status, next payment date, amount, payment due, total amount paid etc."#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:""#}{/literal}'),
-        ('{ts escape="sql"}Pledged but not Paid Report{/ts}',            'pledge/pbnp',                     'Pledged but not Paid Report', 'access CiviPledge', '{literal}a:14:{s:6:"fields"#a:6:{s:12:"display_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:5:"email"#s:1:"1"#}s:27:"pledge_create_date_relative"#s:1:"0"#s:23:"pledge_create_date_from"#a:3:{s:1:"M"#s:0:""#s:1:"d"#s:0:""#s:1:"Y"#s:0:""#}s:21:"pledge_create_date_to"#a:3:{s:1:"M"#s:0:""#s:1:"d"#s:0:""#s:1:"Y"#s:0:""#}s:23:"contribution_type_id_op"#s:2:"in"#s:26:"contribution_type_id_value"#a:0:{}s:6:"gid_op"#s:2:"in"#s:9:"gid_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:""#}{/literal}');
-
-
-    -- CRM-4114
-    ALTER TABLE `civicrm_report_instance`
-        ADD navigation_id int unsigned  COMMENT 'FK to navigation ID',
-        ADD CONSTRAINT `FK_civicrm_report_instance_navigation_id` FOREIGN KEY (`navigation_id`) REFERENCES `civicrm_navigation` (`id`) ON DELETE SET NULL;
-
-    UPDATE civicrm_report_instance
-  SET navigation_id = CASE id
-                                WHEN 1  THEN 166
-                                WHEN 2  THEN 167
-                                WHEN 3  THEN 168
-                                WHEN 4  THEN 169
-                                WHEN 5  THEN 170
-                                WHEN 6  THEN 171
-                                WHEN 7  THEN 172
-                                WHEN 8  THEN 173
-                                WHEN 9  THEN 174
-                                WHEN 10 THEN 175
-                                WHEN 11 THEN 176
-                                WHEN 12 THEN 177
-                                WHEN 13 THEN 178
-                                WHEN 14 THEN 179
-                                WHEN 15 THEN 180
-                                WHEN 16 THEN 181
-                                WHEN 17 THEN 182
-                                WHEN 18 THEN 183
-                                WHEN 19 THEN 184
-                                WHEN 20 THEN 185
-                                WHEN 21 THEN 186
-                                WHEN 22 THEN 187
-                                ELSE navigation_id
-                            END;
-
-    -- CRM-4414
-    -- Add individual, organization and household default profile
-    INSERT INTO civicrm_uf_group
-        (name,               group_type,             {localize field='title'}title{/localize}, is_reserved)
-    VALUES
-        ('new_individual',   'Individual,Contact',   {localize}'New Individual'{/localize},    1),
-        ('new_organization', 'Organization,Contact', {localize}'New Organization'{/localize},  1),
-        ('new_household',    'Household,Contact',    {localize}'New Household'{/localize},     1);
-
-    SELECT @uf_group_id_individual   := max(id) from civicrm_uf_group where name = 'new_individual';
-    SELECT @uf_group_id_organization := max(id) from civicrm_uf_group where name = 'new_organization';
-    SELECT @uf_group_id_household    := max(id) from civicrm_uf_group where name = 'new_household';
-
-    INSERT INTO `civicrm_uf_join`
-        ( `is_active`, `module`, `entity_table`, `entity_id`, `weight`, `uf_group_id` )
-    VALUES
-        ( 1,           'Profile', NULL,           NULL,        3,       @uf_group_id_individual   ),
-        ( 1,           'Profile', NULL,           NULL,        4,       @uf_group_id_organization ),
-        ( 1,           'Profile', NULL,           NULL,        5,       @uf_group_id_household    );
-
-    INSERT INTO civicrm_uf_field
-        (uf_group_id,               field_name,          is_required, is_reserved, weight, {localize field='label'}label{/localize}, field_type)
-    VALUES
-        (@uf_group_id_individual,   'first_name',        1,           0,           1,      {localize}'First Name'{/localize},        'Individual'  ),
-        (@uf_group_id_individual,   'last_name',         1,           0,           2,      {localize}'Last Name'{/localize},         'Individual'  ),
-        (@uf_group_id_individual,   'email',             1,           0,           3,      {localize}'Email Address'{/localize},     'Contact'     ),
-        (@uf_group_id_organization, 'organization_name', 1,           0,           1,      {localize}'Organization Name'{/localize}, 'Organization'),
-        (@uf_group_id_organization, 'email',             1,           0,           2,      {localize}'Email Address'{/localize},     'Contact'     ),
-        (@uf_group_id_household,    'household_name',    1,           0,           1,      {localize}'Household Name'{/localize},    'Household'   ),
-        (@uf_group_id_household,    'email',             1,           0,           2,      {localize}'Email Address'{/localize},     'Contact'     );
-
-    -- State / province
-    -- CRM-4534 CRM-4686 CRM-4769
-        INSERT IGNORE INTO civicrm_state_province
-            (id, name, abbreviation, country_id)
-        VALUES
-            (5218,  'Distrito Federal', 'DIF', 1140),
-            (10004, 'Bonaire',          'BON', 1151),
-            (10005, 'Curaçao',         'CUR', 1151),
-            (10006, 'Saba',             'SAB', 1151),
-            (10007, 'St. Eustatius',    'EUA', 1151),
-            (10008, 'St. Maarten',      'SXM', 1151),
-      (10009, "Jura",     "39" , 1076);
-
-    -- CRM-4587 CRM-4534 CRM-4762 CRM-4394
-    -- Update the name
-       UPDATE civicrm_state_province
-            SET name = CASE id
-                WHEN 1859 THEN "Sofia"
-                WHEN 3707 THEN "Ulaanbaatar"
-                WHEN 2879 THEN "Achaïa"
-                WHEN 3808 THEN "Coahuila"
-                WHEN 3809 THEN "Colima"
-                WHEN 3811 THEN "Chihuahua"
-      ELSE name
-      END,
-            abbreviation = CASE id
-    WHEN 2543 THEN "36"
-          WHEN 2544 THEN "35"
-      ELSE abbreviation
-      END,
-      country_id = CASE id
-        WHEN 1637 THEN 1008
-      ELSE country_id
-
-        END;
-
-    -- CRM-4633
-    ALTER TABLE `civicrm_contact`
-        ADD `do_not_sms` tinyint(4) default '0' AFTER `do_not_mail`;
-
-    -- CRM-4664
-    ALTER TABLE `civicrm_option_value`
-        MODIFY `name` VARCHAR(255) COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT 'Stores a fixed (non-translated) name for this option value. Lookup functions should use the name as the key for the option value row.';
-
-    -- CRM-4687
-    -- set activity_date = due_date and drop due_date_time column from civicrm_activity.
-    UPDATE civicrm_activity ca INNER JOIN civicrm_case_activity cca ON ca.id = cca.activity_id
-        SET activity_date_time = COALESCE( ca.activity_date_time, ca.due_date_time );
-
-    ALTER TABLE civicrm_activity DROP COLUMN due_date_time;
-
-    -- CRM-4120, CRM-4319, CRM-4326, CRM-4464
-    ALTER TABLE civicrm_event
-        CHANGE default_discount_id default_discount_fee_id INT( 10 ) UNSIGNED NULL DEFAULT NULL COMMENT 'FK to civicrm_option_value.',
-        ADD COLUMN is_template tinyint(4) default NULL COMMENT 'whether the event has template',
-        {localize field='template_title'}ADD COLUMN template_title varchar(255) collate utf8_unicode_ci default NULL COMMENT 'Event Template Title'{/localize},
-        ADD COLUMN has_waitlist tinyint(4) default NULL COMMENT 'Whether the event has waitlist support',
-        ADD COLUMN requires_approval tinyint(4) default NULL COMMENT 'Whether participants require approval before they can finish registering.',
-        ADD COLUMN expiration_time int unsigned   DEFAULT NULL COMMENT 'Expire pending but unconfirmed registrations after this many hours.',
-        {localize field='waitlist_text'}ADD COLUMN waitlist_text text collate utf8_unicode_ci default NULL COMMENT 'Text to display when the event is full, but participants can signup for a waitlist.'{/localize},
-        {localize field='approval_req_text'}ADD COLUMN approval_req_text text collate utf8_unicode_ci default NULL COMMENT 'Text to display when the approval is required to complete registration for an event.'{/localize};
-
-    INSERT INTO civicrm_event
-        (is_template, {localize field='template_title'}template_title{/localize}, event_type_id, default_role_id, participant_listing_id, is_public, is_monetary, is_online_registration, is_multiple_registrations, allow_same_participant_emails, is_email_confirm, contribution_type_id, {localize field='fee_label'}fee_label{/localize}, {localize field='confirm_title'}confirm_title{/localize}, {localize field='thankyou_title'}thankyou_title{/localize}, {localize field='confirm_from_name'}confirm_from_name{/localize}, confirm_from_email, is_active)
-    VALUES
-        (1, {localize}'Free Meeting without Online Registration'{/localize}, 4, 1, 1, 1, 0, 0, null, null, null,  null, {localize}null{/localize},             {localize}null{/localize},                                    {localize}null{/localize},                      {localize}null{/localize},                   null,                          1),
-        (1, {localize}'Free Meeting with Online Registration'{/localize},    4, 1, 1, 1, 0, 1, 1,    1,    0,     null, {localize}null{/localize},             {localize}'Confirm Your Registration Information'{/localize}, {localize}'Thanks for Registering!'{/localize}, {localize}null{/localize},                   null,                          1),
-        (1, {localize}'Paid Conference with Online Registration'{/localize}, 1, 1, 1, 1, 1, 1, 1,    1,    1,     4,    {localize}'Conference Fee'{/localize}, {localize}'Confirm Your Registration Information'{/localize}, {localize}'Thanks for Registering!'{/localize}, {localize}'Event Template Dept.'{/localize}, 'event_templates@example.org', 1);
-
-    -- CRM-4138
-    ALTER TABLE `civicrm_payment_processor_type`
-        ADD COLUMN `payment_type` int unsigned   DEFAULT 1 COMMENT 'Payment Type: Credit or Debit';
-    ALTER TABLE `civicrm_payment_processor`
-        ADD COLUMN `payment_type` int unsigned   DEFAULT 1 COMMENT 'Payment Type: Credit or Debit';
-
-    -- CRM-4605
-    -- A. upgrade wt and val by 2
-    -- B. Insert Custom data and Address as group for first two empty location
-    -- C. Update Communication Pref name
-    -- D. Swap wt and value for Comm Pref, Notes, Demographics and make sure these record has to have wt and val 3, 4, 5 in sequence.
-
-    -- get option group id for contact_edit_options
-    SELECT @option_group_id_ceOpt := max(id) from civicrm_option_group where name = 'contact_edit_options';
-
-    -- increment all wt and val by 2 and make first two location empty.
-    UPDATE civicrm_option_value
-        SET value = value + 2, weight = weight + 2
-    WHERE option_group_id = @option_group_id_ceOpt;
-
-    -- insert value for Custom Data and Address at first two locations.
-    INSERT INTO civicrm_option_value
-        (option_group_id,        {localize field='label'}label{/localize}, value, name,         grouping, filter, is_default, weight, is_optgroup, is_reserved, is_active)
-    VALUES
-        (@option_group_id_ceOpt, {localize}'Custom Data'{/localize},       1,     'CustomData', NULL,     0,      NULL,       1,      0,           0,           1),
-        (@option_group_id_ceOpt, {localize}'Address'{/localize},           2,     'Address',    NULL,     0,      NULL,       2,      0,           0,           1);
-
-    -- update Comm pref group name.
-    UPDATE civicrm_option_value
-        SET name = 'CommunicationPreferences'
-    WHERE option_group_id=@option_group_id_ceOpt AND name = 'CommBlock';
-
-    -- 1. Communication pref.
-    -- swap wt and val and make commumication pref wt and val = 3
-    Update civicrm_option_value otherRecord, civicrm_option_value commPref
-        SET otherRecord.value = commPref.value, otherRecord.weight = commPref.weight, commPref.value = 3,  commPref.weight = 3
-    WHERE  otherRecord.value = 3 AND commPref.name = 'CommunicationPreferences' AND commPref.option_group_id = @option_group_id_ceOpt AND otherRecord.option_group_id = @option_group_id_ceOpt;
-
-    -- make sure comm has val and wt = 3
-    Update civicrm_option_value
-        SET value = 3, weight = 3
-    WHERE name = 'CommunicationPreferences' and option_group_id = @option_group_id_ceOpt;
-
-    -- 2.  Notes.
-    -- swap wt and val and make notes wt and val = 4
-    Update civicrm_option_value otherRecord, civicrm_option_value notes
-        SET otherRecord.value = notes.value, otherRecord.weight = notes.weight, notes.value = 4,  notes.weight=4
-    WHERE  otherRecord.value = 4 AND notes.name = 'Notes' AND notes.option_group_id = @option_group_id_ceOpt AND otherRecord.option_group_id = @option_group_id_ceOpt;
-
-    -- make sure Notes has val and wt = 4
-    Update civicrm_option_value
-        SET value = 4, weight = 4
-    WHERE name = 'Notes' and option_group_id = @option_group_id_ceOpt;
-
-    -- 3.  Demographics.
-    -- swap wt and val and make demographics wt and val = 5
-    Update civicrm_option_value otherRecord, civicrm_option_value demographics
-        SET otherRecord.value = demographics.value, otherRecord.weight = demographics.weight, demographics.value = 5,  demographics.weight=5
-    WHERE  otherRecord.value = 5 AND demographics.name = 'Demographics' AND demographics.option_group_id = @option_group_id_ceOpt AND otherRecord.option_group_id = @option_group_id_ceOpt;
-
-    -- make sure Demoghraphics has val and wt = 5
-    Update civicrm_option_value
-        SET value = 5, weight = 5
-    WHERE name = 'Demographics' and option_group_id = @option_group_id_ceOpt;
-
-    -- move location blocks to contact_edit_options.
-    SELECT @max_wt  := max(weight) from civicrm_option_value where option_group_id=@option_group_id_ceOpt;
-    SELECT @max_val := max(weight) from civicrm_option_value where option_group_id=@option_group_id_ceOpt;
-    INSERT INTO civicrm_option_value
-        (option_group_id,        {localize field='label'}label{/localize}, value,                           name,     grouping, filter, is_default, weight,                        is_optgroup, is_reserved, is_active, component_id, visibility_id)
-    VALUES
-        (@option_group_id_ceOpt, {localize}'Email'{/localize},             (SELECT @max_val := @max_val+1), 'Email',  NULL,     1,      NULL,       (SELECT @max_wt := @max_wt+1), 0,           0,           1,         NULL,         NULL),
-        (@option_group_id_ceOpt, {localize}'Phone'{/localize},             (SELECT @max_val := @max_val+1), 'Phone',  NULL,     1,      NULL,       (SELECT @max_wt := @max_wt+1), 0,           0,           1,         NULL,         NULL),
-        (@option_group_id_ceOpt, {localize}'Instant Messenger'{/localize}, (SELECT @max_val := @max_val+1), 'IM',     NULL,     1,      NULL,       (SELECT @max_wt := @max_wt+1), 0,           0,           1,         NULL,         NULL),
-        (@option_group_id_ceOpt, {localize}'Open ID'{/localize},           (SELECT @max_val := @max_val+1), 'OpenID', NULL,     1,      NULL,       (SELECT @max_wt := @max_wt+1), 0,           0,           1,         NULL,         NULL);
-
-    -- remove location blocks from address_options.
-    SELECT @option_group_id_adOpt := max(id) from civicrm_option_group where name = 'address_options';
-    DELETE FROM civicrm_option_value where option_group_id = @option_group_id_adOpt AND name IN ( 'im', 'openid' );
-
-    -- update civicrm_preferences.contact_edit_options.
-    -- ideally we should append value, but we did changed wt and values so lets reset it to default.
-    UPDATE  civicrm_preferences
-        SET  contact_edit_options = (   SELECT  CONCAT( GROUP_CONCAT('\ 1',value SEPARATOR ''), '\ 1' )
-                                        FROM  civicrm_option_value
-                                        WHERE  option_group_id = @option_group_id_ceOpt
-                                        Group by  option_group_id
-                                    )
-    WHERE  is_domain = 1 AND  contact_id IS NULL;
-    -- End of CRM-4605
-
-
-    -- CRM-4575
-    -- drop column greeting type and custom greeting from civicrm_contact
-    ALTER TABLE `civicrm_contact`
-        DROP `greeting_type_id`,
-        DROP `custom_greeting`;
-
-    -- delete greeting type option group
-    SELECT @og_id_greeting := max(id) from civicrm_option_group where name = 'greeting_type';
-    DELETE FROM civicrm_option_value WHERE option_group_id = @og_id_greeting;
-    DELETE FROM civicrm_option_group WHERE              id = @og_id_greeting;
-
-    -- add email greeting, postal greeting and addressee fields
-    ALTER TABLE `civicrm_contact`
-        ADD `email_greeting_id` INT(10) UNSIGNED DEFAULT NULL COMMENT 'FK to civicrm_option_value.id, that has to be valid registered Email Greeting.' AFTER `suffix_id`,
-        ADD `postal_greeting_id` INT(10) UNSIGNED DEFAULT NULL COMMENT 'FK to civicrm_option_value.id, that has to be valid registered Postal Greeting.' AFTER `email_greeting_id`,
-        ADD `addressee_id` INT(10) UNSIGNED DEFAULT NULL COMMENT 'FK to civicrm_option_value.id, that has to be valid registered Addressee.' AFTER `postal_greeting_id`,
-        {localize field='email_greeting_display'}ADD email_greeting_display VARCHAR(255) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT 'Cache Email greeting.'  AFTER email_greeting_id{/localize},
-        {localize field='postal_greeting_display'}ADD postal_greeting_display VARCHAR(255) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT 'Cache Postal  greeting.' AFTER postal_greeting_id{/localize},
-        {localize field='addressee_display'}ADD addressee_display VARCHAR(255) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT 'Cache Addressee.'  AFTER addressee_id{/localize},
-        ADD `email_greeting_custom`  VARCHAR(128) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT 'Custom Email Greeting.' AFTER `email_greeting_id`,
-        ADD `postal_greeting_custom`  VARCHAR(128) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT 'Custom Postal greeting.' AFTER `postal_greeting_id`,
-        ADD `addressee_custom`  VARCHAR(128) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT 'Custom Addressee.' AFTER `addressee_id`;
-
-
-    SELECT @og_id_emailGreeting   := max(id) FROM civicrm_option_group WHERE name = 'email_greeting';
-    SELECT @og_id_postalGreeting  := max(id) FROM civicrm_option_group WHERE name = 'postal_greeting';
-    SELECT @og_id_addressee       := max(id) FROM civicrm_option_group WHERE name = 'addressee';
-
-    -- add option values for email greeting, postal greeting and addressee
-    INSERT INTO civicrm_option_value
-      (option_group_id,       value, filter, is_default, weight, is_reserved, is_active, {localize field='label'}label{/localize}, name) VALUES
-
-      -- email greetings.
-      (@og_id_emailGreeting,  1, 1, 1, 1, 0, 1, {localize}'Dear {ldelim}contact.first_name{rdelim}'{/localize}, 'Dear {ldelim}contact.first_name{rdelim}'),
-      (@og_id_emailGreeting,  2, 1, 0, 2, 0, 1, {localize}'Dear {ldelim}contact.individual_prefix{rdelim} {ldelim}contact.first_name{rdelim} {ldelim}contact.last_name{rdelim}'{/localize}, 'Dear {ldelim}contact.individual_prefix{rdelim} {ldelim}contact.first_name{rdelim} {ldelim}contact.last_name{rdelim}'),
-      (@og_id_emailGreeting,  3, 1, 0, 3, 0, 1, {localize}'Dear {ldelim}contact.individual_prefix{rdelim} {ldelim}contact.last_name{rdelim}'{/localize}, 'Dear {ldelim}contact.individual_prefix{rdelim} {ldelim}contact.last_name{rdelim}'),
-      (@og_id_emailGreeting,  4, 0, 0, 4, 1, 1, {localize}'Customized'{/localize}, 'Customized'),
-      (@og_id_emailGreeting,  5, 2, 1, 5, 0, 1, {localize}'Dear {ldelim}contact.household_name{rdelim}'{/localize}, 'Dear {ldelim}contact.househols_name{rdelim}'),
-
-      -- postal greeting.
-      (@og_id_postalGreeting, 1, 1, 1, 1, 0, 1, {localize}'Dear {ldelim}contact.first_name{rdelim}'{/localize}, 'Dear {ldelim}contact.first_name{rdelim}'),
-      (@og_id_postalGreeting, 2, 1, 0, 2, 0, 1, {localize}'Dear {ldelim}contact.individual_prefix{rdelim} {ldelim}contact.first_name{rdelim} {ldelim}contact.last_name{rdelim}'{/localize}, 'Dear {ldelim}contact.individual_prefix{rdelim} {ldelim}contact.first_name{rdelim} {ldelim}contact.last_name{rdelim}'),
-      (@og_id_postalGreeting, 3, 1, 0, 3, 0, 1, {localize}'Dear {ldelim}contact.individual_prefix{rdelim} {ldelim}contact.last_name{rdelim}'{/localize}, 'Dear {ldelim}contact.individual_prefix{rdelim} {ldelim}contact.last_name{rdelim}'),
-      (@og_id_postalGreeting, 4, 0, 0, 4, 1, 1, {localize}'Customized'{/localize}, 'Customized'),
-      (@og_id_postalGreeting, 5, 2, 1, 5, 0, 1, {localize}'Dear {ldelim}contact.household_name{rdelim}'{/localize}, 'Dear {ldelim}contact.househols_name{rdelim}'),
-
-      -- addressee.
-      (@og_id_addressee,      1, 1, 1, 1, 0, 1, {localize}'{ldelim}contact.individual_prefix{rdelim}{ldelim} {rdelim} {ldelim}contact.first_name{rdelim}{ldelim} {rdelim}{ldelim}contact.middle_name{rdelim}{ldelim} {rdelim}{ldelim}contact.last_name{rdelim}{ldelim} {rdelim}{ldelim}contact.individual_suffix{rdelim}'{/localize}, '{ldelim}contact.individual_prefix{rdelim}{ldelim} {rdelim} {ldelim}contact.first_name{rdelim}{ldelim} {rdelim}{ldelim}contact.middle_name{rdelim}{ldelim} {rdelim}{ldelim}contact.last_name{rdelim}{ldelim} {rdelim}{ldelim}contact.individual_suffix{rdelim}'),
-      (@og_id_addressee,      2, 2, 1, 2, 0, 1, {localize}'{ldelim}contact.household_name{rdelim}'{/localize}, '{ldelim}contact.household_name{rdelim}'),
-      (@og_id_addressee,      3, 3, 1, 3, 0, 1, {localize}'{ldelim}contact.organization_name{rdelim}'{/localize}, '{ldelim}contact.organization_name{rdelim}'),
-      (@og_id_addressee,      4, 0, 0, 4, 1, 1, {localize}'Customized'{/localize}, 'Customized');
-
-    -- Set civicrm_contact.email_greeting_id and postal_greeting_id to default value for the given contact type.
-    SELECT @value := value
-    FROM   civicrm_option_value
-    WHERE  civicrm_option_value.option_group_id = @og_id_emailGreeting
-            AND civicrm_option_value.filter     = 1
-            AND civicrm_option_value.is_default = 1;
-    UPDATE civicrm_contact
-        SET
-            {localize field='email_greeting_display,  first_name'}email_greeting_display  = CONCAT("Dear ", first_name){/localize},
-            {localize field='postal_greeting_display, first_name'}postal_greeting_display = CONCAT("Dear ", first_name){/localize},
-            email_greeting_id       = @value,
-            postal_greeting_id      = @value
-    WHERE contact_type = 'Individual';
-
-    SELECT @value := value
-    FROM civicrm_option_value
-    WHERE civicrm_option_value.option_group_id  = @og_id_emailGreeting
-            AND civicrm_option_value.filter     = 2
-            AND civicrm_option_value.is_default = 1;
-    UPDATE civicrm_contact
-        SET
-            {localize field='email_greeting_display,  household_name'}email_greeting_display  = CONCAT("Dear ", household_name){/localize},
-            {localize field='postal_greeting_display, household_name'}postal_greeting_display = CONCAT("Dear ", household_name){/localize},
-            email_greeting_id       = @value,
-            postal_greeting_id      = @value
-    WHERE contact_type = 'Household';
-    -- Set civicrm_contact.addressee_id to default value for the given contact type.
-    SELECT @value := value
-    FROM civicrm_option_value
-    WHERE civicrm_option_value.option_group_id  = @og_id_addressee
-            AND civicrm_option_value.filter     = 1
-            AND civicrm_option_value.is_default = 1;
-    UPDATE civicrm_contact
-        SET
-          {localize field='addressee_display, display_name'}addressee_display = display_name{/localize},
-          addressee_id   = @value
-    WHERE contact_type   = 'Individual';
-
-    SELECT @value := value
-    FROM civicrm_option_value
-    WHERE civicrm_option_value.option_group_id  = @og_id_addressee
-            AND civicrm_option_value.filter     = 2
-            AND civicrm_option_value.is_default = 1;
-    UPDATE civicrm_contact
-        SET
-            {localize field='addressee_display, household_name'}addressee_display = household_name{/localize},
-            addressee_id      = @value
-    WHERE  contact_type      = 'Household';
-
-    SELECT @value := value
-    FROM civicrm_option_value
-        WHERE civicrm_option_value.option_group_id = @og_id_addressee
-            AND civicrm_option_value.filter        = 3
-            AND civicrm_option_value.is_default    = 1;
-    UPDATE civicrm_contact
-        SET
-            {localize field='addressee_display, organization_name'}addressee_display = organization_name{/localize},
-           addressee_id      = @value
-    WHERE  contact_type      = 'Organization';
-
-    -- CRM-4610
-    ALTER TABLE `civicrm_group_organization`
-        DROP FOREIGN KEY `FK_civicrm_group_organization_group_id`,
-        DROP FOREIGN KEY `FK_civicrm_group_organization_organization_id`;
-
-    ALTER TABLE `civicrm_group_organization`
-        ADD CONSTRAINT `FK_civicrm_group_organization_group_id` FOREIGN KEY (`group_id`) REFERENCES `civicrm_group` (`id`) ON DELETE CASCADE,
-        ADD CONSTRAINT `FK_civicrm_group_organization_organization_id` FOREIGN KEY (`organization_id`) REFERENCES `civicrm_contact` (`id`) ON DELETE CASCADE,
-        ADD UNIQUE `UI_group_organization` ( `group_id` , `organization_id` );
-
-    --  CRM-4697
-
-    ALTER TABLE `civicrm_payment_processor`
-        ADD `domain_id` INT(10) UNSIGNED NOT NULL COMMENT 'Which Domain is this match entry for' AFTER `id`;
-    UPDATE `civicrm_payment_processor` SET domain_id = @domain_id;
-    ALTER TABLE `civicrm_payment_processor`
-        ADD CONSTRAINT `FK_civicrm_payment_processor_domain_id` FOREIGN KEY (`domain_id`) REFERENCES `civicrm_domain` (`id`);
-
-    ALTER TABLE `civicrm_membership_type`
-        ADD `domain_id` INT(10) UNSIGNED NOT NULL COMMENT 'Which Domain is this match entry for' AFTER `id`;
-    UPDATE `civicrm_membership_type` SET domain_id = @domain_id;
-    ALTER TABLE `civicrm_membership_type`
-        ADD CONSTRAINT `FK_civicrm_membership_type_domain_id` FOREIGN KEY (`domain_id`) REFERENCES `civicrm_domain` (`id`);
-
-    ALTER TABLE `civicrm_menu`
-        ADD `domain_id` INT(10) UNSIGNED NOT NULL COMMENT 'Which Domain is this match entry for' AFTER `id`;
-    UPDATE `civicrm_menu` SET domain_id = @domain_id;
-    ALTER TABLE `civicrm_menu`
-        ADD CONSTRAINT `FK_civicrm_menu_domain_id` FOREIGN KEY (`domain_id`) REFERENCES `civicrm_domain` (`id`);
-
- -- CRM-4813
-
-    ALTER TABLE `civicrm_menu`
-      DROP INDEX `UI_path`,
-        ADD UNIQUE `UI_path_domain_id` ( `path`,`domain_id` );
-
-    ALTER TABLE `civicrm_payment_processor`
-        DROP INDEX `UI_name_test`,
-        ADD UNIQUE `UI_name_test_domain_id` ( `name`,`is_test`,`domain_id` );
-
-    ALTER TABLE `civicrm_preferences`
-        ADD `domain_id` INT(10) UNSIGNED NOT NULL COMMENT 'Which Domain is this match entry for' AFTER `id`,
-        DROP FOREIGN KEY `FK_civicrm_preferences_contact_id`;
-
-    UPDATE `civicrm_preferences` SET domain_id = @domain_id;
-    ALTER TABLE `civicrm_preferences`
-        ADD CONSTRAINT `FK_civicrm_preferences_domain_id`  FOREIGN KEY (`domain_id`) REFERENCES `civicrm_domain` (`id`) ON DELETE CASCADE,
-        ADD CONSTRAINT `FK_civicrm_preferences_contact_id` FOREIGN KEY (`contact_id`) REFERENCES `civicrm_contact` (`id`) ON DELETE CASCADE;
-
-    ALTER TABLE `civicrm_uf_match`
-        DROP FOREIGN KEY `FK_civicrm_uf_match_contact_id`,
-        DROP INDEX `UI_uf_name` ,
-        DROP INDEX `UI_contact` ;
-
-    ALTER TABLE `civicrm_uf_match`
-        ADD `domain_id` INT(10) UNSIGNED NOT NULL COMMENT 'Which Domain is this match entry for' AFTER `id`;
-    UPDATE `civicrm_uf_match` SET domain_id = @domain_id;
-    ALTER TABLE `civicrm_uf_match`
-        ADD CONSTRAINT `FK_civicrm_uf_match_domain_id` FOREIGN KEY (`domain_id`) REFERENCES `civicrm_domain` (`id`),
-        ADD CONSTRAINT `FK_civicrm_uf_match_contact_id` FOREIGN KEY (`contact_id`) REFERENCES `civicrm_contact` (`id`) ON DELETE CASCADE,
-        ADD UNIQUE `UI_uf_name_domain_id` (`uf_name`,`domain_id`),
-        ADD UNIQUE `UI_contact_domain_id` (`contact_id`,`domain_id`);
-
-    ALTER TABLE `civicrm_mailing`
-        ADD `created_date` datetime default NULL COMMENT 'Date and time this mailing was created.' AFTER `created_id`;
-
-    ALTER TABLE `civicrm_contribution_page`
-        ADD `created_id` int(10) unsigned default NULL COMMENT 'FK to civicrm_contact, who created this contribution page',
-        ADD `created_date` datetime default NULL COMMENT 'Date and time that contribution page was created.',
-        ADD CONSTRAINT `FK_civicrm_contribution_page_created_id` FOREIGN KEY (`created_id`) REFERENCES `civicrm_contact` (`id`) ON DELETE CASCADE;
-
-    ALTER TABLE `civicrm_event`
-        ADD `created_id` int(10) unsigned default NULL COMMENT 'FK to civicrm_contact, who created this event',
-        ADD `created_date` datetime default NULL COMMENT 'Date and time that event was created.',
-        ADD CONSTRAINT `FK_civicrm_event_created_id` FOREIGN KEY (`created_id`) REFERENCES `civicrm_contact` (`id`) ON DELETE CASCADE;
-
-    -- CRM-4842
-    ALTER TABLE `civicrm_mailing`
-        DROP  FOREIGN KEY `FK_civicrm_mailing_created_id`,
-    DROP  FOREIGN KEY `FK_civicrm_mailing_scheduled_id`;
-
-    ALTER TABLE `civicrm_mailing`
-      ADD CONSTRAINT `FK_civicrm_mailing_created_id` FOREIGN KEY (`created_id`) REFERENCES `civicrm_contact` (`id`) ON DELETE SET NULL,
-    ADD CONSTRAINT `FK_civicrm_mailing_scheduled_id` FOREIGN KEY (`scheduled_id`) REFERENCES `civicrm_contact` (`id`) ON DELETE SET NULL;
-
-    -- CRM-4469
-    -- Add collapse_adv_search column to civicrm_custom_group
-    ALTER TABLE `civicrm_custom_group`
-        ADD `collapse_adv_display` int(10) unsigned default '0' COMMENT 'Will this group be in collapsed or expanded mode on advanced search display ?' AFTER `max_multiple`,
-        ADD `created_id` int(10) unsigned default NULL COMMENT 'FK to civicrm_contact, who created this custom group',
-        ADD `created_date` datetime default NULL COMMENT 'Date and time this custom group was created.',
-        ADD CONSTRAINT `FK_civicrm_custom_group_created_id` FOREIGN KEY (`created_id`) REFERENCES `civicrm_contact` (`id`) ON DELETE CASCADE;
-
-    ALTER TABLE `civicrm_uf_group`
-        ADD `created_id` int(10) unsigned default NULL COMMENT 'FK to civicrm_contact, who created this UF group',
-        ADD `created_date` datetime default NULL COMMENT 'Date and time this UF group was created.',
-        ADD CONSTRAINT `FK_civicrm_uf_group_created_id` FOREIGN KEY (`created_id`) REFERENCES `civicrm_contact` (`id`) ON DELETE CASCADE;
diff --git a/CRM/Upgrade/Incremental/sql/3.0.alpha2.mysql.tpl b/CRM/Upgrade/Incremental/sql/3.0.alpha2.mysql.tpl
deleted file mode 100644 (file)
index 9212721..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
- -- CRM-4866
-
-    SELECT @domain_id := min(id) FROM civicrm_domain;
-    SELECT @nav_pl    := id FROM civicrm_navigation WHERE name = 'Pledges';
-    SELECT @nav_pl_wt := max(weight) from civicrm_navigation WHERE parent_id = @nav_pl;
-
-    INSERT INTO civicrm_navigation
-        ( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight )
-    VALUES
-  ( @domain_id, 'civicrm/contact/view/pledge&reset=1&action=add&context=standalone', '{ts escape="sql"}New Pledge{/ts}','New Pledge',  NULL, '', @nav_pl, '1', NULL, @nav_pl_wt+1 );
diff --git a/CRM/Upgrade/Incremental/sql/3.0.alpha3.mysql.tpl b/CRM/Upgrade/Incremental/sql/3.0.alpha3.mysql.tpl
deleted file mode 100644 (file)
index b7c3878..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-  -- CRM-4900
-   UPDATE civicrm_worldregion SET name = "America South, Central, North and Caribbean" WHERE id = 2;
diff --git a/CRM/Upgrade/Incremental/sql/3.0.beta1.mysql.tpl b/CRM/Upgrade/Incremental/sql/3.0.beta1.mysql.tpl
deleted file mode 100644 (file)
index b68fea4..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
--- CRM-4932
-   ALTER TABLE civicrm_contact MODIFY COLUMN job_title varchar(255);
-
--- CRM-4906
-{if $multilingual}
-  {foreach from=$locales item=locale}
-    ALTER TABLE civicrm_address ADD street_address_{$locale} VARCHAR(96);
-    UPDATE civicrm_address SET street_address_{$locale} = street_address;
-  {/foreach}
-  ALTER TABLE civicrm_address DROP street_address;
-
-  {foreach from=$locales item=locale}
-    ALTER TABLE civicrm_address ADD supplemental_address_1_{$locale} VARCHAR(96);
-    UPDATE civicrm_address SET supplemental_address_1_{$locale} = supplemental_address_1;
-  {/foreach}
-  ALTER TABLE civicrm_address DROP supplemental_address_1;
-
-  {foreach from=$locales item=locale}
-    ALTER TABLE civicrm_address ADD supplemental_address_2_{$locale} VARCHAR(96);
-    UPDATE civicrm_address SET supplemental_address_2_{$locale} = supplemental_address_2;
-  {/foreach}
-  ALTER TABLE civicrm_address DROP supplemental_address_2;
-
-  {foreach from=$locales item=locale}
-    ALTER TABLE civicrm_address ADD supplemental_address_3_{$locale} VARCHAR(96);
-    UPDATE civicrm_address SET supplemental_address_3_{$locale} = supplemental_address_3;
-  {/foreach}
-  ALTER TABLE civicrm_address DROP supplemental_address_3;
-
-  {foreach from=$locales item=locale}
-    ALTER TABLE civicrm_address ADD city_{$locale} VARCHAR(64);
-    UPDATE civicrm_address SET city_{$locale} = city;
-  {/foreach}
-  ALTER TABLE civicrm_address DROP city;
-
-  {foreach from=$locales item=locale}
-    ALTER TABLE civicrm_address ADD name_{$locale} VARCHAR(255);
-    UPDATE civicrm_address SET name_{$locale} = name;
-  {/foreach}
-  ALTER TABLE civicrm_address DROP name;
-{/if}
-
--- CRM-4935
-   ALTER TABLE `civicrm_activity`
-  CHANGE `source_contact_id` `source_contact_id` INT( 10 ) UNSIGNED NULL DEFAULT NULL COMMENT 'Contact ID of the person scheduling or logging this Activity. Usually the authenticated user.',
-  DROP FOREIGN KEY `FK_civicrm_activity_source_contact_id`;
-
-   ALTER TABLE `civicrm_activity`
-      ADD CONSTRAINT `FK_civicrm_activity_source_contact_id` FOREIGN KEY (`source_contact_id`) REFERENCES `civicrm_contact` (`id`) ON DELETE SET NULL;
-
---CRM-4605
-  ALTER TABLE `civicrm_preferences` DROP `location_count`;
diff --git a/CRM/Upgrade/Incremental/sql/3.0.beta2.mysql.tpl b/CRM/Upgrade/Incremental/sql/3.0.beta2.mysql.tpl
deleted file mode 100644 (file)
index e26681b..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
--- CRM-4979
-
-INSERT INTO civicrm_acl
-    (name, deny, entity_table, entity_id, operation, object_table, object_id, acl_table, acl_id, is_active)
-VALUES
-    ('Core ACL', 0, 'civicrm_acl_role', 1, 'All', 'delete activities', NULL, NULL, NULL, 1),
-    ('Core ACL', 0, 'civicrm_acl_role', 1, 'All', 'delete in CiviContribute', NULL, NULL, NULL, 1),
-    ('Core ACL', 0, 'civicrm_acl_role', 1, 'All', 'delete in CiviMail', NULL, NULL, NULL, 1),
-    ('Core ACL', 0, 'civicrm_acl_role', 1, 'All', 'delete in CiviPledge', NULL, NULL, NULL, 1),
-    ('Core ACL', 0, 'civicrm_acl_role', 1, 'All', 'delete contacts', NULL, NULL, NULL, 1),
-    ('Core ACL', 0, 'civicrm_acl_role', 1, 'All', 'delete in CiviEvent', NULL, NULL, NULL, 1),
-    ('Core ACL', 0, 'civicrm_acl_role', 1, 'All', 'delete in CiviMember', NULL, NULL, NULL, 1);
diff --git a/CRM/Upgrade/Incremental/sql/3.0.beta4.mysql.tpl b/CRM/Upgrade/Incremental/sql/3.0.beta4.mysql.tpl
deleted file mode 100644 (file)
index d5f1d33..0000000
+++ /dev/null
@@ -1,69 +0,0 @@
--- CRM-5030
-
-    UPDATE civicrm_navigation
-        SET url = 'civicrm/activity/add?atype=3&action=add&reset=1&context=standalone'
-        WHERE civicrm_navigation.name= 'New Email';
-    UPDATE civicrm_navigation
-        SET url = 'civicrm/contribute/add&reset=1&action=add&context=standalone'
-        WHERE civicrm_navigation.name= 'New Contribution';
-    UPDATE civicrm_navigation
-        SET url = 'civicrm/pledge/add&reset=1&action=add&context=standalone'
-        WHERE civicrm_navigation.name= 'New Pledge';
-    UPDATE civicrm_navigation
-        SET url = 'civicrm/participant/add&reset=1&action=add&context=standalone'
-        WHERE civicrm_navigation.name= 'Register Event Participant';
-    UPDATE civicrm_navigation
-        SET url = 'civicrm/member/add&reset=1&action=add&context=standalone'
-        WHERE civicrm_navigation.name= 'New Membership';
-    UPDATE civicrm_navigation
-        SET url = 'civicrm/case/add&reset=1&action=add&atype=13&context=standalone'
-        WHERE civicrm_navigation.name= 'New Case';
-    UPDATE civicrm_navigation
-        SET url = 'civicrm/grant/add&reset=1&action=add&context=standalone'
-        WHERE civicrm_navigation.name= 'New Grant';
-
--- CRM-5048
-INSERT IGNORE INTO civicrm_state_province (id,    country_id, abbreviation, name) VALUES
-                                   (10010, 1107,       "Bar",        "Barletta-Andria-Trani"),
-                                   (10011, 1107,       "Fer",        "Fermo"),
-                                   (10012, 1107,       "Mon",        "Monza e Brianza");
-
--- CRM-5031
-{if $multilingual}
-  {foreach from=$locales item=locale}
-    ALTER TABLE civicrm_mailing ADD name_{$locale}      VARCHAR(128);
-    ALTER TABLE civicrm_mailing ADD from_name_{$locale} VARCHAR(128);
-    ALTER TABLE civicrm_mailing ADD subject_{$locale}   VARCHAR(128);
-    ALTER TABLE civicrm_mailing ADD body_text_{$locale} TEXT;
-    ALTER TABLE civicrm_mailing ADD body_html_{$locale} TEXT;
-
-    UPDATE civicrm_mailing SET name_{$locale}      = name;
-    UPDATE civicrm_mailing SET from_name_{$locale} = from_name;
-    UPDATE civicrm_mailing SET subject_{$locale}   = subject;
-    UPDATE civicrm_mailing SET body_text_{$locale} = body_text;
-    UPDATE civicrm_mailing SET body_html_{$locale} = body_html;
-  {/foreach}
-
-  ALTER TABLE civicrm_mailing DROP name;
-  ALTER TABLE civicrm_mailing DROP from_name;
-  ALTER TABLE civicrm_mailing DROP subject;
-  ALTER TABLE civicrm_mailing DROP body_text;
-  ALTER TABLE civicrm_mailing DROP body_html;
-
-  {foreach from=$locales item=locale}
-    ALTER TABLE civicrm_mailing_component ADD name_{$locale}      VARCHAR(64);
-    ALTER TABLE civicrm_mailing_component ADD subject_{$locale}   VARCHAR(255);
-    ALTER TABLE civicrm_mailing_component ADD body_text_{$locale} TEXT;
-    ALTER TABLE civicrm_mailing_component ADD body_html_{$locale} TEXT;
-
-    UPDATE civicrm_mailing_component SET name_{$locale}      = name;
-    UPDATE civicrm_mailing_component SET subject_{$locale}   = subject;
-    UPDATE civicrm_mailing_component SET body_text_{$locale} = body_text;
-    UPDATE civicrm_mailing_component SET body_html_{$locale} = body_html;
-  {/foreach}
-
-  ALTER TABLE civicrm_mailing_component DROP name;
-  ALTER TABLE civicrm_mailing_component DROP subject;
-  ALTER TABLE civicrm_mailing_component DROP body_text;
-  ALTER TABLE civicrm_mailing_component DROP body_html;
-{/if}
diff --git a/CRM/Upgrade/Incremental/sql/3.0.beta5.mysql.tpl b/CRM/Upgrade/Incremental/sql/3.0.beta5.mysql.tpl
deleted file mode 100644 (file)
index 5822c9f..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
--- CRM-5090
-UPDATE civicrm_report_instance SET description = 'Gives relationship details between two contacts' WHERE report_id = 'contact/relationship';
\ No newline at end of file
diff --git a/CRM/Upgrade/Incremental/sql/3.1.0.mysql.tpl b/CRM/Upgrade/Incremental/sql/3.1.0.mysql.tpl
deleted file mode 100644 (file)
index a3d5527..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-
--- CRM-5711
-
-UPDATE civicrm_custom_group SET extends_entity_column_value = CONCAT(CHAR( 01 ), extends_entity_column_value, CHAR( 01 ))
-WHERE LOCATE( char( 01 ), extends_entity_column_value ) <= 0;
-
--- CRM-5472
-INSERT INTO civicrm_acl
-    (name, deny, entity_table, entity_id, operation, object_table, object_id, acl_table, acl_id, is_active)
-VALUES
-    ('Core ACL', 0, 'civicrm_acl_role', 1, 'All', 'edit all events', NULL, NULL, NULL, 1);
-
--- CRM-5636
-{if $addDeceasedStatus}
-   {if $multilingual}
-      INSERT INTO  civicrm_membership_status
-          ( {foreach from=$locales item=locale}name_{$locale}, {/foreach} is_current_member, is_admin, is_active, is_reserved, weight, is_default )
-      VALUES
-          ( {foreach from=$locales item=locale}'Deceased',{/foreach} 0, 1, 1, 1, (SELECT @maxWeight := @maxWeight + 1), 0 );
-   {else}
-      INSERT INTO  civicrm_membership_status
-          ( name, is_current_member, is_admin, is_active, is_reserved, weight, is_default )
-      VALUES
-          ( 'Deceased', 0, 1, 1, 1, (SELECT @maxWeight := @maxWeight + 1), 0 );
-   {/if}
-{/if}
diff --git a/CRM/Upgrade/Incremental/sql/3.1.3.mysql.tpl b/CRM/Upgrade/Incremental/sql/3.1.3.mysql.tpl
deleted file mode 100644 (file)
index ad7b0b8..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
--- CRM-5824
-{if $multilingual}
-  {foreach from=$locales item=locale}
-    UPDATE civicrm_option_value ov
-INNER JOIN civicrm_option_group og ON ( og.id = ov.option_group_id )
-       SET ov.name = ov.label_{$locale}
-     WHERE og.name = 'activity_type'
-       AND ov.name IS NULL;
-  {/foreach}
-{else}
-    UPDATE civicrm_option_value ov
-INNER JOIN civicrm_option_group og ON ( og.id = ov.option_group_id )
-       SET ov.name = ov.label
-     WHERE og.name = 'activity_type'
-       AND ov.name IS NULL;
-{/if}
-
--- CRM-5825
-    UPDATE civicrm_menu
-           SET is_ssl = 1
-    WHERE path = 'civicrm/event/manage';
-
--- CRM-5872
-
-    UPDATE civicrm_option_value ov
-    INNER JOIN civicrm_option_group og ON ( og.id = ov.option_group_id )
-       SET ov.is_reserved = 1
-     WHERE ov.name = 'Bulk Email' AND
-           og.name = 'activity_type';
diff --git a/CRM/Upgrade/Incremental/sql/3.1.4.mysql.tpl b/CRM/Upgrade/Incremental/sql/3.1.4.mysql.tpl
deleted file mode 100644 (file)
index ff1ac7c..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
--- http://forum.civicrm.org/?topic=12481
-UPDATE civicrm_state_province SET name = 'Guizhou' WHERE name = 'Gulzhou';
-
--- CRM-5824
-{if $multilingual}
-    UPDATE civicrm_option_value ov
-INNER JOIN civicrm_option_group og ON ( og.id = ov.option_group_id )
-       SET ov.name = ov.label_{$config->lcMessages}
-     WHERE og.name = 'case_type'
-       AND ov.name IS NULL;
-{else}
-    UPDATE civicrm_option_value ov
-INNER JOIN civicrm_option_group og ON ( og.id = ov.option_group_id )
-       SET ov.name = ov.label
-     WHERE og.name = 'case_type'
-       AND ov.name IS NULL;
-{/if}
-
--- CRM-6008
-{if $multilingual}
-INSERT INTO civicrm_membership_status
-    ({localize field='name'}`name`{/localize}, `start_event`, `end_event`, `is_current_member`, `is_admin`, `weight`, `is_default`, `is_active`, `is_reserved`)
-    (SELECT {localize}'Pending'{/localize}, 'join_date', 'join_date', 0, 0, 5, 0, 1, 1 FROM dual
-     WHERE NOT EXISTS (SELECT * FROM civicrm_membership_status WHERE `name_{$config->lcMessages}` = 'Pending'));
-
- UPDATE `civicrm_membership_status` SET `is_reserved` = 1 WHERE `name_{$config->lcMessages}` = 'Pending';
-{else}
- INSERT INTO civicrm_membership_status
-   (`name`, `start_event`, `end_event`, `is_current_member`, `is_admin`, `weight`, `is_default`, `is_active`, `is_reserved`)
-    (SELECT 'Pending', 'join_date', 'join_date', 0, 0, 5, 0, 1, 1 FROM dual
-     WHERE NOT EXISTS (SELECT * FROM civicrm_membership_status WHERE name = 'Pending'));
-  UPDATE `civicrm_membership_status` SET `is_reserved` = 1 WHERE `name` = 'Pending';
-{/if}
\ No newline at end of file
diff --git a/CRM/Upgrade/Incremental/sql/3.1.5.mysql.tpl b/CRM/Upgrade/Incremental/sql/3.1.5.mysql.tpl
deleted file mode 100644 (file)
index 7278147..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
--- CRM-6148
-   {include file='../CRM/Upgrade/3.1.5.msg_template/civicrm_msg_template.tpl'}
-
--- CRM-6156
--- Update the names of several existing Taiwan provinces
-UPDATE civicrm_state_province SET name = 'Changhua County'  WHERE id = 4848;
-UPDATE civicrm_state_province SET name = 'Chiayi County'    WHERE id = 4849;
-UPDATE civicrm_state_province SET name = 'Hsinchu County'   WHERE id = 4850;
-UPDATE civicrm_state_province SET name = 'Hualien County'   WHERE id = 4851;
-UPDATE civicrm_state_province SET name = 'Ilan County'      WHERE id = 4852;
-UPDATE civicrm_state_province SET name = 'Kaohsiung County' WHERE id = 4853;
-UPDATE civicrm_state_province SET name = 'Miaoli County'    WHERE id = 4854;
-UPDATE civicrm_state_province SET name = 'Nantou County'    WHERE id = 4855;
-UPDATE civicrm_state_province SET name = 'Penghu County'    WHERE id = 4856;
-UPDATE civicrm_state_province SET name = 'Pingtung County'  WHERE id = 4857;
-UPDATE civicrm_state_province SET name = 'Taichung County'  WHERE id = 4858;
-UPDATE civicrm_state_province SET name = 'Tainan County'    WHERE id = 4859;
-UPDATE civicrm_state_province SET name = 'Taipei County'    WHERE id = 4860;
-UPDATE civicrm_state_province SET name = 'Taitung County'   WHERE id = 4861;
-UPDATE civicrm_state_province SET name = 'Taoyuan County'   WHERE id = 4862;
-UPDATE civicrm_state_province SET name = 'Yunlin Conuty'    WHERE id = 4863;
-UPDATE civicrm_state_province SET name = 'Keelung City'     WHERE id = 4864;
-
--- Create additional Taiwan provinces
-SELECT @country_id := id from civicrm_country where name = 'Taiwan';
-INSERT IGNORE INTO civicrm_state_province ( country_id, abbreviation, name ) VALUES
-( @country_id, 'TXG', 'Taichung City'  ),
-( @country_id, 'KHH', 'Kaohsiung City' ),
-( @country_id, 'TPE', 'Taipei City'    ),
-( @country_id, 'CYI', 'Chiayi City'    ),
-( @country_id, 'HSZ', 'Hsinchu City'   ),
-( @country_id, 'TNN', 'Tainan City'    );
-
diff --git a/CRM/Upgrade/Incremental/sql/3.1.alpha1.mysql.tpl b/CRM/Upgrade/Incremental/sql/3.1.alpha1.mysql.tpl
deleted file mode 100644 (file)
index d7f52d9..0000000
+++ /dev/null
@@ -1,281 +0,0 @@
---  CRM-4795
---  modify type fee_level of civicrm_participant and amount_level of civicrm_contribution
-
-    ALTER TABLE civicrm_participant MODIFY column fee_level text collate utf8_unicode_ci default NULL COMMENT 'Populate with the label (text) associated with a fee level for paid events with multiple levels. Note that we store the label value and not the key';
-
-    ALTER TABLE civicrm_contribution MODIFY column amount_level text collate utf8_unicode_ci default NULL;
-
---  subtype upgrade TODOs:
---  make changes for CRM-4970
-
---  modify contact_type column definition
-    ALTER TABLE  `civicrm_contact` MODIFY column contact_type varchar(64) collate utf8_unicode_ci DEFAULT NULL COMMENT 'Type of Contact';
-
---  add table definiton and data for civicrm_contact_type table
-    CREATE TABLE civicrm_contact_type (
-        id int unsigned NOT NULL AUTO_INCREMENT  COMMENT 'Contact Type ID',
-        name varchar(64)    COMMENT 'Internal name of Contact Type (or Subtype).',
-        {localize field='label'}label varchar(64)       COMMENT ' localized Name of Contact Type.'{/localize},
-        {localize field='description'}description text  COMMENT ' localized Optional verbose description of the type.'{/localize},
-        image_URL varchar(255)  COMMENT 'URL of image if any.',
-        parent_id int unsigned  COMMENT 'Optional FK to parent contact type.',
-        is_active tinyint       COMMENT 'Is this entry active?',
-        is_reserved tinyint     COMMENT 'Is this contact type a predefined system type',
-        PRIMARY KEY ( id ),
-        UNIQUE INDEX contact_type(name),
-        CONSTRAINT FK_civicrm_contact_type_parent_id FOREIGN KEY (parent_id) REFERENCES civicrm_contact_type(id)
-    )  ENGINE=InnoDB DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ;
-
-    INSERT INTO civicrm_contact_type
-        ( id, name,{localize field='label'}`label`{/localize},image_URL, parent_id, is_active,is_reserved )
-    VALUES
-        (1, 'Individual',    {localize}'Individual'{/localize},  NULL, NULL, 1,1),
-        (2, 'Household',     {localize}'Household'{/localize},   NULL, NULL, 1,1),
-        (3, 'Organization',  {localize}'Organization'{/localize},NULL, NULL, 1,1);
-
-
---  CRM-5218
---  added menu for contact types in navigation
-    SELECT @domain_id   := min(id) FROM civicrm_domain;
-    SELECT @nav_ol      := id FROM civicrm_navigation WHERE name = 'Option Lists';
-    SELECT @nav_ol_wt   := max(weight) from civicrm_navigation WHERE parent_id = @nav_ol;
-    INSERT INTO `civicrm_navigation`
-        ( domain_id, url, label, name,permission, permission_operator, parent_id, is_active, has_separator, weight )
-    VALUES
-        (  @domain_id,'civicrm/admin/options/subtype&reset=1', 'Contact Types', 'Contact Types', 'administer CiviCRM', '', @nav_ol, '1', NULL, @nav_ol_wt+1 );
-
---  make changes for CRM-5100
-    ALTER TABLE `civicrm_relationship_type`
-        ADD `contact_sub_type_a` varchar(64) collate utf8_unicode_ci DEFAULT NULL AFTER `contact_type_b`,
-        ADD `contact_sub_type_b` varchar(64) collate utf8_unicode_ci DEFAULT NULL AFTER `contact_sub_type_a`;
-
---  Upgrade FCKEditor to CKEditor CRM-5226
-    {if $multilingual}
-        {foreach from=$locales item=locale}
-        UPDATE civicrm_option_value SET label_{$locale} ='CKEditor' WHERE label_{$locale} = 'FCKEditor';
-        {/foreach}
-    {else}
-        UPDATE civicrm_option_value SET label ='CKEditor' WHERE label = 'FCKEditor';
-    {/if}
---  CRM-5106
---  Added Autocomplete search options in civicrm_preferences 'Admin Search Settings' form
-
-    ALTER TABLE `civicrm_preferences`
-        ADD `contact_autocomplete_options` VARCHAR( 255 ) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT 'What Autocomplete has to return';
-
---  Added default value checked for sort_name and email
-    UPDATE `civicrm_preferences` SET `contact_autocomplete_options` = '\ 11\ 12\ 1' WHERE `civicrm_preferences`.`id` =1 LIMIT 1;
-
---  Insert values for option group
-    INSERT INTO
-        `civicrm_option_group` (`name`, {localize field='description'}`description`{/localize}, `is_reserved`, `is_active`)
-    VALUES
-        ('contact_autocomplete_options', {localize}'Autocomplete Contact Search'{/localize}   , 0, 1);
-
-    SELECT @option_group_id_acsOpt := max(id) from civicrm_option_group where name = 'contact_autocomplete_options';
-
-    INSERT INTO `civicrm_option_value`
-        (`option_group_id`, {localize field='label'}`label`{/localize}, `value`, `name`, `grouping`, `filter`, `is_default`, `weight`, `is_optgroup`, `is_reserved`, `is_active`, `component_id`, `visibility_id`)
-    VALUES
-        (@option_group_id_acsOpt, {localize}'Email Address'{/localize}  , 2, 'email',           NULL, 0, NULL, 2,  0, 0, 1, NULL, NULL),
-        (@option_group_id_acsOpt, {localize}'Phone'{/localize}          , 3, 'phone',           NULL, 0, NULL, 3,  0, 0, 1, NULL, NULL),
-        (@option_group_id_acsOpt, {localize}'Street Address'{/localize} , 4, 'street_address',  NULL, 4, NULL, 0,  0, 0, 1, NULL, NULL),
-        (@option_group_id_acsOpt, {localize}'City'{/localize}           , 5, 'city',            NULL, 0, NULL, 5,  0, 0, 1, NULL, NULL),
-        (@option_group_id_acsOpt, {localize}'State/Province'{/localize} , 6, 'state_province',  NULL, 6, NULL, 0,  0, 0, 1, NULL, NULL),
-        (@option_group_id_acsOpt, {localize}'Country'{/localize}        , 7, 'country',         NULL, 0, NULL, 7,  0, 0, 1, NULL, NULL);
-
---  CRM-5095
-    ALTER TABLE `civicrm_price_set`
-        ADD `extends` VARCHAR( 255 ) COLLATE utf8_unicode_ci NOT NULL COMMENT 'What components are using this price set?';
-
-    UPDATE `civicrm_price_set` SET extends = (select id from civicrm_component where name = 'CiviEvent');
-
---  CRM-4160
-    ALTER TABLE `civicrm_acl`
-        MODIFY `operation` enum('All', 'View', 'Edit', 'Create', 'Delete', 'Grant', 'Revoke', 'Search') COLLATE utf8_unicode_ci NOT NULL   COMMENT 'What operation does this ACL entry control?';
-
---  CRM-5285
-    UPDATE civicrm_state_province SET name = 'Haifa' where id = 3115;
-
---  CRM-5287
-    UPDATE civicrm_state_province SET name = 'Jerusalem' where id = 3117;
-
---  CRM-5224
-    /* Set references to obsolete UK counties to NULL */
-    UPDATE `civicrm_address` SET `state_province_id` = NULL WHERE `state_province_id` IN
-        ('2596', '2599', '2600', '2601', '2602', '2603', '2604', '2605', '2607', '2608', '2609', '2610', '2611',
-        '2613', '2614', '2615', '2616', '2617', '2618', '2619', '2621', '2623', '2624', '2625', '2627', '2628',
-        '2629', '2630', '2631', '2632', '2633', '2636', '2637', '2638', '2640', '2641', '2642', '2644', '2645',
-        '2646', '2650', '2653', '2656', '2658', '2667', '2672', '2673', '2676', '2677', '2679', '2680', '2681',
-        '2683', '2684', '2685', '2686', '2690', '2691', '2693', '2695', '2696', '2697', '2698', '2700', '2701',
-        '2701', '2702', '2703', '2704', '2706', '2707', '2708', '2710', '2711', '2713', '2714', '2716', '2717',
-        '2719', '2720', '2721', '2722', '2724', '2725', '2727', '2728', '2729', '2730', '2731', '2732', '2733',
-        '2736', '2737', '2739', '2740', '2741', '2745', '2751', '2753', '2754', '2755', '2756', '2758', '2759',
-        '2760', '2762', '2763', '2764', '2765', '2767', '2768', '2769', '2771', '2772', '2775', '2776', '2781',
-        '2782', '2783', '2784', '2787', '2788', '2789', '2790', '2792', '2794', '2795', '2796', '2797', '2798',
-        '2799', '2800', '2801', '2802', '2803', '2805', '2806', '2807', '2808', '2809', '2810', '2816', '2817',
-        '2819', '2820', '2821', '2822', '2824', '2825', '9987', '9995', '9996', '9997', '2812', '2718', '2715' );
-
-    /* Delete obsolete UK counties */
-    DELETE FROM `civicrm_state_province` WHERE `id` IN
-        ('2596', '2599', '2600', '2601', '2602', '2603', '2604', '2605', '2607', '2608', '2609', '2610', '2611',
-        '2613', '2614', '2615', '2616', '2617', '2618', '2619', '2621', '2623', '2624', '2625', '2627', '2628',
-        '2629', '2630', '2631', '2632', '2633', '2636', '2637', '2638', '2640', '2641', '2642', '2644', '2645',
-        '2646', '2650', '2653', '2656', '2658', '2667', '2672', '2673', '2676', '2677', '2679', '2680', '2681',
-        '2683', '2684', '2685', '2686', '2690', '2691', '2693', '2695', '2696', '2697', '2698', '2700', '2701',
-        '2701', '2702', '2703', '2704', '2706', '2707', '2708', '2710', '2711', '2713', '2714', '2716', '2717',
-        '2719', '2720', '2721', '2722', '2724', '2725', '2727', '2728', '2729', '2730', '2731', '2732', '2733',
-        '2736', '2737', '2739', '2740', '2741', '2745', '2751', '2753', '2754', '2755', '2756', '2758', '2759',
-        '2760', '2762', '2763', '2764', '2765', '2767', '2768', '2769', '2771', '2772', '2775', '2776', '2781',
-        '2782', '2783', '2784', '2787', '2788', '2789', '2790', '2792', '2794', '2795', '2796', '2797', '2798',
-        '2799', '2800', '2801', '2802', '2803', '2805', '2806', '2807', '2808', '2809', '2810', '2816', '2817',
-        '2819', '2820', '2821', '2822', '2824', '2825', '9987', '9995', '9996', '9997', '2812', '2718', '2715' );
-
-    /* Update the names of several existing UK counties */
-    UPDATE `civicrm_state_province` SET `name`='Gwent'              WHERE `id`='2612';
-    UPDATE `civicrm_state_province` SET `name`='Bristol, City of'   WHERE `id`='2620';
-    UPDATE `civicrm_state_province` SET `name`='Co Londonderry'     WHERE `id`='2648';
-    UPDATE `civicrm_state_province` SET `name`='Na h-Eileanan Siar' WHERE `id`='2666';
-    UPDATE `civicrm_state_province` SET `name`='Glasgow City'       WHERE `id`='2674';
-    UPDATE `civicrm_state_province` SET `name`='Mid Glamorgan'      WHERE `id`='2804';
-    UPDATE `civicrm_state_province` SET `name`='Greater London'     WHERE `id`='9999';
-    UPDATE `civicrm_state_province` SET `name`='County Durham'      WHERE `id`='2657';
-
-    /* Create additional UK counties */
-    INSERT INTO `civicrm_state_province`
-        (id, `name`, `abbreviation`, `country_id`)
-    VALUES
-        (10013, 'Clwyd',             'CLD', 1226),
-        (10014, 'Dyfed',             'DFD', 1226),
-        (10015, 'South Glamorgan',   'GNS', 1226);
-
---  CRM-5288
-    SELECT @domain_id := min(id) FROM civicrm_domain;
-    SELECT @nav_contrbutionID    := id FROM civicrm_navigation WHERE name = 'Contributions';
-    SELECT @nav_contribution_wt  := max(weight) from civicrm_navigation WHERE parent_id = @nav_contrbutionID;
-
-    UPDATE civicrm_navigation
-        SET has_separator = 1
-        WHERE civicrm_navigation.parent_id= @nav_contrbutionID AND civicrm_navigation.weight = @nav_contribution_wt;
-
-    INSERT INTO civicrm_navigation
-        ( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight )
-    VALUES
-        ( @domain_id, 'civicrm/admin/price&reset=1&action=add', '{ts escape="sql"}New Price Set{/ts}',     'New Price Set',     'access CiviContribute,administer CiviCRM', 'AND',  @nav_contrbutionID, '1', NULL, @nav_contribution_wt+1 ),
-        ( @domain_id, 'civicrm/admin/price&reset=1',            '{ts escape="sql"}Manage Price Sets{/ts}', 'Manage Price Sets', 'access CiviContribute,administer CiviCRM', 'AND',  @nav_contrbutionID, '1', NULL, @nav_contribution_wt+2 );
-
-
-    SELECT @nav_contrbutionID_admin    := id FROM civicrm_navigation WHERE name = 'CiviContribute';
-    SELECT @nav_contribution_wt_admin  := max(weight) from civicrm_navigation WHERE parent_id = @nav_contrbutionID_admin;
-
-    UPDATE civicrm_navigation
-        SET has_separator = 1
-        WHERE civicrm_navigation.parent_id= @nav_contrbutionID_admin AND civicrm_navigation.weight = @nav_contribution_wt_admin;
-
-    INSERT INTO civicrm_navigation
-        ( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight )
-    VALUES
-        ( @domain_id, 'civicrm/admin/price&reset=1&action=add', '{ts escape="sql"}New Price Set{/ts}',     'New Price Set',     'access CiviContribute,administer CiviCRM', 'AND',  @nav_contrbutionID_admin, '1', NULL, @nav_contribution_wt_admin+1 ),
-        ( @domain_id, 'civicrm/admin/price&reset=1',            '{ts escape="sql"}Manage Price Sets{/ts}', 'Manage Price Sets', 'access CiviContribute,administer CiviCRM', 'AND',  @nav_contrbutionID_admin, '1', NULL, @nav_contribution_wt_admin+2 );
-
-
-    SELECT @nav_customize_admin    := id FROM civicrm_navigation WHERE name = 'Customize';
-    SELECT @nav_customize_wt_admin := max(weight) from civicrm_navigation WHERE parent_id = @nav_customize_admin;
-    INSERT INTO civicrm_navigation
-        ( domain_id, url, label, name, permission, permission_operator, parent_id, is_active, has_separator, weight )
-    VALUES
-        ( @domain_id, 'civicrm/admin/price&reset=1', '{ts escape="sql"}Price Sets{/ts}', 'Price Sets', 'administer CiviCRM', '',  @nav_customize_admin, '1', NULL, @nav_customize_wt_admin+1 );
-
-    UPDATE civicrm_navigation
-        SET url = 'civicrm/admin/price&reset=1'
-        WHERE civicrm_navigation.url = 'civicrm/event/price&reset=1';
-
-    CREATE TABLE civicrm_acl_contact_cache (
-        id int unsigned NOT NULL AUTO_INCREMENT  COMMENT 'primary key',
-        user_id int unsigned    COMMENT 'FK to civicrm_contact (could be null for anon user)',
-        contact_id int unsigned NOT NULL   COMMENT 'FK to civicrm_contact',
-        operation enum('All', 'View', 'Edit', 'Create', 'Delete', 'Grant', 'Revoke') NOT NULL   COMMENT 'What operation does this user have permission on?'
-        ,
-        PRIMARY KEY ( id ) ,
-        UNIQUE INDEX UI_user_contact_operation(user_id, contact_id, operation ) ,
-        CONSTRAINT FK_civicrm_acl_contact_cache_user_id FOREIGN KEY (user_id) REFERENCES civicrm_contact(id) ON DELETE CASCADE,
-        CONSTRAINT FK_civicrm_acl_contact_cache_contact_id FOREIGN KEY (contact_id) REFERENCES civicrm_contact(id) ON DELETE CASCADE
-    )  ENGINE=InnoDB DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci  ;
-
--- CRM-4690
-    INSERT INTO civicrm_payment_processor_type
-        ( name, title, description, is_active, is_default, user_name_label, password_label, signature_label, subject_label,  class_name, url_site_default, url_api_default, url_recur_default, url_button_default, url_site_test_default, url_api_test_default, url_recur_test_default, url_button_test_default, billing_mode, is_recur, payment_type)
-    VALUES
-        ( 'Realex', 'Realex Payment', NULL, 1, 0, 'Merchant ID', 'Password', NULL, 'Account', 'Payment_Realex', 'https://epage.payandshop.com/epage.cgi', NULL, NULL, NULL, 'https://epage.payandshop.com/epage-remote.cgi', NULL, NULL, NULL, 1, 0, 1);
-
--- CRM-4802
-    UPDATE civicrm_payment_processor_type
-        SET url_recur_default      = 'https://www.paypal.com/',
-            url_recur_test_default = 'https://www.sandbox.paypal.com/',
-            is_recur = 1
-        WHERE name = 'PayPal';
-
-    UPDATE civicrm_payment_processor
-        SET is_recur  = 1,
-            url_recur = 'https://www.paypal.com/'
-        WHERE payment_processor_type = 'PayPal' AND is_test = 0;
-
-    UPDATE civicrm_payment_processor
-        SET is_recur  = 1,
-            url_recur = 'https://www.sandbox.paypal.com/'
-        WHERE payment_processor_type = 'PayPal' AND is_test = 1;
-
---  CRM-5313
---  migrate the contribution id's to participant id's in lineitem table
-    UPDATE civicrm_line_item AS li
-        LEFT JOIN civicrm_participant_payment AS pp ON (pp.contribution_id = li.entity_id)
-        SET li.entity_id    = pp.participant_id,
-            li.entity_table = 'civicrm_participant'
-        WHERE pp.contribution_id = li.entity_id AND
-              li.entity_table    = 'civicrm_contribution';
-
---  CRM-5317
---  copy name to value, since we want to use value instead of name.
-    UPDATE  civicrm_option_value as vals
-        LEFT  JOIN  civicrm_option_group as groups ON ( groups.id = vals.option_group_id )
-        INNER JOIN  civicrm_price_field fields ON ( groups.name = CONCAT( 'civicrm_price_field.amount.', fields.id ) )
-        SET  vals.value=vals.name;
-
---  CRM-5244
-    ALTER TABLE civicrm_mail_settings
-        ADD `domain_id` int(10) unsigned NOT NULL COMMENT 'Which Domain is this match entry for' AFTER id;
-
-    UPDATE civicrm_mail_settings SET domain_id = @domain_id;
-
--- Date migration CRM-4312
-    ALTER TABLE civicrm_custom_field
-        CHANGE date_parts date_format VARCHAR( 64 )  NULL DEFAULT NULL COMMENT 'date format for custom date',
-        ADD time_format int unsigned  COMMENT 'time format for custom date' AFTER date_format;
-
-    ALTER TABLE `civicrm_preferences_date`
-        CHANGE `format` `date_format` VARCHAR( 64 )  NULL DEFAULT NULL COMMENT 'The date type',
-        ADD `time_format` VARCHAR( 64 ) NULL DEFAULT NULL COMMENT 'store time format' AFTER `date_format`;
-        ALTER TABLE `civicrm_preferences_date`
-            DROP `minute_increment`;
-
-    DELETE FROM civicrm_preferences_date WHERE name IN ('datetime','duration','fixed','manual' );
-
-    UPDATE civicrm_preferences_date
-        SET date_format = ''
-        WHERE name IN ( 'activityDate', 'activityDatetime', 'birth', 'custom', 'mailing', 'relative' );
-
-    UPDATE civicrm_preferences_date SET name = 'searchDate' WHERE name = 'relative';
-    UPDATE civicrm_preferences_date SET name = 'activityDateTime' WHERE name = 'activityDatetime';
-    UPDATE civicrm_preferences_date SET time_format = 1 WHERE name = 'activityDatetime';
---  CRM-5263
-    ALTER TABLE civicrm_country
-  ADD is_province_abbreviated tinyint(4) default '0' COMMENT 'Should state/province be displayed as abbreviation for contacts from this country?';
-
--- message templates, CRM-3507
-    ALTER TABLE civicrm_msg_template
-        CHANGE msg_subject msg_subject TEXT NULL COMMENT 'Subject for email message.',
-        ADD workflow_id int(10) unsigned default NULL COMMENT 'a pseudo-FK to civicrm_option_value AFTER is_active',
-        ADD is_default  tinyint(4) default '1'  COMMENT 'is this the default message template for the workflow referenced by workflow_id?' AFTER workflow_id,
-        ADD is_reserved tinyint(4) default NULL COMMENT 'is this the reserved message template which we ship for the workflow referenced by workflow_id?' AFTER is_default;
-
-    {include file='../CRM/Upgrade/3.1.alpha1.msg_template/civicrm_msg_template.tpl'}
diff --git a/CRM/Upgrade/Incremental/sql/3.1.alpha2.mysql.tpl b/CRM/Upgrade/Incremental/sql/3.1.alpha2.mysql.tpl
deleted file mode 100644 (file)
index d8450cd..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
--- CRM-3507: upgrade message templates (if changed)
-{include file='../CRM/Upgrade/3.1.alpha2.msg_template/civicrm_msg_template.tpl'}
-
---  CRM-5263
-
-UPDATE civicrm_country SET is_province_abbreviated = 1
-WHERE name IN ('Canada', 'United States');
-
---  CRM-5106
---  Updating weight for Autocomplete search options
-
-SELECT @option_group_id_acsOpt := max(id) from civicrm_option_group where name = 'contact_autocomplete_options';
-
-DELETE FROM `civicrm_option_value` WHERE option_group_id = @option_group_id_acsOpt;
-
-INSERT INTO `civicrm_option_value`
-    (`option_group_id`, {localize field='label'}`label`{/localize}, `value`, `name`, `grouping`, `filter`, `is_default`, `weight`, `is_optgroup`, `is_reserved`, `is_active`, `component_id`, `visibility_id`)
-VALUES
-    (@option_group_id_acsOpt, {localize}'Email Address'{/localize}  , 2, 'email',          NULL, 0, NULL, 2,  0, 0, 1, NULL, NULL),
-    (@option_group_id_acsOpt, {localize}'Phone'{/localize}          , 3, 'phone',          NULL, 0, NULL, 3,  0, 0, 1, NULL, NULL),
-    (@option_group_id_acsOpt, {localize}'Street Address'{/localize} , 4, 'street_address', NULL, 0, NULL, 4,  0, 0, 1, NULL, NULL),
-    (@option_group_id_acsOpt, {localize}'City'{/localize}           , 5, 'city',           NULL, 0, NULL, 5,  0, 0, 1, NULL, NULL),
-    (@option_group_id_acsOpt, {localize}'State/Province'{/localize} , 6, 'state_province', NULL, 0, NULL, 6,  0, 0, 1, NULL, NULL),
-    (@option_group_id_acsOpt, {localize}'Country'{/localize}        , 7, 'country',        NULL, 0, NULL, 7,  0, 0, 1, NULL, NULL);
\ No newline at end of file
diff --git a/CRM/Upgrade/Incremental/sql/3.1.beta1.mysql.tpl b/CRM/Upgrade/Incremental/sql/3.1.beta1.mysql.tpl
deleted file mode 100644 (file)
index 4a378b9..0000000
+++ /dev/null
@@ -1,109 +0,0 @@
--- CRM-3507: upgrade message templates (if changed)
-{include file='../CRM/Upgrade/3.1.beta1.msg_template/civicrm_msg_template.tpl'}
-
---  CRM-5388
--- we definitely shouldn't fix non-English strings, so skipping the multilingual part
-{if !$multilingual}
--- prefix
-    UPDATE civicrm_option_value SET label = 'Mr.' , name = 'Mr.'  WHERE label = 'Mr'  AND name = 'Mr';
-    UPDATE civicrm_option_value SET label = 'Ms.' , name = 'Ms.'  WHERE label = 'Ms'  AND name = 'Ms';
-    UPDATE civicrm_option_value SET label = 'Mrs.', name = 'Mrs.' WHERE label = 'Mrs' AND name = 'Mrs';
-    UPDATE civicrm_option_value SET label = 'Dr.',  name = 'Dr.'  WHERE label = 'Dr'  AND name = 'Dr';
-
--- suffix
-    UPDATE civicrm_option_value SET label = 'Jr.',  name = 'Jr.'  WHERE label = 'Jr'  AND name = 'Jr';
-    UPDATE civicrm_option_value SET label = 'Sr.',  name = 'Sr.'  WHERE label = 'Sr'  AND name = 'Sr';
-{/if}
-
---  CRM-5435
-ALTER TABLE `civicrm_contribution_soft`
-    ADD CONSTRAINT `FK_civicrm_contribution_soft_pcp_id` FOREIGN KEY (`pcp_id`) REFERENCES `civicrm_pcp` (`id`) ON DELETE SET NULL;
-
-ALTER TABLE `civicrm_contribution_soft`
-    CHANGE `pcp_id` `pcp_id` int(10) unsigned default NULL COMMENT 'FK to civicrm_pcp.id';
-
-ALTER TABLE `civicrm_pcp_block`
-    ADD CONSTRAINT `FK_civicrm_pcp_block_supporter_profile_id` FOREIGN KEY (`supporter_profile_id`) REFERENCES `civicrm_uf_group` (`id`) ON DELETE SET NULL;
-
-ALTER TABLE `civicrm_pcp_block`
-    CHANGE `supporter_profile_id` `supporter_profile_id` int(10) unsigned default NULL COMMENT 'FK to civicrm_uf_group.id. Does Personal Campaign Page require manual activation by administrator? (is inactive by default after setup)?';
-
--- CRM-5322
-
-  SELECT @option_group_id_sfe := max(id) from civicrm_option_group where name = 'safe_file_extension';
-  SELECT @max_val             := MAX(ROUND(op.value)) FROM civicrm_option_value op WHERE op.option_group_id  = @option_group_id_sfe;
-  SELECT @max_wt              := max(weight) from civicrm_option_value where option_group_id= @option_group_id_sfe;
-
-  INSERT INTO civicrm_option_value
-    (option_group_id,      {localize field='label'}label{/localize}, value,                           filter, weight) VALUES
-    (@option_group_id_sfe, {localize}'docx'{/localize},              (SELECT @max_val := @max_val+1), 0,      (SELECT @max_wt := @max_wt+1)),
-    (@option_group_id_sfe, {localize}'xlsx'{/localize},              (SELECT @max_val := @max_val+1), 0,      (SELECT @max_wt := @max_wt+1));
-
---
--- handle schema changes from v3.0.3 once again, CRM-5463
---
--- CRM-5333
--- Delete duplicate records in target and assignment exists if any
-
-DELETE cat.* FROM civicrm_activity_target cat
-             INNER JOIN ( SELECT id, activity_id, target_contact_id
-                          FROM civicrm_activity_target
-                          GROUP BY activity_id, target_contact_id HAVING count(*) > 1 ) dup_cat
-                     ON ( cat.activity_id = dup_cat.activity_id
-                          AND cat.target_contact_id = dup_cat.target_contact_id
-                          AND cat.id <> dup_cat.id );
-
-DELETE caa.* FROM civicrm_activity_assignment caa
-              INNER JOIN ( SELECT id, activity_id, assignee_contact_id
-                           FROM civicrm_activity_assignment
-                           GROUP BY activity_id, assignee_contact_id HAVING count(*) > 1 ) dup_caa
-                      ON ( caa.activity_id = dup_caa.activity_id
-                           AND caa.assignee_contact_id = dup_caa.assignee_contact_id
-                           AND caa.id <> dup_caa.id );
-
-
--- Drop unique indexes of activity_target and activity_assignment
-
-ALTER TABLE  civicrm_activity_assignment
-DROP INDEX `UI_activity_assignee_contact_id` ,
-ADD UNIQUE INDEX `UI_activity_assignee_contact_id` (`assignee_contact_id`,`activity_id`);
-
-ALTER TABLE  civicrm_activity_target
-DROP INDEX `UI_activity_target_contact_id` ,
-ADD UNIQUE INDEX `UI_activity_target_contact_id` (`target_contact_id`,`activity_id`);
-
--- CRM-5437
-UPDATE civicrm_participant_status_type SET class = 'Pending' WHERE class NOT IN ('Positive', 'Pending', 'Waiting', 'Negative');
-
--- CRM-5451
-ALTER TABLE `civicrm_custom_group`
-DROP FOREIGN KEY `FK_civicrm_custom_group_created_id`;
-
-ALTER TABLE `civicrm_custom_group`
-ADD CONSTRAINT `FK_civicrm_custom_group_created_id` FOREIGN KEY (`created_id`) REFERENCES `civicrm_contact` (`id`) ON DELETE SET NULL;
-
-ALTER TABLE `civicrm_event`
-DROP FOREIGN KEY `FK_civicrm_event_created_id`;
-
-ALTER TABLE `civicrm_event`
-ADD CONSTRAINT `FK_civicrm_event_created_id` FOREIGN KEY (`created_id`) REFERENCES `civicrm_contact` (`id`) ON DELETE SET NULL;
-
-ALTER TABLE `civicrm_contribution_page`
-DROP FOREIGN KEY `FK_civicrm_contribution_page_created_id`;
-
-ALTER TABLE `civicrm_contribution_page`
-ADD CONSTRAINT `FK_civicrm_contribution_page_created_id` FOREIGN KEY (`created_id`) REFERENCES `civicrm_contact` (`id`) ON DELETE SET NULL;
-
-ALTER TABLE `civicrm_uf_group`
-DROP FOREIGN KEY `FK_civicrm_uf_group_created_id`;
-
-ALTER TABLE `civicrm_uf_group`
-ADD CONSTRAINT `FK_civicrm_uf_group_created_id` FOREIGN KEY (`created_id`) REFERENCES `civicrm_contact` (`id`) ON DELETE SET NULL;
-
--- CRM-5471
-UPDATE civicrm_mailing_bounce_pattern
-   SET pattern = 'delivery to the following recipient(s)? failed'
- WHERE pattern = 'delivery to the following recipients failed';
-
---v3.0.3 changes end.
-
diff --git a/CRM/Upgrade/Incremental/sql/3.1.beta2.mysql.tpl b/CRM/Upgrade/Incremental/sql/3.1.beta2.mysql.tpl
deleted file mode 100644 (file)
index a3d9389..0000000
+++ /dev/null
@@ -1,109 +0,0 @@
--- CRM-3507: upgrade message templates (if changed)
-{include file='../CRM/Upgrade/3.1.beta2.msg_template/civicrm_msg_template.tpl'}
-
--- CRM-5496
-    SELECT @option_group_id_report  := max(id) from civicrm_option_group where name = 'report_template';
-    SELECT @caseCompId              := max(id) FROM civicrm_component where name = 'CiviCase';
-    INSERT INTO
-        `civicrm_option_value` (`option_group_id`, {localize field='label'}label{/localize}, `value`, `name`, `grouping`, `filter`, `is_default`, `weight`, {localize field='description'}description{/localize}, `is_optgroup`, `is_reserved`, `is_active`, `component_id`, `visibility_id`)
-    VALUES
-        (@option_group_id_report , {localize}'Case Summary Report'{/localize}        , 'case/summary'     , 'CRM_Report_Form_Case_Summary'     , NULL, 0, NULL, 24, {localize}'Provides a summary of cases and their duration by date range, status, staff member and / or case role.'{/localize}             , 0, 0, 1, @caseCompId, NULL),
-        (@option_group_id_report , {localize}'Case Time Spent Report'{/localize}     , 'case/timespent'   , 'CRM_Report_Form_Case_TimeSpent'   , NULL, 0, NULL, 25, {localize}'Aggregates time spent on case and / or or non-case activities by activity type and contact.'{/localize}                        , 0, 0, 1, @caseCompId, NULL),
-        (@option_group_id_report , {localize}'Contact Demographics Report'{/localize}, 'case/demographics', 'CRM_Report_Form_Case_Demographics', NULL, 0, NULL, 26, {localize}'Demographic breakdown for case clients (and or non-case contacts) in your database. Includes custom contact fields.'{/localize}, 0, 0, 1, @caseCompId, NULL),
-        (@option_group_id_report , {localize}'Database Log Report'{/localize}        , 'contact/log'      , 'CRM_Report_Form_Contact_Log'      , NULL, 0, NULL, 27, {localize}'Log of contact and activity records created or updated in a given date range.'{/localize}                                      , 0, 0, 1, NULL       , NULL);
--- CRM-5438
-UPDATE civicrm_navigation SET permission ='access CiviCRM', permission_operator ='' WHERE civicrm_navigation.name= 'Manage Groups';
-
--- CRM-5450
-
-SELECT @option_group_id_address_options := max(id) from civicrm_option_group where name = 'address_options';
-SELECT @adOpt_max_val := MAX(ROUND(op.value)) FROM civicrm_option_value op WHERE op.option_group_id = @option_group_id_address_options;
-SELECT @adOpt_max_wt  := MAX(ROUND(val.weight)) FROM civicrm_option_value val where val.option_group_id = @option_group_id_address_options;
-
-INSERT INTO
-   civicrm_option_value(`option_group_id`, {localize field='label'}`label`{/localize}, `value`, `name`, `grouping`, `filter`, `is_default`, `weight`, `is_optgroup`, `is_reserved`, `is_active`, `component_id`, `visibility_id`)
-VALUES(@option_group_id_address_options, {localize}'Street Address Parsing'{/localize}, (SELECT @adOpt_max_val := @adOpt_max_val+1), 'street_address_parsing', NULL, 0, NULL, (SELECT @adOpt_max_wt := @adOpt_max_wt + 1 ), 0, 0, 1, NULL, NULL);
-
---fix broken default address options.
-SELECT  @domain_id := min(id) FROM civicrm_domain;
-
-UPDATE  `civicrm_preferences`
-   SET  `address_options` = REPLACE( `address_options`, '\ 113\ 114', '' )
- WHERE  `domain_id` = @domain_id
-   AND  `contact_id` IS NULL;
-
--- CRM-5528
-
-SELECT @option_group_id_cdt := max(id) from civicrm_option_group where name = 'custom_data_type';
-
-INSERT INTO
-   `civicrm_option_value` (`option_group_id`, {localize field='label'}`label`{/localize}, `value`, `name`, `grouping`, `filter`, `is_default`, `weight`, `is_optgroup`, `is_reserved`, `is_active`)
-VALUES(@option_group_id_cdt, {localize}'Participant Event Type'{/localize}, '3', 'ParticipantEventType', NULL, 0, NULL, 3, 0, 0, 1);
-
--- add table dashboard and dashboard contact
--- CRM-5423
-
-    CREATE TABLE civicrm_dashboard (
-        id int(10)    unsigned NOT NULL auto_increment,
-        domain_id    int(10) unsigned NOT NULL      COMMENT 'Domain for dashboard',
-        {localize field='label'}label varchar(255)   COMMENT 'Widget Title' default NULL{/localize},
-        url           varchar(255) default NULL      COMMENT 'url in case of external widget',
-        content       text                           COMMENT 'widget content',
-        permission    varchar(255)      default NULL COMMENT 'Permission for the widget',
-        permission_operator varchar(3) default NULL COMMENT 'Permission Operator',
-        column_no     tinyint(4)        default '0'  COMMENT 'column no for this widget',
-        is_minimized  tinyint(4)        default '0'  COMMENT 'Is Minimized?',
-        is_fullscreen tinyint(4)        default '1'  COMMENT 'Is Fullscreen?',
-        is_active     tinyint(4)        default '0'  COMMENT 'Is this widget active?',
-        weight        int(11)           default '0'  COMMENT 'Ordering of the widgets.',
-        created_date  datetime          default NULL COMMENT 'When was content populated',
-        PRIMARY KEY   (`id`),
-        KEY `FK_civicrm_dashboard_domain_id` (`domain_id`)
-    ) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-
-    INSERT INTO civicrm_dashboard
-        ( domain_id, {localize field='label'}`label`{/localize}, url, content, permission, permission_operator, column_no, is_minimized, is_fullscreen, is_active, weight, created_date )
-    VALUES
-        ( @domain_id, {localize }'Activities'{/localize}, 'civicrm/dashlet/activity&reset=1&snippet=4', NULL, NULL, NULL, 0, 0,'1', '1', NULL, NULL );
-
-    CREATE TABLE civicrm_dashboard_contact (
-        id int(10)    unsigned NOT NULL auto_increment,
-        dashboard_id  int(10) unsigned NOT NULL    COMMENT 'Dashboard ID',
-        contact_id    int(10) unsigned NOT NULL    COMMENT 'Contact ID',
-        column_no     tinyint(4) default '0'       COMMENT 'column no for this widget',
-        is_minimized  tinyint(4) default '0'       COMMENT 'Is Minimized?',
-        is_fullscreen tinyint(4) default '1'       COMMENT 'Is Fullscreen?',
-        is_active     tinyint(4) default '0'       COMMENT 'Is this widget active?',
-        weight        int(11)    default '0'       COMMENT 'Ordering of the widgets.',
-        PRIMARY KEY  (`id`),
-        KEY `FK_civicrm_dashboard_contact_dashboard_id` (`dashboard_id`),
-        KEY `FK_civicrm_dashboard_contact_contact_id` (`contact_id`)
-    ) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-
--- CRM-5549
-
-ALTER TABLE `civicrm_report_instance`
-    ADD `domain_id` INT(10) UNSIGNED NOT NULL COMMENT 'Which Domain is this instance for' AFTER `id`;
-
-UPDATE `civicrm_report_instance` SET domain_id = @domain_id;
-
-ALTER TABLE `civicrm_report_instance`
-    ADD CONSTRAINT `FK_civicrm_report_instance_domain_id` FOREIGN KEY (`domain_id`) REFERENCES `civicrm_domain` (`id`);
-
--- CRM-5546
-
-ALTER TABLE `civicrm_price_set`
-    ADD `domain_id` INT(10)  UNSIGNED DEFAULT NULL COMMENT 'Which Domain is this price-set for' AFTER `id`;
-ALTER TABLE `civicrm_price_set`
-    ADD CONSTRAINT `FK_civicrm_price_set_domain_id` FOREIGN KEY (`domain_id`) REFERENCES `civicrm_domain` (`id`);
-
-ALTER TABLE `civicrm_option_value`
-    ADD `domain_id` INT(10) UNSIGNED DEFAULT NULL COMMENT 'Which Domain is this option value for' AFTER `component_id`;
-
-ALTER TABLE `civicrm_option_value`
-    ADD CONSTRAINT `FK_civicrm_option_value_domain_id` FOREIGN KEY (`domain_id`) REFERENCES `civicrm_domain` (`id`);
-
-SELECT @option_group_id_grant := id from civicrm_option_group where name = 'grant_type';
-SELECT @option_group_id_email := id from civicrm_option_group where name = 'from_email_address';
-
-UPDATE `civicrm_option_value` SET domain_id = @domain_id WHERE option_group_id IN (@option_group_id_grant,@option_group_id_email );
diff --git a/CRM/Upgrade/Incremental/sql/3.1.beta3.mysql.tpl b/CRM/Upgrade/Incremental/sql/3.1.beta3.mysql.tpl
deleted file mode 100644 (file)
index eba0585..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
---Add permission for dashlet access
-
-ALTER TABLE `civicrm_dashboard` ADD `is_reserved` TINYINT NULL DEFAULT '0' COMMENT 'Is this dashlet reserved?';
-
-UPDATE `civicrm_dashboard` SET `permission` = 'access CiviCRM', `is_reserved` = 1 WHERE `id` = 1;
-
diff --git a/CRM/Upgrade/Incremental/sql/3.1.beta4.mysql.tpl b/CRM/Upgrade/Incremental/sql/3.1.beta4.mysql.tpl
deleted file mode 100644 (file)
index 8dccaa0..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-{include file='../CRM/Upgrade/3.1.beta4.msg_template/civicrm_msg_template.tpl'}
-
--- Set default participant role filter = 1, CRM-4924
-   UPDATE   civicrm_option_value val
-LEFT JOIN   civicrm_option_group gr ON ( gr.id = val.option_group_id )
-      SET   val.filter = 1
-    WHERE   gr.name = 'participant_role'
-      AND   val.name IN ( 'Attendee', 'Host', 'Speaker', 'Volunteer' );
-
-SELECT @option_group_id_report := max(id) from civicrm_option_group where name = 'report_template';
-INSERT INTO civicrm_option_value
-    (option_group_id, {localize field='label'}`label`{/localize}, {localize field='description'}description{/localize}, value, name, weight, is_active, component_id )
-VALUES
-    (@option_group_id_report , {localize}'{ts escape="sql"}Activity Report (Summary){/ts}'{/localize}, {localize}'{ts escape="sql"}Shows activity statistics by type / date{/ts}'{/localize}, 'activitySummary', 'CRM_Report_Form_ActivitySummary', 28, 1, NULL );
\ No newline at end of file
diff --git a/CRM/Upgrade/Incremental/sql/3.1.beta5.mysql.tpl b/CRM/Upgrade/Incremental/sql/3.1.beta5.mysql.tpl
deleted file mode 100644 (file)
index bbae207..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
--- CRM-5628
-SELECT @country_id := id from civicrm_country where name = 'Haiti';
-
-INSERT IGNORE INTO civicrm_state_province ( country_id, abbreviation, name ) VALUES
-( @country_id,  'AR',  'Artibonite' ),
-( @country_id,  'CE',  'Centre'     ),
-( @country_id,  'NI',  'Nippes'     ),
-( @country_id,  'ND',  'Nord'       );
-
-    UPDATE  civicrm_state_province state
-INNER JOIN  civicrm_country country ON ( country.id = state.country_id )
-       SET  state.name = 'Nord-Est'
-     WHERE  state.name = 'Nord-Eat'
-       AND  country.name = 'Haiti';
-
-INSERT INTO civicrm_acl
-    (name, deny, entity_table, entity_id, operation, object_table, object_id, acl_table, acl_id, is_active)
-VALUES
-    ('Core ACL', 0, 'civicrm_acl_role', 1, 'All', 'profile create',   NULL, NULL, NULL, 1),
-    ('Core ACL', 0, 'civicrm_acl_role', 1, 'All', 'profile edit',     NULL, NULL, NULL, 1),
-    ('Core ACL', 0, 'civicrm_acl_role', 1, 'All', 'profile listings', NULL, NULL, NULL, 1),
-    ('Core ACL', 0, 'civicrm_acl_role', 1, 'All', 'profile view',     NULL, NULL, NULL, 1);
-
--- CRM-5648
-SELECT @option_group_id_mt := max(id) from civicrm_option_group where name = 'mapping_type';
-SELECT @max_val            := MAX(ROUND(op.value))   FROM civicrm_option_value op  WHERE op.option_group_id  = @option_group_id_mt;
-SELECT @max_wt             := MAX(ROUND(val.weight)) FROM civicrm_option_value val WHERE val.option_group_id = @option_group_id_mt;
-
-INSERT INTO civicrm_option_value
-   (`option_group_id`, {localize field='label'}`label`{/localize}, `value`, `name`, `grouping`, `filter`, `is_default`, `weight`, `is_optgroup`, `is_reserved`, `is_active`)
-VALUES
-   (@option_group_id_mt, {localize}'Export Grant'{/localize}, (SELECT @max_val := @max_val+1), 'Export Grant', NULL, 0, 0, (SELECT @max_wt := @max_wt+1), 0, 1, 1);
\ No newline at end of file
diff --git a/CRM/Upgrade/Incremental/sql/3.1.beta6.mysql.tpl b/CRM/Upgrade/Incremental/sql/3.1.beta6.mysql.tpl
deleted file mode 100644 (file)
index 5cdaa8a..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
--- CRM-5670
--- Tyne and Wear
-UPDATE civicrm_state_province SET abbreviation = 'TWR' WHERE id =  9986;
--- Greater Manchester
-UPDATE civicrm_state_province SET abbreviation = 'GTM' WHERE id =  9988;
--- Co Tyrone
-UPDATE civicrm_state_province SET abbreviation = 'TYR' WHERE id =  9989;
--- West Yorkshire
-UPDATE civicrm_state_province SET abbreviation = 'WYK' WHERE id =  9990;
--- South Yorkshire
-UPDATE civicrm_state_province SET abbreviation = 'SYK' WHERE id =  9991;
--- Merseyside
-UPDATE civicrm_state_province SET abbreviation = 'MSY' WHERE id =  9992;
--- Berkshire
-UPDATE civicrm_state_province SET abbreviation = 'BRK' WHERE id =  9993;
--- West Midlands
-UPDATE civicrm_state_province SET abbreviation = 'WMD' WHERE id =  9994;
--- West Glamorgan
-UPDATE civicrm_state_province SET abbreviation = 'WGM' WHERE id =  9998;
--- Greater London
-UPDATE civicrm_state_province SET abbreviation = 'LON' WHERE id =  9999;
--- Clwyd
-UPDATE civicrm_state_province SET abbreviation = 'CWD' WHERE id = 10013;
--- Dyfed
-UPDATE civicrm_state_province SET abbreviation = 'DFD' WHERE id = 10014;
--- South Glamorgan
-UPDATE civicrm_state_province SET abbreviation = 'SGM' WHERE id = 10015;