-<?php
+<?php
/**
* This class generates form components for the display preferences
);
parent::preProcess();
}
-
+
/**
* Function to build the form
*
$val = CRM_Utils_File::addTrailingSlash($val);
}
}
-
- //CRM-15365 - Fix BaseURL to avoid wrong trailing slash on Windows installs
+
+ //CRM-15365 - Fix BaseURL to avoid wrong trailing slash on Windows installs
foreach ($params as $name => & $val) {
if ($val && in_array($name, array('newBaseURL'))) {
$val = CRM_Utils_File::addTrailingSlash($val,"/");
if (empty($fields['campaign_id'])) {
$where[] = 'campaign_id IS NULL';
- } else {
+ }
+ else {
$where[] = 'campaign_id = %3';
- $params[3] = array($fields['campaign_id'], 'Integer');
+ $params[3] = array($fields['campaign_id'], 'Integer');
$uniqueRuleErrorMessage = ts('This title is already associated with the selected campaign and activity type. Please specify a unique title.');
}
// Exclude current Petition row if UPDATE.
if ($form->_surveyId) {
$where[] = 'id != %4';
- $params[4] = array($form->_surveyId, 'Integer');
+ $params[4] = array($form->_surveyId, 'Integer');
}
-
+
$whereClause = implode(' AND ', $where);
$query = "
{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}
+ {/foreach}
{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';
-{/if}
+{/if}
-- /*******************************************************
-- *
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` )
(SELECT @option_group_id_activity_type, {localize}'{ts escape="sql"}ADC referral{/ts}'{/localize}, (SELECT @max_val := @max_val+1), 'ADC referral', NULL, 0, 0, (SELECT @max_val := @max_val+1), 0, 0, 1, @caseCompId
FROM dual WHERE NOT EXISTS (SELECT * FROM `civicrm_option_value` WHERE `name` = 'ADC referral'));
-
+
-- /*******************************************************
-- *
-- * Relationship Types
CRM_Utils_System::setTitle(implode(',', $displayName) . ' - ' . ts('Email'));
}
else {
- CRM_Utils_System::setTitle(ts('New Email'));
+ CRM_Utils_System::setTitle(ts('New Email'));
}
CRM_Contact_Form_Task_EmailCommon::preProcessFromAddress($this);
}
}
else {
- $cid = CRM_Utils_Array::value('cid', $_GET);
- if ($cid) {
+ $cid = CRM_Utils_Array::value('cid', $_GET);
+ if ($cid) {
//check cid for interger
$contIDS = explode(',', $cid);
foreach ($contIDS as $contID) {
CRM_Utils_Type::escape($contID, 'Integer');
}
$queryString = " cc.id IN ( $cid )";
- }
+ }
}
if ($queryString) {
$queryString = " ( cc.sort_name LIKE '%$name%' OR cp.phone LIKE '%$name%' ) ";
}
else {
- $cid = CRM_Utils_Array::value('cid', $_GET);
- if ($cid) {
+ $cid = CRM_Utils_Array::value('cid', $_GET);
+ if ($cid) {
//check cid for interger
$contIDS = explode(',', $cid);
foreach ($contIDS as $contID) {
$prefixValue = CRM_Core_BAO_Setting::getItem(CRM_Core_BAO_Setting::CONTRIBUTE_PREFERENCES_NAME, 'contribution_invoice_settings');
$invoicing = CRM_Utils_Array::value('invoicing', $prefixValue);
if (count($taxAmt) > 0 && (isset($invoicing) && isset($prefixValue['is_email_pdf']))) {
- $sendTemplateParams['isEmailPdf'] = True;
+ $sendTemplateParams['isEmailPdf'] = True;
$sendTemplateParams['contributionId'] = $values['contribution_id'];
}
list($sent, $subject, $message, $html) = CRM_Core_BAO_MessageTemplate::sendTemplate($sendTemplateParams);
else {
$isEmailPdf = False;
}
-
+
list($sendReceipt, $subject, $message, $html) = CRM_Core_BAO_MessageTemplate::sendTemplate(
array(
'groupName' => 'msg_tpl_workflow_contribution',
$submittedValues, $lineItem[$priceSetId]);
// unset tax amount for offline 'is_quick_config' contribution
- if ($this->_priceSet['is_quick_config'] &&
+ if ($this->_priceSet['is_quick_config'] &&
!array_key_exists($submittedValues['financial_type_id'], CRM_Core_PseudoConstant::getTaxRates())
) {
unset($submittedValues['tax_amount']);
}
}
}
-
+
if ($invoicing) {
if ($this->_action & CRM_Core_Action::UPDATE) {
if (isset($submittedValues['tax_amount'])) {
// get the submitted form values.
$params = $this->controller->exportValues($this->_name);
- //update 'is_billing_required'
+ //update 'is_billing_required'
if (empty($params['is_pay_later'])) {
$params['is_billing_required'] = 0;
}
$addressParams = array('contact_id' => $contribution->contact_id);
$addressDetails = CRM_Core_BAO_Address::getValues($addressParams);
- // to get billing address if present
+ // to get billing address if present
$billingAddress = array();
foreach ($addressDetails as $key => $address) {
if ((isset($address['is_billing']) && $address['is_billing'] == 1) && (isset($address['is_primary']) && $address['is_primary'] == 1) && $address['contact_id'] == $contribution->contact_id) {
$lineItem = CRM_Price_BAO_LineItem::getLineItems($eid, $etable);
}
- //TO DO: Need to do changes for partially paid to display amount due on PDF invoice
+ //TO DO: Need to do changes for partially paid to display amount due on PDF invoice
$amountDue = ($input['amount'] - $input['amount']);
- // retreiving the subtotal and sum of same tax_rate
+ // retreiving the subtotal and sum of same tax_rate
$dataArray = array();
$subTotal = 0;
foreach ($lineItem as $entity_id => $taxRate) {
if (isset($creditNoteId)) {
$tplParams['creditnote_id'] = $creditNoteId;
}
-
+
$sendTemplateParams = array(
'groupName' => 'msg_tpl_workflow_contribution',
'valueName' => 'contribution_invoice_receipt',
unset(self::$_tasks[1]);
}
- // remove action "Print or Email Contribution Invoices"
+ // remove action "Print or Email Contribution Invoices"
$invoiceSettings = CRM_Core_BAO_Setting::getItem(CRM_Core_BAO_Setting::CONTRIBUTE_PREFERENCES_NAME, 'contribution_invoice_settings');
$invoicing = CRM_Utils_Array::value('invoicing', $invoiceSettings);
if (!$invoicing) {
*
*/
-require_once 'packages/When/When.php';
+require_once 'packages/When/When.php';
class CRM_Core_BAO_RecurringEntity extends CRM_Core_DAO_RecurringEntity {
public $overwriteColumns = array();
public $intervalDateColumns = array();
public $excludeDates = array();
-
+
public $linkedEntities = array();
public $isRecurringEntityRecord = TRUE;
protected $recursion = NULL;
- static $_tableDAOMapper =
+ static $_tableDAOMapper =
array(
'civicrm_event' => 'CRM_Event_DAO_Event',
'civicrm_price_set_entity' => 'CRM_Price_DAO_PriceSetEntity',
'civicrm_activity_contact' => 'CRM_Activity_DAO_ActivityContact',
);
- static $_updateSkipFields =
+ static $_updateSkipFields =
array(
'civicrm_event' => array('start_date', 'end_date'),
'civicrm_tell_friend' => array('entity_id'),
'civicrm_activity' => array('activity_date_time'),
);
- static $_linkedEntitiesInfo =
+ static $_linkedEntitiesInfo =
array(
'civicrm_tell_friend' => array(
- 'entity_id_col' => 'entity_id',
+ 'entity_id_col' => 'entity_id',
'entity_table_col' => 'entity_table'
),
'civicrm_price_set_entity' => array(
- 'entity_id_col' => 'entity_id',
+ 'entity_id_col' => 'entity_id',
'entity_table_col' => 'entity_table',
'is_multirecord' => TRUE,
),
'civicrm_uf_join' => array(
- 'entity_id_col' => 'entity_id',
+ 'entity_id_col' => 'entity_id',
'entity_table_col' => 'entity_table'
),
'civicrm_pcp_block' => array(
- 'entity_id_col' => 'entity_id',
+ 'entity_id_col' => 'entity_id',
'entity_table_col' => 'entity_table'
),
);
-
+
/**
* Function to save records in civicrm_recujrring_entity table
*
* @return object
*/
static function quickAdd($parentId, $entityId, $entityTable) {
- $params =
+ $params =
array(
'parent_id' => $parentId,
'entity_id' => $entityId,
/**
* This function generates all new entities based on object vars
- *
+ *
* @return array
*/
function generate() {
/**
* This function builds a "When" object based on schedule/reminder params
- *
+ *
* @return object When object
*/
function generateRecursion() {
// return if already generated
- if (is_a($this->recursion, 'When')) {
+ if (is_a($this->recursion, 'When')) {
return $this->recursion;
}
/**
* Generate new DAOs and along with entries in civicrm_recurring_entity table
- *
+ *
* @return array
*/
function generateEntities() {
$newCriteria[$col] = $val;
}
// create main entities
- $obj = CRM_Core_BAO_RecurringEntity::copyCreateEntity($this->entity_table,
+ $obj = CRM_Core_BAO_RecurringEntity::copyCreateEntity($this->entity_table,
$findCriteria,
$newCriteria,
$this->isRecurringEntityRecord
$newCriteria[$col] = $obj->id;
}
// create linked entities
- $linkedObj = CRM_Core_BAO_RecurringEntity::copyCreateEntity($linkedInfo['table'],
+ $linkedObj = CRM_Core_BAO_RecurringEntity::copyCreateEntity($linkedInfo['table'],
$linkedInfo['findCriteria'],
$newCriteria,
CRM_Utils_Array::value('isRecurringEntityRecord', $linkedInfo, TRUE)
}
/**
- * This function iterates through when object criterias and
+ * This function iterates through when object criterias and
* generates recursive dates based on that
- *
+ *
* @return array array of dates
*/
function generateRecursiveDates() {
$this->generateRecursion();
$recursionDates = array();
- if (is_a($this->recursion, 'When')) {
+ if (is_a($this->recursion, 'When')) {
$initialCount = CRM_Utils_Array::value('start_action_offset', $this->schedule);
$exRangeStart = $exRangeEnd = NULL;
/**
* This function gets all the children for a particular parent entity
- *
+ *
* @param int $parentId Parent entity id
* @param string $entityTable Name of the entity table
* @param boolean $includeParent If true parent id is included in result set and vice versa
* @param int $mode 1. retrieve only one entity. 2. retrieve all future entities in the repeating set. 3. all entities in the repeating set.
* @param int $initiatorId the instance where this function is invoked from
- *
+ *
* @access public
* @static
- *
+ *
* @return array an array of child ids
*/
static public function getEntitiesForParent($parentId, $entityTable, $includeParent = TRUE, $mode = 3, $initiatorId = NULL) {
if (!$initiatorId) {
$initiatorId = $parentId;
- }
+ }
$queryParams = array(
1 => array($parentId, 'Integer'),
$recurringEntityID = CRM_Core_DAO::singleValueQuery("SELECT id FROM civicrm_recurring_entity WHERE entity_id = %3 AND entity_table = %2", $queryParams);
if ($recurringEntityID) {
$query .= $includeParent ? " AND id >= %4" : " AND id > %4";
- $query .= " ORDER BY id ASC"; // FIXME: change to order by dates
+ $query .= " ORDER BY id ASC"; // FIXME: change to order by dates
$queryParams[4] = array($recurringEntityID, 'Integer');
}
else {
}
/**
- * This function when passed an entity id checks if it has parent and
+ * This function when passed an entity id checks if it has parent and
* returns all other entities that are connected to same parent.
- *
+ *
* @param int $entityId entity id
* @param string $entityTable Entity table name
* @param boolean $includeParent Include parent in result set
* @param int $mode 1. retrieve only one entity. 2. retrieve all future entities in the repeating set. 3. all entities in the repeating set.
- *
+ *
* @access public
* @static
- *
+ *
* @return array array of connected ids
*/
static public function getEntitiesFor($entityId, $entityTable, $includeParent = TRUE, $mode = 3) {
/**
* This function gets the parent for the entity id passed to it
- *
+ *
* @param int $entityId entity ID
* @param string $entityTable Entity table name
* @param boolean $includeParent Include parent in result set
- *
+ *
* @access public
* @static
- *
- * @return int unsigned $parentId Parent ID
+ *
+ * @return int unsigned $parentId Parent ID
*/
static public function getParentFor($entityId, $entityTable, $includeParent = TRUE) {
if (empty($entityId) || empty($entityTable)) {
}
$query = "
- SELECT parent_id
+ SELECT parent_id
FROM civicrm_recurring_entity
WHERE entity_id = %1 AND entity_table = %2";
if (!$includeParent) {
$query .= " AND parent_id != %1";
}
- $parentId =
+ $parentId =
CRM_Core_DAO::singleValueQuery($query,
array(
1 => array($entityId, 'Integer'),
/**
* This function copies the information from parent entity and creates other entities with same information
- *
+ *
* @param string $entityTable Entity table name
* @param array $fromCriteria array of all the fields & values on which basis to copy
* @param array $newParams array of all the fields & values to be copied besides the other fields
* @param boolean $createRecurringEntity if to create a record in recurring_entity table
- *
+ *
* @access public
* @static
- *
+ *
* @return object
*/
static public function copyCreateEntity($entityTable, $fromCriteria, $newParams, $createRecurringEntity = TRUE) {
/**
* This function acts as a listener to dao->update whenever there is an update,
* and propagates any changes to all related entities present in recurring entity table
- *
+ *
* @param object $event An object of /Civi/Core/DAO/Event/PostUpdate containing dao object that was just updated
- *
+ *
* @access public
* @static
- *
+ *
* @return void
*/
static public function triggerUpdate($event) {
return FALSE;
}
$key = "{$obj->__table}_{$obj->id}";
-
+
if (array_key_exists($key, $processedEntities)) {
// already processed
return NULL;
/**
* This function acts as a listener to dao->save,
* and creates entries for linked entities in recurring entity table
- *
+ *
* @param object $event An object of /Civi/Core/DAO/Event/PostUpdate containing dao object that was just inserted
- *
+ *
* @access public
* @static
- *
+ *
* @return void
*/
static public function triggerInsert($event) {
return FALSE;
}
$key = "{$obj->__table}_{$obj->id}";
-
+
if (array_key_exists($key, $processedEntities)) {
// already being processed. Exit recursive calls.
return NULL;
$idCol => $val['id'],
$tableCol => $val['table']
);
- $linkedObj = CRM_Core_BAO_RecurringEntity::copyCreateEntity($obj->__table,
+ $linkedObj = CRM_Core_BAO_RecurringEntity::copyCreateEntity($obj->__table,
array('id' => $obj->id),
$newCriteria,
TRUE
/**
* This function acts as a listener to dao->delete, and deletes an entry from recurring_entity table
- *
+ *
* @param object $event An object of /Civi/Core/DAO/Event/PostUpdate containing dao object that was just deleted
*
* @access public
* @static
- *
+ *
* @return void
*/
static public function triggerDelete($event) {
/**
* This function maps values posted from form to civicrm_action_schedule columns
- *
+ *
* @param array $formParams and array of form values posted
- *
- * @return array
+ *
+ * @return array
*/
- function mapFormValuesToDB($formParams = array()) {
+ function mapFormValuesToDB($formParams = array()) {
$dbParams = array();
if (CRM_Utils_Array::value('used_for', $formParams)) {
$dbParams['used_for'] = $formParams['used_for'];
}
}
- //For "Ends" - After:
+ //For "Ends" - After:
if ($formParams['ends'] == 1) {
if (CRM_Utils_Array::value('start_action_offset', $formParams)) {
$dbParams['start_action_offset'] = $formParams['start_action_offset'];
}
}
- //For "Ends" - On:
+ //For "Ends" - On:
if ($formParams['ends'] == 2) {
if (CRM_Utils_Array::value('repeat_absolute_date', $formParams)) {
$dbParams['absolute_date'] = CRM_Utils_Date::processDate($formParams['repeat_absolute_date']);
/**
* This function gets all the columns of civicrm_action_schedule table based on id(primary key)
- *
+ *
* @param int $scheduleReminderId primary key of civicrm_action_schedule table
- *
+ *
* @access public
* @static
- *
+ *
* @return object
*/
static public function getScheduleReminderDetailsById($scheduleReminderId) {
/**
* This function is a wrapper of getScheduleReminderDetailsById function
- *
+ *
* @param int $scheduleReminderId primary key of civicrm_action_schedule table
- *
+ *
* @return array
*/
function getScheduleParams($scheduleReminderId) {
/**
* This function takes criterias saved in civicrm_action_schedule table
* and creates recursion rule
- *
+ *
* @param array $scheduleReminderDetails array of repeat criterias saved in civicrm_action_schedule table
- *
+ *
* @return object When object
*/
function getRecursionFromSchedule($scheduleReminderDetails = array()) {
}
}
- //month
+ //month
if ($scheduleReminderDetails['repetition_frequency_unit'] == 'month') {
if ($scheduleReminderDetails['entity_status']) {
$startActionDate = explode(" ", $scheduleReminderDetails['entity_status']);
}
return $r;
}
-
+
/**
* This function gets time difference between the two datetime object
- *
+ *
* @param DateTime $startDate Start Date
* @param DateTime $endDate End Date
- *
+ *
* @access public
* @static
- *
+ *
* @return object DateTime object which contain time difference
*/
- static public function getInterval($startDate, $endDate) {
+ static public function getInterval($startDate, $endDate) {
if ($startDate && $endDate) {
$startDate = new DateTime($startDate);
$endDate = new DateTime($endDate);
/**
* This function deletes all the other entities that are related to it
- *
+ *
* @param int $entityId Entity id
* @param string $entityTable Name of the entity table
- *
+ *
* @access public
* @static
- *
+ *
* @return boolean|object Returns either boolean value or CRM_Core_DAO_RecurringEntity object
*/
static public function delEntityRelations($entityId, $entityTable) {
) {
$profileAddressFields[$prefixName] = $index;
}
-
- $potentiallyMissingRequiredFields = array_diff($requiredBillingFields, $requiredProfileFields);
+
+ $potentiallyMissingRequiredFields = array_diff($requiredBillingFields, $requiredProfileFields);
CRM_Core_Resources::singleton()->addSetting(array('billing' => array('billingProfileIsHideable' => empty($potentiallyMissingRequiredFields))));
}
'edit all contacts',
),
);
-
+
// Activity permissions
$permissions['activity'] = array(
'delete' => array(
* Current entity id
*/
protected static $_entityId = NULL;
-
+
static function buildQuickForm(&$form) {
//$attributes_schedule = CRM_Core_DAO::getAttribute('CRM_Core_DAO_ActionMapping');
self::$_entityId = CRM_Utils_Array::value('id', $_GET);
$form->assign('currentEntityId', self::$_entityId);
-
+
$form->_freqUnits = array('hour' => 'hour') + CRM_Core_OptionGroup::values('recur_frequency_units');
foreach ($form->_freqUnits as $val => $label) {
if ($label == "day") {
$form->addDate('exclude_date', ts('Exclude Date(s)'), FALSE);
$select = $form->add('select', 'exclude_date_list', ts(''), $form->_excludeDateInfo, FALSE, array('style' => 'width:150px;', 'size' => 4));
$select->setMultiple(TRUE);
- $form->addElement('button','add_to_exclude_list','>>','onClick="addToExcludeList(document.getElementById(\'exclude_date\').value);"');
- $form->addElement('button','remove_from_exclude_list', '<<', 'onClick="removeFromExcludeList(\'exclude_date_list\')"');
+ $form->addElement('button','add_to_exclude_list','>>','onClick="addToExcludeList(document.getElementById(\'exclude_date\').value);"');
+ $form->addElement('button','remove_from_exclude_list', '<<', 'onClick="removeFromExcludeList(\'exclude_date_list\')"');
$form->addElement('hidden', 'isChangeInRepeatConfiguration', '', array('id' => 'isChangeInRepeatConfiguration'));
$form->addElement('hidden', 'copyExcludeDates', '', array('id' => 'copyExcludeDates'));
$form->addButtons(array(
static function formRule($values) {
$errors = array();
$dayOfTheWeek = array(monday,tuesday,wednesday,thursday,friday,saturday,sunday);
-
+
//Repeats
if (!CRM_Utils_Array::value('repetition_frequency_unit', $values)) {
$errors['repetition_frequency_unit'] = ts('This is a required field');
else {
$errors['ends'] = ts('This is a required field');
}
-
+
//Repeats BY
if (CRM_Utils_Array::value('repeats_by', $values)) {
if ($values['repeats_by'] == 1) {
if (!empty($type)) {
$params['used_for'] = $type;
}
-
+
//Save post params to the schedule reminder table
$dbParams = CRM_Core_BAO_RecurringEntity::mapFormValuesToDB($params);
unset($params['id']);
}
$actionScheduleObj = CRM_Core_BAO_ActionSchedule::add($dbParams);
-
- //exclude dates
+
+ //exclude dates
$excludeDateList = array();
- if (CRM_Utils_Array::value('copyExcludeDates', $params) && CRM_Utils_Array::value('parent_event_id', $params)) {
+ if (CRM_Utils_Array::value('copyExcludeDates', $params) && CRM_Utils_Array::value('parent_event_id', $params)) {
//Since we get comma separated values lets get them in array
$exclude_date_list = array();
$exclude_date_list = explode(",", $params['copyExcludeDates']);
if ($optionGroupIdExists) {
CRM_Core_BAO_OptionGroup::del($optionGroupIdExists);
}
- $optionGroupParams =
+ $optionGroupParams =
array(
'name' => 'event_repeat_exclude_dates_'.$params['parent_event_id'],
'title' => 'Event Recursion',
$oldWeight= 0;
$fieldValues = array('option_group_id' => $opGroup->id);
foreach($exclude_date_list as $val) {
- $optionGroupValue =
+ $optionGroupValue =
array(
'option_group_id' => $opGroup->id,
'label' => CRM_Utils_Date::processDate($val),
array(
'table' => 'civicrm_price_set_entity',
'findCriteria' => array(
- 'entity_id' => $recursion->entity_id,
+ 'entity_id' => $recursion->entity_id,
'entity_table' => 'civicrm_event'
),
'linkedColumns' => array('entity_id'),
array(
'table' => 'civicrm_uf_join',
'findCriteria' => array(
- 'entity_id' => $recursion->entity_id,
+ 'entity_id' => $recursion->entity_id,
'entity_table' => 'civicrm_event'
),
'linkedColumns' => array('entity_id'),
array(
'table' => 'civicrm_tell_friend',
'findCriteria' => array(
- 'entity_id' => $recursion->entity_id,
+ 'entity_id' => $recursion->entity_id,
'entity_table' => 'civicrm_event'
),
'linkedColumns' => array('entity_id'),
array(
'table' => 'civicrm_pcp_block',
'findCriteria' => array(
- 'entity_id' => $recursion->entity_id,
+ 'entity_id' => $recursion->entity_id,
'entity_table' => 'civicrm_event'
),
'linkedColumns' => array('entity_id'),
),
);
- $recurResult = $recursion->generate();
+ $recurResult = $recursion->generate();
$status = ts('Repeat Configuration has been saved');
CRM_Core_Session::setStatus($status, ts('Saved'), 'success');
public function getTitle() {
return ts('Repeat Event');
}
-
+
}
',' => '_', '/' => '_',
)
),
- 'url' => CRM_Utils_System::url($path, $query,
+ 'url' => CRM_Utils_System::url($path, $query,
FALSE, // absolute
NULL, // fragment
TRUE, // htmlize
*/
class CRM_Core_Page_AJAX_RecurringEntity {
-
+
public static function updateMode() {
if (CRM_Utils_Array::value('mode', $_REQUEST) && CRM_Utils_Array::value('entityId', $_REQUEST) && CRM_Utils_Array::value('entityTable', $_REQUEST)) {
-
+
$finalResult = array();
$mode = CRM_Utils_Type::escape($_REQUEST['mode'], 'Integer');
$entityId = CRM_Utils_Type::escape($_REQUEST['entityId'], 'Integer');
$dao->entity_id = $entityId;
$dao->entity_table = $entityTable;
}
-
+
if ($dao->find(TRUE)) {
$dao->mode = $mode;
$dao->save();
echo json_encode($finalResult);
CRM_Utils_System::civiExit();
}
-
+
public static function generatePreview() {
$params = $formValues = $genericResult = array();
$formValues = $_REQUEST;
$recursion->intervalDateColumns = array('end_date' => $interval);
}
- $result = $recursion->generateRecursiveDates();
+ $result = $recursion->generateRecursiveDates();
foreach ($result as $key => $value) {
$result[$key]['start_date'] = date('M d, Y h:i:s A \o\n l', strtotime($value['start_date']));
<item>
<path>civicrm/admin/setting/misc</path>
<title>Misc (Undelete, PDFs, Limits, Logging, Captcha, etc.)</title>
- <desc>Enable undelete/move to trash feature, detailed change logging, ReCAPTCHA to protect forms.</desc>
+ <desc>Enable undelete/move to trash feature, detailed change logging, ReCAPTCHA to protect forms.</desc>
<page_callback>CRM_Admin_Form_Setting_Miscellaneous</page_callback>
<adminGroup>System Settings</adminGroup>
<icon>admin/small/36.png</icon>
<title>Get Image File</title>
<page_callback>CRM_Contact_Page_ImageFile</page_callback>
<access_arguments>*always allow*</access_arguments>
- </item>
+ </item>
<item>
<path>civicrm/contact/search/basic</path>
<title>Find Contacts</title>
$invoicing = CRM_Utils_Array::value('invoicing', $prefixValue);
if ($taxAmt && (isset($invoicing) && isset($prefixValue['is_email_pdf'])) ) {
$sendTemplateParams['isEmailPdf'] = True;
- $sendTemplateParams['contributionId'] = $values['contributionId'];
+ $sendTemplateParams['contributionId'] = $values['contributionId'];
}
CRM_Core_BAO_MessageTemplate::sendTemplate($sendTemplateParams);
}
}
return CRM_Core_PseudoConstant::get(__CLASS__, $fieldName, $params, $context);
}
-
-}
\ No newline at end of file
+
+}
}
}
}
-
+
/**
* @param $query
'civicrm_event', 'event_end_date', 'end_date', 'End Date'
);
return;
-
+
case 'event_id':
$query->_where[$grouping][] = "civicrm_event.id $op {$value}";
$eventTitle = CRM_Core_DAO::getFieldValue('CRM_Event_DAO_Event', $value, 'title');
$query->_qill[$grouping][] = ts('Event') . " $op {$eventTitle}";
$query->_tables['civicrm_event'] = $query->_whereTables['civicrm_event'] = 1;
return;
-
+
case 'event_include_repeating_events':
/**
* Include Repeating Events
$query->_qill[$grouping][] = ts('Include Repeating Events (If Any) ') . " = TRUE";
$query->_tables['civicrm_event'] = $query->_whereTables['civicrm_event'] = 1;
return;
-
+
case 'event_type_id':
$eventTypes = CRM_Core_OptionGroup::values("event_type");
$query->_qill[$grouping][] = ts('Event Type - %1', array(1 => $eventTypes[$value]));
$query->_tables['civicrm_event'] = $query->_whereTables['civicrm_event'] = 1;
return;
-
+
case 'participant_test':
// We dont want to include all tests for sql OR CRM-7827
if (!$value || $query->getOperator() != 'OR') {
}
CRM_Campaign_BAO_Campaign::addCampaignInComponentSearch($form, 'participant_campaign_id');
-
+
$form->assign('validCiviEvent', TRUE);
$form->setDefaults(array('participant_test' => 0));
}
$cart = CRM_Event_Cart_BAO_Cart::find_by_id($_GET['cart_id']);
- $params_array = array('cart_id' => $cart->id, 'contact_id' => CRM_Event_Cart_Form_Cart::find_or_create_contact(), 'event_id' => $event_id);
+ $params_array = array('cart_id' => $cart->id, 'contact_id' => CRM_Event_Cart_Form_Cart::find_or_create_contact(), 'event_id' => $event_id);
//XXX security?
$participant = CRM_Event_Cart_BAO_MerParticipant::create($params_array);
* the participant records
*/
protected $_campaignID = NULL;
-
+
/**
* Check if repeating event
*/
if (in_array('CiviEvent', $config->enableComponents)) {
$this->assign('CiviEvent', TRUE);
}
-
+
$this->_action = CRM_Utils_Request::retrieve('action', 'String', $this, FALSE, 'add', 'REQUEST');
$this->assign('action', $this->_action);
}
$this->_templateId = (int) CRM_Utils_Request::retrieve('template_id', 'Integer', $this);
-
+
//Is a repeating event
if ($this->_isRepeatingEvent) {
$isRepeat = 'repeat';
$params['is_billing_required'] = 0;
}
- //update 'is_billing_required'
+ //update 'is_billing_required'
if (empty($params['is_pay_later'])) {
$params['is_billing_required'] = False;
}
* @author Priyanka
*/
class CRM_Event_Form_ManageEvent_Repeat extends CRM_Event_Form_ManageEvent {
-
+
/**
* Schedule Reminder Id
*/
protected $_scheduleReminderId = NULL;
-
+
/**
* Schedule Reminder data
*/
protected $_scheduleReminderDetails = array();
-
+
/**
* Parent Event ID
*/
protected $_parentEventId = NULL;
-
+
/**
* Parent Event Start Date
*/
protected $_parentEventStartDate = NULL;
-
+
/**
* Parent Event End Date
*/
protected $_parentEventEndDate = NULL;
-
+
/**
- * Exclude date information
+ * Exclude date information
*/
public $_excludeDateInfo = array();
-
+
protected $_pager = NULL;
-
-
-
+
+
+
function preProcess() {
parent::preProcess();
$this->assign('currentEventId', $this->_id);
-
+
$checkParentExistsForThisId = CRM_Core_BAO_RecurringEntity::getParentFor($this->_id, 'civicrm_event');
$checkParentExistsForThisId;
//If this ID has parent, send parent id
if ($checkParentExistsForThisId) {
$this->_scheduleReminderDetails = self::getReminderDetailsByEventId($checkParentExistsForThisId, 'event');
$this->_parentEventId = $checkParentExistsForThisId;
-
+
/**
* Get connected event information list
*/
CRM_Core_DAO::storeValues($dao, $manageEvent[$dao->id]);
}
}
- }
+ }
$this->assign('rows', $manageEvent);
}
}
$parentEventAttributes = CRM_Core_DAO::commonRetrieve('CRM_Event_DAO_Event', $parentEventParams, $parentEventValues, $parentEventReturnProperties);
$this->_parentEventStartDate = $parentEventAttributes->start_date;
$this->_parentEventEndDate = $parentEventAttributes->end_date;
-
+
//Get option exclude date information
//$groupId = CRM_Core_DAO::getFieldValue('CRM_Core_DAO_OptionGroup', 'event_repeat_exclude_dates_'.$this->_parentEventId, 'id', 'name');
CRM_Core_OptionValue::getValues(array('name' => 'event_repeat_exclude_dates_'.$this->_parentEventId), $optionValue);
$excludeOptionValues[$val['value']] = date('m/d/Y', strtotime($val['value']));
}
$this->_excludeDateInfo = $excludeOptionValues;
- }
+ }
}
-
+
/**
* This function sets the default values for the form. For edit/view mode
* the default values are retrieved from the database
*/
function setDefaultValues() {
$defaults = array();
-
+
//Set Schedule Reminder Id
if (property_exists($this->_scheduleReminderDetails, 'id')) {
$this->_scheduleReminderId = $this->_scheduleReminderDetails->id;
//Always pass current event's start date by default
$currentEventStartDate = CRM_Core_DAO::getFieldValue('CRM_Event_DAO_Event', $this->_id, 'start_date', 'id');
list($defaults['repetition_start_date'], $defaults['repetition_start_date_time']) = CRM_Utils_Date::setDateDefaults($currentEventStartDate, 'activityDateTime');
-
+
// Check if there is id for this event in Reminder table
if ($this->_scheduleReminderId) {
$defaults['repetition_frequency_unit'] = $this->_scheduleReminderDetails->repetition_frequency_unit;
if ($this->_scheduleReminderDetails->entity_status) {
$defaults['repeats_by'] = 2;
}
- }
+ }
return $defaults;
}
-
+
public function buildQuickForm() {
CRM_Core_Form_RecurringEntity::buildQuickForm($this);
}
-
+
public function postProcess() {
if ($this->_id) {
- $params = $this->controller->exportValues($this->_name);
+ $params = $this->controller->exportValues($this->_name);
$params['event_id'] = $this->_id;
$params['parent_event_id'] = $this->_parentEventId;
$params['parent_event_start_date'] = $this->_parentEventStartDate;
$params['parent_event_end_date'] = $this->_parentEventEndDate;
//Unset event id
unset($params['id']);
-
+
//Set Schedule Reminder id
$params['id'] = $this->_scheduleReminderId;
$url = 'civicrm/event/manage/repeat';
$urlParams = "action=update&reset=1&id={$this->_id}";
-
+
CRM_Core_Form_RecurringEntity::postProcess($params, 'event');
CRM_Utils_System::redirect(CRM_Utils_System::url($url, $urlParams));
}
else {
CRM_Core_Error::fatal("Could not find Event ID");
- }
+ }
}
-
+
/**
* This function gets the number of participant count for the list of related event ids
- *
+ *
* @param array $listOfRelatedEntities list of related event ids
- *
+ *
* @access public
* @static
- *
+ *
* @return array
*/
static public function getParticipantCountforEvent($listOfRelatedEntities = array()) {
return $entity['id'];
}, $listOfRelatedEntities));
if ($implodeRelatedEntities) {
- $query = "SELECT p.event_id as event_id,
- concat_ws(' ', e.title, concat_ws(' - ', DATE_FORMAT(e.start_date, '%b %d %Y %h:%i %p'), DATE_FORMAT(e.end_date, '%b %d %Y %h:%i %p'))) as event_data,
+ $query = "SELECT p.event_id as event_id,
+ concat_ws(' ', e.title, concat_ws(' - ', DATE_FORMAT(e.start_date, '%b %d %Y %h:%i %p'), DATE_FORMAT(e.end_date, '%b %d %Y %h:%i %p'))) as event_data,
count(p.id) as participant_count
- FROM civicrm_participant p, civicrm_event e
+ FROM civicrm_participant p, civicrm_event e
WHERE p.event_id = e.id AND p.event_id IN ({$implodeRelatedEntities})
GROUP BY p.event_id";
$dao = CRM_Core_DAO::executeQuery($query);
}
return $participantDetails;
}
-
+
/**
* This function gets all columns from civicrm_action_schedule on the basis of event id
- *
+ *
* @param int $eventId Event ID
* @param string $used_for Specifies for which entity type it's used for
- *
+ *
* @access public
* @static
- *
+ *
* @return object
*/
static public function getReminderDetailsByEventId($eventId, $used_for) {
if ($eventId) {
$query = "
SELECT *
- FROM civicrm_action_schedule
+ FROM civicrm_action_schedule
WHERE entity_value = %1";
if ($used_for) {
$query .= " AND used_for = %2";
}
return $dao;
}
-
+
/**
* Update mode column in civicrm_recurring_entity table for event related tabs
- *
+ *
* @params int $entityId event id
* @params string $linkedEntityTable Linked entity table name for this event
* @return array
$result['entityId'] = $defaults['id'];
$result['entityTable'] = $entityTable;
}
- }
+ }
return $result;
- }
+ }
}
$this->_params['role_id']
);
}
-
+
//CRM-15372 patch to fix fee amount replacing amount
$this->_params['fee_amount'] = $this->_params['amount'];
//build contribution params
if (!$this->_onlinePendingContributionId) {
- if (empty($params['source'])) {
+ if (empty($params['source'])) {
$contributionParams['source'] = ts('%1 : Offline registration (by %2)', array(1 => $eventTitle, 2 => $userName));
- }
- else {
- $contributionParams['source'] = $params['source'];
- }
- }
+ }
+ else {
+ $contributionParams['source'] = $params['source'];
+ }
+ }
$contributionParams['currency'] = $config->defaultCurrency;
$contributionParams['non_deductible_amount'] = 'null';
$contributionParams['is_pay_later'] = 1;
}
elseif ($contributionParams['contribution_status_id'] == CRM_Core_OptionGroup::getValue('contribution_status', 'Completed', 'name')) {
- $contributionParams['is_pay_later'] = 0;
- }
+ $contributionParams['is_pay_later'] = 0;
+ }
if ($params['status_id'] == array_search('Partially paid', $participantStatus)) {
if (!$amountOwed && $this->_action & CRM_Core_Action::UPDATE) {
$invoiceSettings = CRM_Core_BAO_Setting::getItem(CRM_Core_BAO_Setting::CONTRIBUTE_PREFERENCES_NAME,'contribution_invoice_settings');
$invoicing = CRM_Utils_Array::value('invoicing', $invoiceSettings);
$totalTaxAmount = 0;
-
+
//add dataArray in the receipts in ADD and UPDATE condition
$dataArray = array();
if ($this->_action & CRM_Core_Action::ADD) {
$prefixValue = CRM_Core_BAO_Setting::getItem(CRM_Core_BAO_Setting::CONTRIBUTE_PREFERENCES_NAME, 'contribution_invoice_settings');
$invoicing = CRM_Utils_Array::value('invoicing', $prefixValue);
if (count($taxAmt) > 0 && (isset($invoicing) && isset($prefixValue['is_email_pdf']))) {
- $sendTemplateParams['isEmailPdf'] = True;
- $sendTemplateParams['contributionId'] = $contributionId;
+ $sendTemplateParams['isEmailPdf'] = True;
+ $sendTemplateParams['contributionId'] = $contributionId;
}
list($mailSent, $subject, $message, $html) = CRM_Core_BAO_MessageTemplate::sendTemplate($sendTemplateParams);
if ($mailSent) {
$this->assign('taxTerm', $taxTerm);
}
$this->assign('totalAmount', $this->_totalAmount);
-
+
$hookDiscount = $this->get('hookDiscount');
if ($hookDiscount) {
$this->assign('hookDiscount', $hookDiscount);
array_search('Cost of Sales Account is', $accountRelationship) => array_search('Cost of Sales', $financialAccountTypeID),
array_search('Income Account is', $accountRelationship) => array_search('Revenue', $financialAccountTypeID),
);
-
- $dao = CRM_Core_DAO::executeQuery('SELECT id, financial_account_type_id FROM civicrm_financial_account WHERE name LIKE %1',
+
+ $dao = CRM_Core_DAO::executeQuery('SELECT id, financial_account_type_id FROM civicrm_financial_account WHERE name LIKE %1',
array(1 => array($financialType->name, 'String'))
);
$dao->fetch();
'financial_account_id' => $self->_id,
'account_relationship'=> $relationshipId
);
- $result = CRM_Financial_BAO_FinancialTypeAccount::retrieve($params, $defaults);
+ $result = CRM_Financial_BAO_FinancialTypeAccount::retrieve($params, $defaults);
if ($result) {
$errorMsg['is_tax'] = ts('Is Tax? must be set for this financial account');
}
if ($this->_action == CRM_Core_Action::UPDATE && CRM_Core_DAO::getFieldValue('CRM_Financial_DAO_FinancialType', $this->_id, 'is_reserved','vid')) {
$this->freeze(array('is_active'));
}
-
+
$this->addRule('name', ts('A financial type with this name already exists. Please select another name.'),'objectExists',
array('CRM_Financial_DAO_FinancialType', $this->_id)
);
$dao->storeValues($dao, $defaults);
$defaults['visibility'] = $dao->visibility;
}
-
+
return $defaults;
}
));
$tmp_statuses = $result['values'];
$status_ids = array();
- foreach($tmp_statuses as $cur_stat) {
+ foreach($tmp_statuses as $cur_stat) {
$status_ids[] = $cur_stat['id'];
}
if (empty($params['status_id']) || in_array( $params['status_id'] , $status_ids) == false) {
$params['contribution_source'] = ts('%1 Membership: Offline signup (by %2)', array(1 => $membershipType, 2 => $userName));
}
else {
- $params['contribution_source'] = $formValues['source'];
+ $params['contribution_source'] = $formValues['source'];
}
- }
+ }
if (empty($params['is_override']) &&
CRM_Utils_Array::value('contribution_status_id', $params) == array_search('Pending', CRM_Contribute_PseudoConstant::contributionStatus(NULL, 'name'))
} else {
$dataArray[$value['tax_rate']] = CRM_Utils_Array::value('tax_amount', $value);
}
- }
+ }
}
if ($taxAmount) {
$this->assign('totalTaxAmount', $totalTaxAmount);
'membership' => $formatValues['membership_id'],
'userId' => $session->get('userID'),
);
-
+
if (empty($params['line_item']) && !empty($formatted['membership_type_id'])) {
CRM_Price_BAO_LineItem::getLineItemArray($formatted, NULL, 'membership', $formatted['membership_type_id']);
}
-
+
$newMembership = CRM_Member_BAO_Membership::create($formatted, $ids, TRUE);
if (civicrm_error($newMembership)) {
array_unshift($values, $newMembership['is_error'] . ' for Membership ID ' . $formatValues['membership_id'] . '. Row was skipped.');
*
* @param array $params reference array contains the values submitted by the form
* @param bool $pcpBlock if true, create or update PCPBlock, else PCP
+ *
* @access public
* @static
*
* Add PCP form elements to a form
*/
/**
- * @param $pcpId
- * @param $page
+ * @param integer $pcpId
+ * @param CRM_Core_Page $page
* @param null $elements
*/
function buildPcp($pcpId, &$page, &$elements = NULL) {
*/
class CRM_Price_BAO_PriceSet extends CRM_Price_DAO_PriceSet {
-
/**
* static field for default price set details
*
<path>civicrm/report/chart</path>
<page_callback>CRM_Report_Form::uploadChartImage</page_callback>
<access_arguments>access CiviReport</access_arguments>
- </item>
+ </item>
</menu>
{/if}
{/foreach}
{/if}
-
- {if $event.is_public}
+
+ {if $event.is_public}
<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}
</td>
</tr>
{/if}
-
+
{if $email}
<tr>
<th {$headerStyle}>
{ts}Email{/ts}: {$eventEmail.email}{/if}{/foreach}
{/if}
-{if $event.is_public}
+{if $event.is_public}
{capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture}
{ts}Download iCalendar File:{/ts} {$icalFeed}
{/if}
{/if}
{/foreach}
{/if}
-
- {if $event.is_public}
+
+ {if $event.is_public}
<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}
</td>
</tr>
{/if}
-
+
{if $event.is_share}
<tr>
<td colspan="2" {$valueStyle}>
{ts}Email{/ts}: {$eventEmail.email}{/if}{/foreach}
{/if}
-{if $event.is_public}
+{if $event.is_public}
{capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture}
{ts}Download iCalendar File:{/ts} {$icalFeed}
{/if}
{/foreach}
{/if}
- {if $event.is_public}
+ {if $event.is_public}
<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}
{ts}Email{/ts}: {$eventEmail.email}{/if}{/foreach}
{/if}
-{if $event.is_public}
+{if $event.is_public}
{capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture}
{ts}Download iCalendar File:{/ts} {$icalFeed}
{/if}
<style type="text/css">
{literal}
- /* Client-specific Styles */
+ /* Client-specific Styles */
#outlook a {padding:0;} /* Force Outlook to provide a "view in browser" menu link. */
body{width:100% !important; -webkit-text-size-adjust:100%; -ms-text-size-adjust:100%; margin:0; padding:0;}
-
+
/* Prevent Webkit and Windows Mobile platforms from changing default font sizes, while not breaking desktop design. */
.ExternalClass {width:100%;} /* Force Hotmail to display emails at full width */
.ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div {line-height: 100%;} /* Force Hotmail to display normal line spacing. */
table[class="removeMobile"]{width:10px!important;}
img[class="blog"] {width: 440px!important;height: auto!important;}
}
-
+
/*IPHONE STYLES*/
@media only screen and (max-width: 480px) {
a[href^="tel"], a[href^="sms"] {text-decoration: none;color: #136388;pointer-events: none;cursor: default;}
.mobile_link a[href^="tel"], .mobile_link a[href^="sms"] {text-decoration: none;color:#136388;pointer-events: auto;cursor: default;}
-
+
table[class=devicewidth] {width: 280px!important;text-align:center!important;}
table[class=devicewidthmob] {width: 260px!important;text-align:center!important;}
table[class=devicewidthinner] {width: 260px!important;text-align:center!important;}
td[class="padding-top-right15"]{padding:15px 15px 0 0 !important;}
td[class="padding-right15"]{padding-right:15px !important;}
}
-
+
@media only screen and (max-device-width: 800px)
{td[class="padding-top-right15"]{padding:15px 15px 0 0 !important;}
td[class="padding-right15"]{padding-right:15px !important;}}
@media only screen and (max-device-width: 769px) {
.devicewidthmob {font-size:16px;}
}
-
+
@media only screen and (max-width: 640px) {
.desktop-spacer {display:none !important;}
}
@media only screen and (max-device-width: 800px)
{td[class="padding-top-right15"]{padding:15px 15px 0 0 !important;}
- td[class="padding-right15"]{padding-right:15px !important;}}
+ td[class="padding-right15"]{padding-right:15px !important;}}
@media only screen and (max-device-width: 769px) {.devicewidthmob {font-size:14px;}}
- @media only screen and (max-width: 640px) {.desktop-spacer {display:none !important;}
- }
+ @media only screen and (max-width: 640px) {.desktop-spacer {display:none !important;}
+ }
{/literal}
</style>
<body>
<!-- Start of preheader --><!-- Start of preheader -->
<table bgcolor="#0B4151" border="0" cellpadding="0" cellspacing="0" id="backgroundTable" width="100%">
- <tbody>
- <tr>
- <td>
- <table align="center" border="0" cellpadding="0" cellspacing="0" class="devicewidth" width="700">
- <tbody>
- <tr>
- <td width="100%">
- <table align="center" border="0" cellpadding="0" cellspacing="0" class="devicewidth" width="700">
- <tbody><!-- Spacing -->
- <tr>
- <td height="20" width="100%"> </td>
- </tr>
- <!-- Spacing -->
- <tr>
- <td>
- <table align="left" border="0" cellpadding="0" cellspacing="0" class="devicewidthinner" width="360">
- <tbody>
- <tr>
- <td align="left" style="font-family: Helvetica, arial, sans-serif; font-size: 14px; line-height:120%; color: #f8f8f8;padding-left:15px;" valign="middle">Organization or Program Name Here</td>
- </tr>
- </tbody>
- </table>
-
- <table align="right" border="0" cellpadding="0" cellspacing="0" class="emhide" width="320">
- <tbody>
- <tr>
- <td align="right" style="font-family: Helvetica, arial, sans-serif; font-size: 16px;color: #f8f8f8;padding-right:15px;" valign="middle">Month Year</td>
- </tr>
- </tbody>
- </table>
- </td>
- </tr>
- <!-- Spacing -->
- <tr>
- <td height="20" width="100%"> </td>
- </tr>
- <!-- Spacing -->
- </tbody>
- </table>
- </td>
- </tr>
- </tbody>
- </table>
- </td>
- </tr>
- </tbody>
+ <tbody>
+ <tr>
+ <td>
+ <table align="center" border="0" cellpadding="0" cellspacing="0" class="devicewidth" width="700">
+ <tbody>
+ <tr>
+ <td width="100%">
+ <table align="center" border="0" cellpadding="0" cellspacing="0" class="devicewidth" width="700">
+ <tbody><!-- Spacing -->
+ <tr>
+ <td height="20" width="100%"> </td>
+ </tr>
+ <!-- Spacing -->
+ <tr>
+ <td>
+ <table align="left" border="0" cellpadding="0" cellspacing="0" class="devicewidthinner" width="360">
+ <tbody>
+ <tr>
+ <td align="left" style="font-family: Helvetica, arial, sans-serif; font-size: 14px; line-height:120%; color: #f8f8f8;padding-left:15px;" valign="middle">Organization or Program Name Here</td>
+ </tr>
+ </tbody>
+ </table>
+
+ <table align="right" border="0" cellpadding="0" cellspacing="0" class="emhide" width="320">
+ <tbody>
+ <tr>
+ <td align="right" style="font-family: Helvetica, arial, sans-serif; font-size: 16px;color: #f8f8f8;padding-right:15px;" valign="middle">Month Year</td>
+ </tr>
+ </tbody>
+ </table>
+ </td>
+ </tr>
+ <!-- Spacing -->
+ <tr>
+ <td height="20" width="100%"> </td>
+ </tr>
+ <!-- Spacing -->
+ </tbody>
+ </table>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </td>
+ </tr>
+ </tbody>
</table>
<!-- End of preheader --><!-- start of logo -->
<table bgcolor="#d8d8d8" border="0" cellpadding="0" cellspacing="0" id="backgroundTable" st-sortable="left-image" width="100%">
- <tbody>
- <tr>
- <td>
- <table align="center" border="0" cellpadding="0" cellspacing="0" class="devicewidthmob" width="700">
- <tbody>
- <tr>
- <td width="100%">
- <table align="center" bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" class="devicewidth" width="700">
- <tbody><!-- Spacing -->
- <tr>
- <td height="20" width="100%">
- <table align="center" border="0" cellpadding="2" cellspacing="0" width="93%">
- <tbody>
- <tr>
+ <tbody>
+ <tr>
+ <td>
+ <table align="center" border="0" cellpadding="0" cellspacing="0" class="devicewidthmob" width="700">
+ <tbody>
+ <tr>
+ <td width="100%">
+ <table align="center" bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" class="devicewidth" width="700">
+ <tbody><!-- Spacing -->
+ <tr>
+ <td height="20" width="100%">
+ <table align="center" border="0" cellpadding="2" cellspacing="0" width="93%">
+ <tbody>
+ <tr>
<td rowspan="2" width="330"><a href="#"> <div class="imgpop"><img src="https://civicrm.org/sites/default/files/civicrm/custom/images/civicrm-logo-transparent.png" alt="Replace with your own logo" width="220" border="0" style="display:block;"/></div></a></td>
<td align="right" >
- <h6 class="collapse"> </h6>
- </td>
- </tr>
- <tr>
- <td align="right">
-
- </td>
- </tr>
- </tbody>
- </table>
- </td>
- </tr>
-
- </tbody>
- </table>
- </td>
- </tr>
- </tbody>
- </table>
- </td>
- </tr>
- </tbody>
+ <h6 class="collapse"> </h6>
+ </td>
+ </tr>
+ <tr>
+ <td align="right">
+
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </td>
+ </tr>
+
+ </tbody>
+ </table>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </td>
+ </tr>
+ </tbody>
</table>
<!-- end of logo --> <!-- hero story 1 -->
<table bgcolor="#d8d8d8" border="0" cellpadding="0" cellspacing="0" id="backgroundTable" st-sortable="left-image" width="101%">
- <tbody>
- <tr>
- <td>
- <table align="center" border="0" cellpadding="0" cellspacing="0" class="devicewidth" width="700">
- <tbody>
- <tr>
- <td width="100%">
- <table align="center" bgcolor="#f8f8f8" border="0" cellpadding="0" cellspacing="0" class="devicewidth" width="700">
- <tbody>
- <tr>
- <td>
- <table align="center" border="0" cellpadding="0" cellspacing="0" class="devicewidth" width="700">
- <tbody>
- <tr>
- <td width="100%">
- <table align="center" bgcolor="#f8f8f8" border="0" cellpadding="0" cellspacing="0" class="devicewidth" width="700">
- <tbody><!-- /Spacing -->
- <tr>
- <td style="font-family: Helvetica, arial, sans-serif; font-size: 24px; color:#f8f8f8; text-align:left; line-height: 26px; padding:5px 15px; background-color: #80C457">Hero Story Heading</td>
- </tr>
- <!-- Spacing -->
- <tr>
- <td>
- <table align="center" border="0" cellpadding="0" cellspacing="0" class="devicewidthinner" width="700">
- <tbody><!-- image -->
- <tr>
- <td align="center" class="devicewidthinner" width="100%">
- <div class="imgpop"><a href="#" target="_blank"><img alt="" border="0" class="blog" height="396" src="https://civicrm.org/sites/default/files/civicrm/custom/images/700x396.png" style="display:block; border:none; outline:none; text-decoration:none; padding:0; line-height:0;" width="700" /></a></div>
- </td>
- </tr>
- <!-- /image --><!-- Spacing -->
- <tr>
- <td height="15" style="font-size:1px; line-height:1px; mso-line-height-rule: exactly;" width="100%"> </td>
- </tr>
- <!-- /Spacing --><!-- hero story -->
- <tr>
- <td style="font-family: Helvetica, arial, sans-serif; font-size: 18px; text-align:left; line-height: 26px; padding:0 15px;"><a href="#" style="color:#076187; text-decoration:none; " target="_blank">Subheading Here</a></td>
- </tr>
- <!-- Spacing -->
- <tr>
- <td height="15" style="font-size:1px; line-height:1px; mso-line-height-rule: exactly;" width="100%"> </td>
- </tr><!-- /Spacing -->
- <tr>
- <td style="font-family: Helvetica, arial, sans-serif; font-size: 14px; color: #7a6e67; text-align:left; line-height: 26px; padding:0 15px;"><span class="padding-right15" style="font-family: Helvetica, arial, sans-serif; font-size: 14px; color: #7a6e67; text-align:left; line-height: 24px;">Replace with your text and images, and remember to link the facebook and twitter links in the footer to your pages. Have fun!</span></td>
- </tr>
+ <tbody>
+ <tr>
+ <td>
+ <table align="center" border="0" cellpadding="0" cellspacing="0" class="devicewidth" width="700">
+ <tbody>
+ <tr>
+ <td width="100%">
+ <table align="center" bgcolor="#f8f8f8" border="0" cellpadding="0" cellspacing="0" class="devicewidth" width="700">
+ <tbody>
+ <tr>
+ <td>
+ <table align="center" border="0" cellpadding="0" cellspacing="0" class="devicewidth" width="700">
+ <tbody>
+ <tr>
+ <td width="100%">
+ <table align="center" bgcolor="#f8f8f8" border="0" cellpadding="0" cellspacing="0" class="devicewidth" width="700">
+ <tbody><!-- /Spacing -->
+ <tr>
+ <td style="font-family: Helvetica, arial, sans-serif; font-size: 24px; color:#f8f8f8; text-align:left; line-height: 26px; padding:5px 15px; background-color: #80C457">Hero Story Heading</td>
+ </tr>
+ <!-- Spacing -->
+ <tr>
+ <td>
+ <table align="center" border="0" cellpadding="0" cellspacing="0" class="devicewidthinner" width="700">
+ <tbody><!-- image -->
+ <tr>
+ <td align="center" class="devicewidthinner" width="100%">
+ <div class="imgpop"><a href="#" target="_blank"><img alt="" border="0" class="blog" height="396" src="https://civicrm.org/sites/default/files/civicrm/custom/images/700x396.png" style="display:block; border:none; outline:none; text-decoration:none; padding:0; line-height:0;" width="700" /></a></div>
+ </td>
+ </tr>
+ <!-- /image --><!-- Spacing -->
+ <tr>
+ <td height="15" style="font-size:1px; line-height:1px; mso-line-height-rule: exactly;" width="100%"> </td>
+ </tr>
+ <!-- /Spacing --><!-- hero story -->
+ <tr>
+ <td style="font-family: Helvetica, arial, sans-serif; font-size: 18px; text-align:left; line-height: 26px; padding:0 15px;"><a href="#" style="color:#076187; text-decoration:none; " target="_blank">Subheading Here</a></td>
+ </tr>
+ <!-- Spacing -->
+ <tr>
+ <td height="15" style="font-size:1px; line-height:1px; mso-line-height-rule: exactly;" width="100%"> </td>
+ </tr><!-- /Spacing -->
+ <tr>
+ <td style="font-family: Helvetica, arial, sans-serif; font-size: 14px; color: #7a6e67; text-align:left; line-height: 26px; padding:0 15px;"><span class="padding-right15" style="font-family: Helvetica, arial, sans-serif; font-size: 14px; color: #7a6e67; text-align:left; line-height: 24px;">Replace with your text and images, and remember to link the facebook and twitter links in the footer to your pages. Have fun!</span></td>
+ </tr>
<!-- Spacing -->
- <tr>
- <td height="15" style="font-size:1px; line-height:1px; mso-line-height-rule: exactly;" width="100%"> </td>
- </tr><!-- /Spacing -->
+ <tr>
+ <td height="15" style="font-size:1px; line-height:1px; mso-line-height-rule: exactly;" width="100%"> </td>
+ </tr><!-- /Spacing -->
<!-- /Spacing --><!-- /hero story -->
- <!-- Spacing --> <!-- Spacing -->
-
-
-
- <!-- Spacing --><!-- end of content -->
- </tbody>
- </table>
- </td>
- </tr>
- </tbody>
- </table>
- </td>
- </tr>
- </tbody>
- </table>
- </td>
- </tr>
- <!-- Section Heading -->
- <tr>
- <td style="font-family: Helvetica, arial, sans-serif; font-size: 24px; color:#f8f8f8; text-align:left; line-height: 26px; padding:5px 15px; background-color: #80C457">Section Heading Here</td>
- </tr>
- <!-- /Section Heading -->
- </tbody>
- </table>
- </td>
- </tr>
- </tbody>
- </table>
- </td>
- </tr>
- </tbody>
+ <!-- Spacing --> <!-- Spacing -->
+
+
+
+ <!-- Spacing --><!-- end of content -->
+ </tbody>
+ </table>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </td>
+ </tr>
+ <!-- Section Heading -->
+ <tr>
+ <td style="font-family: Helvetica, arial, sans-serif; font-size: 24px; color:#f8f8f8; text-align:left; line-height: 26px; padding:5px 15px; background-color: #80C457">Section Heading Here</td>
+ </tr>
+ <!-- /Section Heading -->
+ </tbody>
+ </table>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </td>
+ </tr>
+ </tbody>
</table>
<!-- /hero story 1 --><!-- story one -->
<table bgcolor="#d8d8d8" border="0" cellpadding="0" cellspacing="0" id="backgroundTable" st-sortable="left-image" width="100%">
- <tbody>
- <tr>
- <td>
- <table align="center" border="0" cellpadding="0" cellspacing="0" class="devicewidth" width="700">
- <tbody>
- <tr>
- <td width="100%">
- <table align="center" bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" class="devicewidth" width="700">
- <tbody><!-- Spacing -->
- <tr>
- <td class="desktop-spacer" height="20" style="font-size:1px; line-height:1px; mso-line-height-rule: exactly;"> </td>
- </tr>
- <!-- Spacing -->
- <tr>
- <td>
- <table align="center" border="0" cellpadding="0" cellspacing="0" class="devicewidth" width="660">
- <tbody>
- <tr>
- <td><!-- Start of left column -->
- <table align="left" border="0" cellpadding="0" cellspacing="0" class="devicewidth" width="330">
- <tbody><!-- image -->
- <tr>
- <td align="center" class="devicewidth" height="150" valign="top" width="330"><a href="#"><img alt="" border="0" class="col2img" src="https://civicrm.org/sites/default/files/civicrm/custom/images/330x150.png" style="display:block; border:none; outline:none; text-decoration:none; display:block;" width="330" /></a></td>
- </tr>
- <!-- /image -->
- </tbody>
- </table>
- <!-- end of left column --><!-- spacing for mobile devices-->
-
- <table align="left" border="0" cellpadding="0" cellspacing="0" class="mobilespacing">
- <tbody>
- <tr>
- <td height="15" style="font-size:1px; line-height:1px; mso-line-height-rule: exactly;" width="100%"> </td>
- </tr>
- </tbody>
- </table>
- <!-- end of for mobile devices--><!-- start of right column -->
-
- <table align="right" border="0" cellpadding="0" cellspacing="0" class="devicewidthmob" width="310">
- <tbody>
- <tr>
- <td class="padding-top-right15" style="font-family: Helvetica, arial, sans-serif; font-size: 18px; text-align:left; line-height: 24px;"><a href="#" style="color:#076187; text-decoration:none; " target="_blank">Heading Here</a><a href="#" style="color:#076187; text-decoration:none;" target="_blank" title="CiviCRM helps keep the “City Beautiful” Movement”going strong"></a></td>
- </tr>
- <!-- end of title --><!-- Spacing -->
- <tr>
- <td height="15" style="font-size:1px; line-height:1px; mso-line-height-rule: exactly;" width="100%"> </td>
- </tr>
- <!-- /Spacing --><!-- content -->
- <tr>
- <td class="padding-right15" style="font-family: Helvetica, arial, sans-serif; font-size: 14px; color: #7a6e67; text-align:left; line-height: 24px;"><span class="padding-right15" style="font-family: Helvetica, arial, sans-serif; font-size: 14px; color: #7a6e67; text-align:left; line-height: 24px;">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
+ <tbody>
+ <tr>
+ <td>
+ <table align="center" border="0" cellpadding="0" cellspacing="0" class="devicewidth" width="700">
+ <tbody>
+ <tr>
+ <td width="100%">
+ <table align="center" bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" class="devicewidth" width="700">
+ <tbody><!-- Spacing -->
+ <tr>
+ <td class="desktop-spacer" height="20" style="font-size:1px; line-height:1px; mso-line-height-rule: exactly;"> </td>
+ </tr>
+ <!-- Spacing -->
+ <tr>
+ <td>
+ <table align="center" border="0" cellpadding="0" cellspacing="0" class="devicewidth" width="660">
+ <tbody>
+ <tr>
+ <td><!-- Start of left column -->
+ <table align="left" border="0" cellpadding="0" cellspacing="0" class="devicewidth" width="330">
+ <tbody><!-- image -->
+ <tr>
+ <td align="center" class="devicewidth" height="150" valign="top" width="330"><a href="#"><img alt="" border="0" class="col2img" src="https://civicrm.org/sites/default/files/civicrm/custom/images/330x150.png" style="display:block; border:none; outline:none; text-decoration:none; display:block;" width="330" /></a></td>
+ </tr>
+ <!-- /image -->
+ </tbody>
+ </table>
+ <!-- end of left column --><!-- spacing for mobile devices-->
+
+ <table align="left" border="0" cellpadding="0" cellspacing="0" class="mobilespacing">
+ <tbody>
+ <tr>
+ <td height="15" style="font-size:1px; line-height:1px; mso-line-height-rule: exactly;" width="100%"> </td>
+ </tr>
+ </tbody>
+ </table>
+ <!-- end of for mobile devices--><!-- start of right column -->
+
+ <table align="right" border="0" cellpadding="0" cellspacing="0" class="devicewidthmob" width="310">
+ <tbody>
+ <tr>
+ <td class="padding-top-right15" style="font-family: Helvetica, arial, sans-serif; font-size: 18px; text-align:left; line-height: 24px;"><a href="#" style="color:#076187; text-decoration:none; " target="_blank">Heading Here</a><a href="#" style="color:#076187; text-decoration:none;" target="_blank" title="CiviCRM helps keep the “City Beautiful” Movement”going strong"></a></td>
+ </tr>
+ <!-- end of title --><!-- Spacing -->
+ <tr>
+ <td height="15" style="font-size:1px; line-height:1px; mso-line-height-rule: exactly;" width="100%"> </td>
+ </tr>
+ <!-- /Spacing --><!-- content -->
+ <tr>
+ <td class="padding-right15" style="font-family: Helvetica, arial, sans-serif; font-size: 14px; color: #7a6e67; text-align:left; line-height: 24px;"><span class="padding-right15" style="font-family: Helvetica, arial, sans-serif; font-size: 14px; color: #7a6e67; text-align:left; line-height: 24px;">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna </span></td>
- </tr>
- <tr>
- <td class="padding-right15" style="font-family: Helvetica, arial, sans-serif; font-size: 14px; font-weight:bold; color: #333333; text-align:left;line-height: 24px; padding-top:10px;"><a href="#" style="color:#80C457;text-decoration:none;font-weight:bold;" target="_blank" title="CiviCRM helps keep the “City Beautiful” Movement”going strong">Read More</a></td>
- </tr>
- <!-- /button --><!-- end of content -->
- </tbody>
- </table>
- <!-- end of right column --></td>
- </tr>
- </tbody>
- </table>
- </td>
- </tr>
- <!-- Spacing -->
- <tr>
- <td height="20" style="font-size:1px; line-height:1px; mso-line-height-rule: exactly;"> </td>
- </tr>
- </tbody>
- </table>
- </td>
- </tr>
- </tbody>
- </table>
- </td>
- </tr>
- </tbody>
+ </tr>
+ <tr>
+ <td class="padding-right15" style="font-family: Helvetica, arial, sans-serif; font-size: 14px; font-weight:bold; color: #333333; text-align:left;line-height: 24px; padding-top:10px;"><a href="#" style="color:#80C457;text-decoration:none;font-weight:bold;" target="_blank" title="CiviCRM helps keep the “City Beautiful” Movement”going strong">Read More</a></td>
+ </tr>
+ <!-- /button --><!-- end of content -->
+ </tbody>
+ </table>
+ <!-- end of right column --></td>
+ </tr>
+ </tbody>
+ </table>
+ </td>
+ </tr>
+ <!-- Spacing -->
+ <tr>
+ <td height="20" style="font-size:1px; line-height:1px; mso-line-height-rule: exactly;"> </td>
+ </tr>
+ </tbody>
+ </table>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </td>
+ </tr>
+ </tbody>
</table>
<!-- /story one -->
<!-- story two -->
<table bgcolor="#d8d8d8" border="0" cellpadding="0" cellspacing="0" id="backgroundTable" st-sortable="left-image" width="100%">
- <tbody>
- <tr>
- <td>
- <table align="center" border="0" cellpadding="0" cellspacing="0" class="devicewidth" width="700">
- <tbody>
- <tr>
- <td width="100%">
- <table align="center" bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" class="devicewidth" width="700">
- <tbody><!-- Spacing -->
- <tr>
- <td bgcolor="#076187" height="0" style="font-size:1px; line-height:1px; mso-line-height-rule: exactly;"> </td>
- </tr>
- <!-- Spacing --><!-- Spacing -->
- <tr>
- <td class="desktop-spacer" height="20" style="font-size:1px; line-height:1px; mso-line-height-rule: exactly;"> </td>
- </tr>
- <!-- Spacing -->
- <tr>
- <td>
- <table align="center" border="0" cellpadding="0" cellspacing="0" class="devicewidth" width="660">
- <tbody>
- <tr>
- <td><!-- Start of left column -->
- <table align="left" border="0" cellpadding="0" cellspacing="0" class="devicewidth" width="330">
- <tbody><!-- image -->
- <tr>
- <td align="center" class="devicewidth" height="150" valign="top" width="330"><a href="#"><img alt="" border="0" class="col2img" src="https://civicrm.org/sites/default/files/civicrm/custom/images/330x150.png" style="display:block; border:none; outline:none; text-decoration:none; display:block;" width="330" /></a></td>
- </tr>
- <!-- /image -->
- </tbody>
- </table>
- <!-- end of left column --><!-- spacing for mobile devices-->
-
- <table align="left" border="0" cellpadding="0" cellspacing="0" class="mobilespacing">
- <tbody>
- <tr>
- <td height="15" style="font-size:1px; line-height:1px; mso-line-height-rule: exactly;" width="100%"> </td>
- </tr>
- </tbody>
- </table>
- <!-- end of for mobile devices--><!-- start of right column -->
-
- <table align="right" border="0" cellpadding="0" cellspacing="0" class="devicewidthmob" width="310">
- <tbody>
- <tr>
- <td class="padding-top-right15" style="font-family: Helvetica, arial, sans-serif; font-size: 18px; text-align:left; line-height: 24px;"><a href="#" style="color:#076187; text-decoration:none; " target="_blank">Heading Here</a><a href="#" style="color:#076187; text-decoration:none;" target="_blank" title="How CiviCRM will take Tribodar Eco Learning Center to another level"></a></td>
- </tr>
- <!-- end of title --><!-- Spacing -->
- <tr>
- <td height="15" style="font-size:1px; line-height:1px; mso-line-height-rule: exactly;" width="100%"> </td>
- </tr>
- <!-- /Spacing --><!-- content -->
- <tr>
- <td class="padding-right15" style="font-family: Helvetica, arial, sans-serif; font-size: 14px; color: #7a6e67; text-align:left; line-height: 24px;"><span class="padding-right15" style="font-family: Helvetica, arial, sans-serif; font-size: 14px; color: #7a6e67; text-align:left; line-height: 24px;">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
+ <tbody>
+ <tr>
+ <td>
+ <table align="center" border="0" cellpadding="0" cellspacing="0" class="devicewidth" width="700">
+ <tbody>
+ <tr>
+ <td width="100%">
+ <table align="center" bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" class="devicewidth" width="700">
+ <tbody><!-- Spacing -->
+ <tr>
+ <td bgcolor="#076187" height="0" style="font-size:1px; line-height:1px; mso-line-height-rule: exactly;"> </td>
+ </tr>
+ <!-- Spacing --><!-- Spacing -->
+ <tr>
+ <td class="desktop-spacer" height="20" style="font-size:1px; line-height:1px; mso-line-height-rule: exactly;"> </td>
+ </tr>
+ <!-- Spacing -->
+ <tr>
+ <td>
+ <table align="center" border="0" cellpadding="0" cellspacing="0" class="devicewidth" width="660">
+ <tbody>
+ <tr>
+ <td><!-- Start of left column -->
+ <table align="left" border="0" cellpadding="0" cellspacing="0" class="devicewidth" width="330">
+ <tbody><!-- image -->
+ <tr>
+ <td align="center" class="devicewidth" height="150" valign="top" width="330"><a href="#"><img alt="" border="0" class="col2img" src="https://civicrm.org/sites/default/files/civicrm/custom/images/330x150.png" style="display:block; border:none; outline:none; text-decoration:none; display:block;" width="330" /></a></td>
+ </tr>
+ <!-- /image -->
+ </tbody>
+ </table>
+ <!-- end of left column --><!-- spacing for mobile devices-->
+
+ <table align="left" border="0" cellpadding="0" cellspacing="0" class="mobilespacing">
+ <tbody>
+ <tr>
+ <td height="15" style="font-size:1px; line-height:1px; mso-line-height-rule: exactly;" width="100%"> </td>
+ </tr>
+ </tbody>
+ </table>
+ <!-- end of for mobile devices--><!-- start of right column -->
+
+ <table align="right" border="0" cellpadding="0" cellspacing="0" class="devicewidthmob" width="310">
+ <tbody>
+ <tr>
+ <td class="padding-top-right15" style="font-family: Helvetica, arial, sans-serif; font-size: 18px; text-align:left; line-height: 24px;"><a href="#" style="color:#076187; text-decoration:none; " target="_blank">Heading Here</a><a href="#" style="color:#076187; text-decoration:none;" target="_blank" title="How CiviCRM will take Tribodar Eco Learning Center to another level"></a></td>
+ </tr>
+ <!-- end of title --><!-- Spacing -->
+ <tr>
+ <td height="15" style="font-size:1px; line-height:1px; mso-line-height-rule: exactly;" width="100%"> </td>
+ </tr>
+ <!-- /Spacing --><!-- content -->
+ <tr>
+ <td class="padding-right15" style="font-family: Helvetica, arial, sans-serif; font-size: 14px; color: #7a6e67; text-align:left; line-height: 24px;"><span class="padding-right15" style="font-family: Helvetica, arial, sans-serif; font-size: 14px; color: #7a6e67; text-align:left; line-height: 24px;">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna </span></td>
- </tr>
- <tr>
- <td class="padding-right15" style="font-family: Helvetica, arial, sans-serif; font-size: 14px; font-weight:bold; color: #333333; text-align:left;line-height: 24px; padding-top:10px;"><a href="#" style="color:#80C457;text-decoration:none;font-weight:bold;" target="_blank" title="How CiviCRM will take Tribodar Eco Learning Center to another level">Read More</a></td>
- </tr>
- <!-- /button --><!-- end of content -->
- </tbody>
- </table>
- <!-- end of right column --></td>
- </tr>
- </tbody>
- </table>
- </td>
- </tr>
- <!-- Spacing -->
- <tr>
- <td height="20" style="font-size:1px; line-height:1px; mso-line-height-rule: exactly;"> </td>
- </tr>
- </tbody>
- </table>
- </td>
- </tr>
- </tbody>
- </table>
- </td>
- </tr>
- </tbody>
+ </tr>
+ <tr>
+ <td class="padding-right15" style="font-family: Helvetica, arial, sans-serif; font-size: 14px; font-weight:bold; color: #333333; text-align:left;line-height: 24px; padding-top:10px;"><a href="#" style="color:#80C457;text-decoration:none;font-weight:bold;" target="_blank" title="How CiviCRM will take Tribodar Eco Learning Center to another level">Read More</a></td>
+ </tr>
+ <!-- /button --><!-- end of content -->
+ </tbody>
+ </table>
+ <!-- end of right column --></td>
+ </tr>
+ </tbody>
+ </table>
+ </td>
+ </tr>
+ <!-- Spacing -->
+ <tr>
+ <td height="20" style="font-size:1px; line-height:1px; mso-line-height-rule: exactly;"> </td>
+ </tr>
+ </tbody>
+ </table>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </td>
+ </tr>
+ </tbody>
</table>
<!-- /story two --><!-- story three -->
<table bgcolor="#d8d8d8" border="0" cellpadding="0" cellspacing="0" id="backgroundTable" st-sortable="left-image" width="100%">
- <tbody>
- <tr>
- <td>
- <table align="center" border="0" cellpadding="0" cellspacing="0" class="devicewidth" width="700">
- <tbody>
- <tr>
- <td width="100%">
- <table align="center" bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" class="devicewidth" width="700">
- <tbody><!-- Spacing -->
- <tr>
- <td bgcolor="#076187" height="0" style="font-size:1px; line-height:1px; mso-line-height-rule: exactly;"> </td>
- </tr>
- <!-- Spacing --><!-- Spacing -->
- <tr>
- <td height="20" class="desktop-spacer" style="font-size:1px; line-height:1px; mso-line-height-rule: exactly;"> </td>
- </tr>
- <!-- Spacing -->
- <tr>
- <td>
- <table align="center" border="0" cellpadding="0" cellspacing="0" class="devicewidth" width="660">
- <tbody>
- <tr>
- <td><!-- Start of left column -->
- <table align="left" border="0" cellpadding="0" cellspacing="0" class="devicewidth" width="330">
- <tbody><!-- image -->
- <tr>
- <td align="center" class="devicewidth" height="150" valign="top" width="330"><a href="#"><img alt="" border="0" class="col2img" src="https://civicrm.org/sites/default/files/civicrm/custom/images/330x150.png" style="display:block; border:none; outline:none; text-decoration:none; display:block;" width="330" /></a></td>
- </tr>
- <!-- /image -->
- </tbody>
- </table>
- <!-- end of left column --><!-- spacing for mobile devices-->
-
- <table align="left" border="0" cellpadding="0" cellspacing="0" class="mobilespacing">
- <tbody>
- <tr>
- <td height="15" style="font-size:1px; line-height:1px; mso-line-height-rule: exactly;" width="100%"> </td>
- </tr>
- </tbody>
- </table>
- <!-- end of for mobile devices--><!-- start of right column -->
-
- <table align="right" border="0" cellpadding="0" cellspacing="0" class="devicewidthmob" width="310">
- <tbody>
- <tr>
- <td class="padding-top-right15" style="font-family: Helvetica, arial, sans-serif; font-size: 18px; text-align:left; line-height: 24px;"><a href="#" style="color:#076187; text-decoration:none; " target="_blank">Heading Here</a><a href="#" style="color:#076187; text-decoration:none;" target="_blank" title="CiviCRM provides a soup-to-nuts open-source solution for Friends of the San Pedro River"></a></td>
- </tr>
- <!-- end of title --><!-- Spacing -->
- <tr>
- <td height="15" style="font-size:1px; line-height:1px; mso-line-height-rule: exactly;" width="100%"> </td>
- </tr>
- <!-- /Spacing --><!-- content -->
- <tr>
- <td class="padding-right15" style="font-family: Helvetica, arial, sans-serif; font-size: 14px; color: #7a6e67; text-align:left; line-height: 24px;"><span class="padding-right15" style="font-family: Helvetica, arial, sans-serif; font-size: 14px; color: #7a6e67; text-align:left; line-height: 24px;">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
+ <tbody>
+ <tr>
+ <td>
+ <table align="center" border="0" cellpadding="0" cellspacing="0" class="devicewidth" width="700">
+ <tbody>
+ <tr>
+ <td width="100%">
+ <table align="center" bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" class="devicewidth" width="700">
+ <tbody><!-- Spacing -->
+ <tr>
+ <td bgcolor="#076187" height="0" style="font-size:1px; line-height:1px; mso-line-height-rule: exactly;"> </td>
+ </tr>
+ <!-- Spacing --><!-- Spacing -->
+ <tr>
+ <td height="20" class="desktop-spacer" style="font-size:1px; line-height:1px; mso-line-height-rule: exactly;"> </td>
+ </tr>
+ <!-- Spacing -->
+ <tr>
+ <td>
+ <table align="center" border="0" cellpadding="0" cellspacing="0" class="devicewidth" width="660">
+ <tbody>
+ <tr>
+ <td><!-- Start of left column -->
+ <table align="left" border="0" cellpadding="0" cellspacing="0" class="devicewidth" width="330">
+ <tbody><!-- image -->
+ <tr>
+ <td align="center" class="devicewidth" height="150" valign="top" width="330"><a href="#"><img alt="" border="0" class="col2img" src="https://civicrm.org/sites/default/files/civicrm/custom/images/330x150.png" style="display:block; border:none; outline:none; text-decoration:none; display:block;" width="330" /></a></td>
+ </tr>
+ <!-- /image -->
+ </tbody>
+ </table>
+ <!-- end of left column --><!-- spacing for mobile devices-->
+
+ <table align="left" border="0" cellpadding="0" cellspacing="0" class="mobilespacing">
+ <tbody>
+ <tr>
+ <td height="15" style="font-size:1px; line-height:1px; mso-line-height-rule: exactly;" width="100%"> </td>
+ </tr>
+ </tbody>
+ </table>
+ <!-- end of for mobile devices--><!-- start of right column -->
+
+ <table align="right" border="0" cellpadding="0" cellspacing="0" class="devicewidthmob" width="310">
+ <tbody>
+ <tr>
+ <td class="padding-top-right15" style="font-family: Helvetica, arial, sans-serif; font-size: 18px; text-align:left; line-height: 24px;"><a href="#" style="color:#076187; text-decoration:none; " target="_blank">Heading Here</a><a href="#" style="color:#076187; text-decoration:none;" target="_blank" title="CiviCRM provides a soup-to-nuts open-source solution for Friends of the San Pedro River"></a></td>
+ </tr>
+ <!-- end of title --><!-- Spacing -->
+ <tr>
+ <td height="15" style="font-size:1px; line-height:1px; mso-line-height-rule: exactly;" width="100%"> </td>
+ </tr>
+ <!-- /Spacing --><!-- content -->
+ <tr>
+ <td class="padding-right15" style="font-family: Helvetica, arial, sans-serif; font-size: 14px; color: #7a6e67; text-align:left; line-height: 24px;"><span class="padding-right15" style="font-family: Helvetica, arial, sans-serif; font-size: 14px; color: #7a6e67; text-align:left; line-height: 24px;">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna </span></td>
- </tr>
- <tr>
- <td style="font-family: Helvetica, arial, sans-serif; font-size: 14px; font-weight:bold; color: #333333; text-align:left;line-height: 24px; padding-top:10px;"><a href="#" style="color:#80C457;text-decoration:none;font-weight:bold;" target="_blank" title="CiviCRM provides a soup-to-nuts open-source solution for Friends of the San Pedro River">Read More</a></td>
- </tr>
- <!-- /button --><!-- end of content -->
- </tbody>
- </table>
- <!-- end of right column --></td>
- </tr>
- </tbody>
- </table>
- </td>
- </tr>
- <!-- Spacing -->
- <tr>
- <td height="20" style="font-size:1px; line-height:1px; mso-line-height-rule: exactly;"> </td>
- </tr>
- <!-- Spacing -->
- </tbody>
- </table>
- </td>
- </tr>
- </tbody>
- </table>
- </td>
- </tr>
- </tbody>
+ </tr>
+ <tr>
+ <td style="font-family: Helvetica, arial, sans-serif; font-size: 14px; font-weight:bold; color: #333333; text-align:left;line-height: 24px; padding-top:10px;"><a href="#" style="color:#80C457;text-decoration:none;font-weight:bold;" target="_blank" title="CiviCRM provides a soup-to-nuts open-source solution for Friends of the San Pedro River">Read More</a></td>
+ </tr>
+ <!-- /button --><!-- end of content -->
+ </tbody>
+ </table>
+ <!-- end of right column --></td>
+ </tr>
+ </tbody>
+ </table>
+ </td>
+ </tr>
+ <!-- Spacing -->
+ <tr>
+ <td height="20" style="font-size:1px; line-height:1px; mso-line-height-rule: exactly;"> </td>
+ </tr>
+ <!-- Spacing -->
+ </tbody>
+ </table>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </td>
+ </tr>
+ </tbody>
</table>
<!-- /story three -->
<!-- story four -->
<table bgcolor="#d8d8d8" border="0" cellpadding="0" cellspacing="0" id="backgroundTable" st-sortable="left-image" width="100%">
- <tbody>
- <tr>
- <td>
- <table align="center" border="0" cellpadding="0" cellspacing="0" class="devicewidth" width="700">
- <tbody>
- <tr>
- <td width="100%">
- <table align="center" bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" class="devicewidth" width="700">
- <tbody>
+ <tbody>
+ <tr>
+ <td>
+ <table align="center" border="0" cellpadding="0" cellspacing="0" class="devicewidth" width="700">
+ <tbody>
+ <tr>
+ <td width="100%">
+ <table align="center" bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" class="devicewidth" width="700">
+ <tbody>
<!-- Spacing -->
- <tr>
- <td bgcolor="#076187" height="0" style="font-size:1px; line-height:1px; mso-line-height-rule: exactly;"> </td>
- </tr>
- <!-- Spacing -->
+ <tr>
+ <td bgcolor="#076187" height="0" style="font-size:1px; line-height:1px; mso-line-height-rule: exactly;"> </td>
+ </tr>
+ <!-- Spacing -->
<!-- Spacing -->
- <tr>
- <td class="desktop-spacer" height="20" style="font-size:1px; line-height:1px; mso-line-height-rule: exactly;"> </td>
- </tr>
- <!-- Spacing -->
- <tr>
- <td>
- <table align="center" border="0" cellpadding="0" cellspacing="0" class="devicewidth" width="660">
- <tbody>
- <tr>
- <td><!-- Start of left column -->
- <table align="left" border="0" cellpadding="0" cellspacing="0" class="devicewidth" width="330">
- <tbody><!-- image -->
- <tr>
- <td align="center" class="devicewidth" height="150" valign="top" width="330"><a href="#"><img alt="" border="0" class="col2img" src="https://civicrm.org/sites/default/files/civicrm/custom/images/330x150.png" style="display:block; border:none; outline:none; text-decoration:none; display:block;" width="330" /></a></td>
- </tr>
- <!-- /image -->
- </tbody>
- </table>
- <!-- end of left column --><!-- spacing for mobile devices-->
-
- <table align="left" border="0" cellpadding="0" cellspacing="0" class="mobilespacing">
- <tbody>
- <tr>
- <td height="15" style="font-size:1px; line-height:1px; mso-line-height-rule: exactly;" width="100%"> </td>
- </tr>
- </tbody>
- </table>
- <!-- end of for mobile devices--><!-- start of right column -->
-
- <table align="right" border="0" cellpadding="0" cellspacing="0" class="devicewidthmob" width="310">
- <tbody>
- <tr>
- <td class="padding-top-right15" style="font-family: Helvetica, arial, sans-serif; font-size: 18px;text-align:left; line-height: 24px;"><a href="#" style="color:#076187; text-decoration:none; " target="_blank">Heading Here</a><a href="#" style="color:#076187; text-decoration:none;" target="_blank" title="Google Summer of Code"></a></td>
- </tr>
- <!-- end of title --><!-- Spacing -->
- <tr>
- <td height="15" style="font-size:1px; line-height:1px; mso-line-height-rule: exactly;" width="100%"> </td>
- </tr>
- <!-- /Spacing --><!-- content -->
- <tr>
- <td class="padding-right15" style="font-family: Helvetica, arial, sans-serif; font-size: 14px; color: #7a6e67; text-align:left; line-height: 24px;"><span class="padding-right15" style="font-family: Helvetica, arial, sans-serif; font-size: 14px; color: #7a6e67; text-align:left; line-height: 24px;">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
+ <tr>
+ <td class="desktop-spacer" height="20" style="font-size:1px; line-height:1px; mso-line-height-rule: exactly;"> </td>
+ </tr>
+ <!-- Spacing -->
+ <tr>
+ <td>
+ <table align="center" border="0" cellpadding="0" cellspacing="0" class="devicewidth" width="660">
+ <tbody>
+ <tr>
+ <td><!-- Start of left column -->
+ <table align="left" border="0" cellpadding="0" cellspacing="0" class="devicewidth" width="330">
+ <tbody><!-- image -->
+ <tr>
+ <td align="center" class="devicewidth" height="150" valign="top" width="330"><a href="#"><img alt="" border="0" class="col2img" src="https://civicrm.org/sites/default/files/civicrm/custom/images/330x150.png" style="display:block; border:none; outline:none; text-decoration:none; display:block;" width="330" /></a></td>
+ </tr>
+ <!-- /image -->
+ </tbody>
+ </table>
+ <!-- end of left column --><!-- spacing for mobile devices-->
+
+ <table align="left" border="0" cellpadding="0" cellspacing="0" class="mobilespacing">
+ <tbody>
+ <tr>
+ <td height="15" style="font-size:1px; line-height:1px; mso-line-height-rule: exactly;" width="100%"> </td>
+ </tr>
+ </tbody>
+ </table>
+ <!-- end of for mobile devices--><!-- start of right column -->
+
+ <table align="right" border="0" cellpadding="0" cellspacing="0" class="devicewidthmob" width="310">
+ <tbody>
+ <tr>
+ <td class="padding-top-right15" style="font-family: Helvetica, arial, sans-serif; font-size: 18px;text-align:left; line-height: 24px;"><a href="#" style="color:#076187; text-decoration:none; " target="_blank">Heading Here</a><a href="#" style="color:#076187; text-decoration:none;" target="_blank" title="Google Summer of Code"></a></td>
+ </tr>
+ <!-- end of title --><!-- Spacing -->
+ <tr>
+ <td height="15" style="font-size:1px; line-height:1px; mso-line-height-rule: exactly;" width="100%"> </td>
+ </tr>
+ <!-- /Spacing --><!-- content -->
+ <tr>
+ <td class="padding-right15" style="font-family: Helvetica, arial, sans-serif; font-size: 14px; color: #7a6e67; text-align:left; line-height: 24px;"><span class="padding-right15" style="font-family: Helvetica, arial, sans-serif; font-size: 14px; color: #7a6e67; text-align:left; line-height: 24px;">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna </span></td>
- </tr>
- <tr>
- <td style="font-family: Helvetica, arial, sans-serif; font-size: 14px; font-weight:bold; color: #333333; text-align:left;line-height: 24px; padding-top:10px;"><a href="#" style="color:#80C457;text-decoration:none;font-weight:bold;" target="_blank" title="Google Summer of Code">Read More</a></td>
- </tr>
- <!-- /button --><!-- end of content -->
- </tbody>
- </table>
- <!-- end of right column --></td>
- </tr>
- </tbody>
- </table>
- </td>
- </tr>
- <!-- Spacing -->
- <tr>
+ </tr>
+ <tr>
+ <td style="font-family: Helvetica, arial, sans-serif; font-size: 14px; font-weight:bold; color: #333333; text-align:left;line-height: 24px; padding-top:10px;"><a href="#" style="color:#80C457;text-decoration:none;font-weight:bold;" target="_blank" title="Google Summer of Code">Read More</a></td>
+ </tr>
+ <!-- /button --><!-- end of content -->
+ </tbody>
+ </table>
+ <!-- end of right column --></td>
+ </tr>
+ </tbody>
+ </table>
+ </td>
+ </tr>
+ <!-- Spacing -->
+ <tr>
<td height="15" style="font-size:1px; line-height:1px; mso-line-height-rule: exactly;" width="100%"> </td>
</tr>
<!-- /Spacing -->
<td style="padding: 15px;">
<p style="font-family: Helvetica, arial, sans-serif; font-size: 16px; color:#076187; text-align:left; line-height: 26px; padding-bottom:10px;">Remember to link the facebook and twitter links below to your pages!</p>
</td>
- </tr>
- <!-- Spacing -->
- </tbody>
- </table>
- </td>
- </tr>
- </tbody>
- </table>
- </td>
- </tr>
- </tbody>
+ </tr>
+ <!-- Spacing -->
+ </tbody>
+ </table>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </td>
+ </tr>
+ </tbody>
</table>
<!-- /story four -->
<!-- End of footer --><!-- Start of postfooter -->
<table bgcolor="#d8d8d8" border="0" cellpadding="0" cellspacing="0" id="backgroundTable" st-sortable="footer" width="100%">
- <tbody>
- <tr>
- <td>
- <table align="center" border="0" cellpadding="0" cellspacing="0" class="devicewidth" width="700">
+ <tbody>
+ <tr>
+ <td>
+ <table align="center" border="0" cellpadding="0" cellspacing="0" class="devicewidth" width="700">
<tbody>
<tr>
<td width="100%">
<table align="center" bgcolor="#89c66b" border="0" cellpadding="0" cellspacing="0" class="devicewidth" width="700">
- <tbody><!-- Spacing -->
- <tr>
+ <tbody><!-- Spacing -->
+ <tr>
<td height="10" style="font-size:1px; line-height:1px; mso-line-height-rule: exactly;"> </td>
- </tr>
- <!-- Spacing -->
- <tr>
+ </tr>
+ <!-- Spacing -->
+ <tr>
<td><!-- logo -->
<table align="left" border="0" cellpadding="0" cellspacing="0" width="250">
- <tbody>
- <tr>
+ <tbody>
+ <tr>
<td width="20"> </td>
<td align="left" height="40" width="250"><span style="font-family: Helvetica, arial, sans-serif; font-size: 13px; text-align:left; line-height: 26px; padding-bottom:10px;"><a href="{action.unsubscribeUrl}" style="color: #f0f0f0;">Unsubscribe | </a><a href="{action.subscribeUrl}" style="color: #f0f0f0;">Subscribe |</a> <a href="{action.optOutUrl}" style="color: #f0f0f0;">Opt out</a></span></td>
</tr>
- <tr>
- <td width="20"> </td>
- <td align="left" height="40" width="250"><span style="font-family: Helvetica, arial, sans-serif; font-size: 13px; text-align:left; line-height: 26px; padding-bottom:10px; color: #f0f0f0;">{domain.address}</span></td>
- </tr>
+ <tr>
+ <td width="20"> </td>
+ <td align="left" height="40" width="250"><span style="font-family: Helvetica, arial, sans-serif; font-size: 13px; text-align:left; line-height: 26px; padding-bottom:10px; color: #f0f0f0;">{domain.address}</span></td>
+ </tr>
</tbody>
</table>
<!-- end of logo --><!-- start of social icons -->
- <table align="right" border="0" cellpadding="0" cellspacing="0" height="40" vaalign="middle" width="60">
- <tbody>
- <tr>
- <td align="left" height="22" width="22">
- <div class="imgpop"><a href="#" target="_blank"><img alt="" border="0" height="22" src="https://civicrm.org/sites/default/files/civicrm/custom/images/facebook.png" style="display:block; border:none; outline:none; text-decoration:none;" width="22" /> </a></div> </td>
- <td align="left" style="font-size:1px; line-height:1px;" width="10"> </td>
- <td align="right" height="22" width="22">
- <div class="imgpop"><a href="#" target="_blank"><img alt="" border="0" height="22" src="https://civicrm.org/sites/default/files/civicrm/custom/images/twitter.png" style="display:block; border:none; outline:none; text-decoration:none;" width="22" /> </a></div>
- </td>
- <td align="left" style="font-size:1px; line-height:1px;" width="20"> </td>
- </tr>
- </tbody>
- </table>
- <!-- end of social icons --></td>
- </tr>
- <!-- Spacing -->
- <tr>
- <td height="10" style="font-size:1px; line-height:1px; mso-line-height-rule: exactly;"> </td>
- </tr>
- <!-- Spacing -->
- <tr>
- <td bgcolor="#80C457" height="10" width="100%"> </td>
- </tr>
- <!-- Spacing -->
- </tbody>
- </table>
- </td>
- </tr>
- </tbody>
- </table>
- </td>
- </tr>
- </tbody>
+ <table align="right" border="0" cellpadding="0" cellspacing="0" height="40" vaalign="middle" width="60">
+ <tbody>
+ <tr>
+ <td align="left" height="22" width="22">
+ <div class="imgpop"><a href="#" target="_blank"><img alt="" border="0" height="22" src="https://civicrm.org/sites/default/files/civicrm/custom/images/facebook.png" style="display:block; border:none; outline:none; text-decoration:none;" width="22" /> </a></div> </td>
+ <td align="left" style="font-size:1px; line-height:1px;" width="10"> </td>
+ <td align="right" height="22" width="22">
+ <div class="imgpop"><a href="#" target="_blank"><img alt="" border="0" height="22" src="https://civicrm.org/sites/default/files/civicrm/custom/images/twitter.png" style="display:block; border:none; outline:none; text-decoration:none;" width="22" /> </a></div>
+ </td>
+ <td align="left" style="font-size:1px; line-height:1px;" width="20"> </td>
+ </tr>
+ </tbody>
+ </table>
+ <!-- end of social icons --></td>
+ </tr>
+ <!-- Spacing -->
+ <tr>
+ <td height="10" style="font-size:1px; line-height:1px; mso-line-height-rule: exactly;"> </td>
+ </tr>
+ <!-- Spacing -->
+ <tr>
+ <td bgcolor="#80C457" height="10" width="100%"> </td>
+ </tr>
+ <!-- Spacing -->
+ </tbody>
+ </table>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </td>
+ </tr>
+ </tbody>
</table>
<!-- End of footer -->
</body>
</table>
<center>
<table style = "padding-right:19px;font-family: Arial, Verdana, sans-serif;" width = "500" height = "100" border = "0" cellpadding = "2" cellspacing = "1">
- <tr>
- <td style = "padding-left:15px;" ><b><font size = "4" align = "center">TAX INVOICE</font></b></td>
+ <tr>
+ <td style = "padding-left:15px;" ><b><font size = "4" align = "center">TAX INVOICE</font></b></td>
<td colspan = "1"></td>
- <td style = "padding-left:70px;"><b><font size = "1" align = "center" >Invoice Date:</font></b></td>
+ <td style = "padding-left:70px;"><b><font size = "1" align = "center" >Invoice Date:</font></b></td>
<td><font size = "1" align = "right">{$domain_organization}</font></td>
- </tr>
+ </tr>
<tr>
{if $organization_name}
<td style = "padding-left:17px;"><font size = "1" align = "center" >{$display_name} ({$organization_name})</font></td>
{/if}
<td colspan = "1"></td>
<td style = "padding-left:70px;"><font size = "1" align = "right">{$invoice_date}</font></td>
- <td><font size = "1" align = "right">
- {if $domain_street_address }
- {$domain_street_address}
- {/if}
- {if $domain_supplemental_address_1 }{$domain_supplemental_address_1}{/if}</font></td>
- </tr>
+ <td><font size = "1" align = "right">
+ {if $domain_street_address }
+ {$domain_street_address}
+ {/if}
+ {if $domain_supplemental_address_1 }{$domain_supplemental_address_1}{/if}</font></td>
+ </tr>
<tr>
<td style = "padding-left:17px;"><font size = "1" align = "center">{$street_address} {$supplemental_address_1}</font></td>
<td colspan = "1"></td>
- <td style = "padding-left:70px;"><b><font size = "1" align = "right">Incoice Number:</font></b></td>
- <td ><font size = "1" align = "right">{if $domain_supplemental_address_2 }{$domain_supplemental_address_2}{/if}
- {if $domain_state }{$domain_state}{/if}</font></td>
+ <td style = "padding-left:70px;"><b><font size = "1" align = "right">Incoice Number:</font></b></td>
+ <td ><font size = "1" align = "right">{if $domain_supplemental_address_2 }{$domain_supplemental_address_2}{/if}
+ {if $domain_state }{$domain_state}{/if}</font></td>
</tr>
<tr>
<td style = "padding-left:17px;"><font size = "1" align = "center">{$supplemental_address_2} {$stateProvinceAbbreviation}</font></td>
<td colspan="1"></td>
<td style = "padding-left:70px;"><font size = "1" align = "right">{$invoice_id}</font></td>
- <td><font size = "1" align = "right">{if $domain_city}
- {$domain_city}
- {/if}
- {if $domain_postal_code }
- {$domain_postal_code}
- {/if}
- </font></td>
- </tr>
- <tr>
- <td style = "padding-left:17px;"><font size = "1" align = "right">{$city} {$postal_code}</font></td>
+ <td><font size = "1" align = "right">{if $domain_city}
+ {$domain_city}
+ {/if}
+ {if $domain_postal_code }
+ {$domain_postal_code}
+ {/if}
+ </font></td>
+ </tr>
+ <tr>
+ <td style = "padding-left:17px;"><font size = "1" align = "right">{$city} {$postal_code}</font></td>
<td colspan="1"></td>
- <td height = "10" style = "padding-left:70px;"><b><font size = "1"align = "right">Reference:</font></b></td>
- <td><font size = "1" align = "right"> {if $domain_country}
- {$domain_country}
- {/if}</font></td>
- </tr>
- <tr>
- <td></td>
- <td></td>
- <td style = "padding-left:70px;"><font size = "1"align = "right">{$source}</font></td>
- <td><font size = "1" align = "right"> {if $domain_phone}{$domain_phone}{/if}</font> </td>
- </tr>
- <tr>
- <td></td>
- <td></td>
- <td></td>
- <td><font size = "1" align = "right"> {if $domain_email}
- {$domain_email}
- {/if}</font> </td>
- </tr>
+ <td height = "10" style = "padding-left:70px;"><b><font size = "1"align = "right">Reference:</font></b></td>
+ <td><font size = "1" align = "right"> {if $domain_country}
+ {$domain_country}
+ {/if}</font></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td></td>
+ <td style = "padding-left:70px;"><font size = "1"align = "right">{$source}</font></td>
+ <td><font size = "1" align = "right"> {if $domain_phone}{$domain_phone}{/if}</font> </td>
+ </tr>
+ <tr>
+ <td></td>
+ <td></td>
+ <td></td>
+ <td><font size = "1" align = "right"> {if $domain_email}
+ {$domain_email}
+ {/if}</font> </td>
+ </tr>
</table>
- <table style = "margin-top:75px;font-family: Arial, Verdana, sans-serif" width = "590" border = "0"cellpadding = "-5" cellspacing = "19" id = "desc">
- <tr>
+ <table style = "margin-top:75px;font-family: Arial, Verdana, sans-serif" width = "590" border = "0"cellpadding = "-5" cellspacing = "19" id = "desc">
+ <tr>
<td colspan = "2" {$valueStyle}>
<table> {* FIXME: style this table so that it looks like the text version (justification, etc.) *}
<tr>
<th style = "padding-left:34px;text-align:right;font-weight:bold;"><font size = "1">Amount {$defaultCurrency}</font></th>
</tr>
{foreach from=$lineItem item=value key=priceset name=taxpricevalue}
- {if $smarty.foreach.taxpricevalue.index eq 0}
- <tr><td colspan = "5" ><hr size="3" style = "color:#000;"></hr></td></tr>
- {else}
- <tr><td colspan = "5" style = "color:#F5F5F5;"><hr></hr></td></tr>
- {/if}
+ {if $smarty.foreach.taxpricevalue.index eq 0}
+ <tr><td colspan = "5" ><hr size="3" style = "color:#000;"></hr></td></tr>
+ {else}
+ <tr><td colspan = "5" style = "color:#F5F5F5;"><hr></hr></td></tr>
+ {/if}
<tr>
<td style="text-align:left;" ><font size = "1">
- {if $value.html_type eq 'Text'}{$value.label}{else}{$value.field_title} - {$value.label}{/if} {if $value.description}<div>{$value.description|truncate:30:"..."}</div>{/if}
- </font></td>
- <td style = "padding-left:34px;text-align:right;"><font size = "1"> {$value.qty}</font></td>
- <td style = "padding-left:34px;text-align:right;"><font size = "1"> {$value.unit_price|crmMoney:$currency}</font></td>
- {if $value.tax_amount != ''}
- <td style = "padding-left:34px;text-align:right;width:20px;"><font size = "1"> {$value.tax_rate}%</font></td>
+ {if $value.html_type eq 'Text'}{$value.label}{else}{$value.field_title} - {$value.label}{/if} {if $value.description}<div>{$value.description|truncate:30:"..."}</div>{/if}
+ </font></td>
+ <td style = "padding-left:34px;text-align:right;"><font size = "1"> {$value.qty}</font></td>
+ <td style = "padding-left:34px;text-align:right;"><font size = "1"> {$value.unit_price|crmMoney:$currency}</font></td>
+ {if $value.tax_amount != ''}
+ <td style = "padding-left:34px;text-align:right;width:20px;"><font size = "1"> {$value.tax_rate}%</font></td>
{else}
- <td style = "padding-left:34px;text-align:right;width:20px;"><font size = "1">No {$taxTerm}</font></td>
- {/if}
- <td style = "padding-left:34px;text-align:right;"><font size = "1">{$value.subTotal|crmMoney:$currency}</font></td>
- </tr>
+ <td style = "padding-left:34px;text-align:right;width:20px;"><font size = "1">No {$taxTerm}</font></td>
+ {/if}
+ <td style = "padding-left:34px;text-align:right;"><font size = "1">{$value.subTotal|crmMoney:$currency}</font></td>
+ </tr>
{/foreach}
- <tr><td colspan = "5" style = "color:#F5F5F5;"><hr></hr></td></tr>
- <tr>
- <td colspan = "3"></td>
- <td style = "padding-left:20px;text-align:right;"><font size = "1">Sub Total</font></td>
- <td style = "padding-left:34px;text-align:right;"><font size = "1"> {$subTotal|crmMoney:$currency}</font></td>
- </tr>
- {foreach from = $dataArray item = value key = priceset}
- <tr>
- <td colspan = "3"></td>
- {if $priceset}
- <td style = "padding-left:20px;text-align:right;"><font size = "1"> TOTAL {$taxTerm} {$priceset}%</font></td>
- <td style = "padding-left:34px;text-align:right"><font size = "1" align = "right">{$value|crmMoney:$currency}</font> </td>
+ <tr><td colspan = "5" style = "color:#F5F5F5;"><hr></hr></td></tr>
+ <tr>
+ <td colspan = "3"></td>
+ <td style = "padding-left:20px;text-align:right;"><font size = "1">Sub Total</font></td>
+ <td style = "padding-left:34px;text-align:right;"><font size = "1"> {$subTotal|crmMoney:$currency}</font></td>
+ </tr>
+ {foreach from = $dataArray item = value key = priceset}
+ <tr>
+ <td colspan = "3"></td>
+ {if $priceset}
+ <td style = "padding-left:20px;text-align:right;"><font size = "1"> TOTAL {$taxTerm} {$priceset}%</font></td>
+ <td style = "padding-left:34px;text-align:right"><font size = "1" align = "right">{$value|crmMoney:$currency}</font> </td>
{elseif $priceset == 0}
<td style = "padding-left:20px;text-align:right;"><font size = "1">TOTAL NO {$taxTerm}</font></td>
<td style = "padding-left:34px;text-align:right"><font size = "1" align = "right">{$value|crmMoney:$currency}</font> </td>
</tr>
- {/if}
- {/foreach}
- <tr>
- <td colspan = "3"></td>
- <td colspan = "2"><hr></hr></td>
- </tr>
+ {/if}
+ {/foreach}
+ <tr>
+ <td colspan = "3"></td>
+ <td colspan = "2"><hr></hr></td>
+ </tr>
- <tr>
- <td colspan = "3"></td>
- <td style = "padding-left:20px;text-align:right;"><b><font size = "1">TOTAL {$defaultCurrency}</font></b></td>
- <td style = "padding-left:34px;text-align:right;"><font size = "1">{$amount|crmMoney:$currency}</font></td>
- </tr>
+ <tr>
+ <td colspan = "3"></td>
+ <td style = "padding-left:20px;text-align:right;"><b><font size = "1">TOTAL {$defaultCurrency}</font></b></td>
+ <td style = "padding-left:34px;text-align:right;"><font size = "1">{$amount|crmMoney:$currency}</font></td>
+ </tr>
- {if $is_pay_later == 0}
- <tr>
- <td colspan = "3"></td>
- <td style = "padding-left:20px;text-align:right;"><font size = "1">
- {if $contribution_status_id == $refundedStatusId}
- LESS Amount Credited
- {else}
- LESS Amount Paid
- {/if}
- </font></td>
- <td style = "padding-left:34px;text-align:right;"><font size = "1">{$amount|crmMoney:$currency}</font></td>
- </tr>
- <tr>
- <td colspan = "3"></td>
- <td colspan = "2" ><hr></hr></td>
- </tr>
- <tr>
- <td colspan = "3"></td>
- <td style = "padding-left:20px;text-align:right;"><b><font size = "1">AMOUNT DUE: </font></b></td>
+ {if $is_pay_later == 0}
+ <tr>
+ <td colspan = "3"></td>
+ <td style = "padding-left:20px;text-align:right;"><font size = "1">
+ {if $contribution_status_id == $refundedStatusId}
+ LESS Amount Credited
+ {else}
+ LESS Amount Paid
+ {/if}
+ </font></td>
+ <td style = "padding-left:34px;text-align:right;"><font size = "1">{$amount|crmMoney:$currency}</font></td>
+ </tr>
+ <tr>
+ <td colspan = "3"></td>
+ <td colspan = "2" ><hr></hr></td>
+ </tr>
+ <tr>
+ <td colspan = "3"></td>
+ <td style = "padding-left:20px;text-align:right;"><b><font size = "1">AMOUNT DUE: </font></b></td>
<td style = "padding-left:34px;text-align:right;"><b><font size = "1">{$amountDue|crmMoney:$currency}</font></b></td> <td style = "padding-left:34px;"><font size = "1" align = "right"></fonts></td>
- </tr>
- {/if}
- <br/><br/><br/>
- <tr>
- <td colspan = "3"></td>
- </tr>
- <tr>
- <td><b><font size = "1" align = "center">DUE DATE: {$dueDate}</font></b></td>
- <td colspan = "3"></td>
- </tr>
+ </tr>
+ {/if}
+ <br/><br/><br/>
+ <tr>
+ <td colspan = "3"></td>
+ </tr>
+ <tr>
+ <td><b><font size = "1" align = "center">DUE DATE: {$dueDate}</font></b></td>
+ <td colspan = "3"></td>
+ </tr>
</table>
</td>
</tr>
<td><img src = "{$resourceBase}/i/contribute/cut_line.png" height = "15" width = "630"></td>
</tr>
</table>
- <table style = "margin-top:6px;padding-right:20px;font-family: Arial, Verdana, sans-serif" width = "480" border = "0"cellpadding = "-5" cellspacing="19" id = "desc">
- <tr>
- <td width="60%"><b><font size = "4" align = "right">PAYMENT ADVICE</font></b> <br/><br/> <font size = "1" align = "right"><b>To: </b> <div style="width:17em;word-wrap:break-word;">
- {$domain_organization} <br />
- {$domain_street_address} {$domain_supplemental_address_1} <br />
- {$domain_supplemental_address_2} {$domain_state} <br />
- {$domain_city} {$domain_postal_code} <br />
- {$domain_country} <br />
- {$domain_phone} <br />
- {$domain_email}</div>
- </font><br/><br/><font size="1" align="right">{$notes}</font>
+ <table style = "margin-top:6px;padding-right:20px;font-family: Arial, Verdana, sans-serif" width = "480" border = "0"cellpadding = "-5" cellspacing="19" id = "desc">
+ <tr>
+ <td width="60%"><b><font size = "4" align = "right">PAYMENT ADVICE</font></b> <br/><br/> <font size = "1" align = "right"><b>To: </b> <div style="width:17em;word-wrap:break-word;">
+ {$domain_organization} <br />
+ {$domain_street_address} {$domain_supplemental_address_1} <br />
+ {$domain_supplemental_address_2} {$domain_state} <br />
+ {$domain_city} {$domain_postal_code} <br />
+ {$domain_country} <br />
+ {$domain_phone} <br />
+ {$domain_email}</div>
+ </font><br/><br/><font size="1" align="right">{$notes}</font>
</td>
<td width="40%">
- <table cellpadding = "-10" cellspacing = "22" align="right" >
- <tr>
- <td colspan = "2"></td>
- <td><font size = "1" align = "right" style="font-weight:bold;">Customer: </font></td>
- <td ><font size = "1" align = "right">{$display_name}</font></td>
- </tr>
- <tr>
- <td colspan = "2"></td>
- <td><font size = "1" align = "right" style="font-weight:bold;">Invoice Number: </font></td>
- <td><font size = "1" align = "right">{$invoice_id}</font></td>
- </tr>
- <tr><td colspan = "5"style = "color:#F5F5F5;"><hr></hr></td></tr>
- {if $is_pay_later == 1}
- <tr>
+ <table cellpadding = "-10" cellspacing = "22" align="right" >
+ <tr>
+ <td colspan = "2"></td>
+ <td><font size = "1" align = "right" style="font-weight:bold;">Customer: </font></td>
+ <td ><font size = "1" align = "right">{$display_name}</font></td>
+ </tr>
+ <tr>
+ <td colspan = "2"></td>
+ <td><font size = "1" align = "right" style="font-weight:bold;">Invoice Number: </font></td>
+ <td><font size = "1" align = "right">{$invoice_id}</font></td>
+ </tr>
+ <tr><td colspan = "5"style = "color:#F5F5F5;"><hr></hr></td></tr>
+ {if $is_pay_later == 1}
+ <tr>
<td colspan = "2"></td>
- <td><font size = "1" align = "right" style="font-weight:bold;">Amount Due:</font></td>
- <td><font size = "1" align = "right" style="font-weight:bold;">{$amount|crmMoney:$currency}</font></td>
- </tr>
- {else}
- <tr>
- <td colspan = "2"></td>
- <td><font size = "1" align = "right" style="font-weight:bold;">Amount Due: </font></td>
- <td><font size = "1" align = "right" style="font-weight:bold;">{$amountDue|crmMoney:$currency}</font></td>
- </tr>
- {/if}
- <tr>
- <td colspan = "2"></td>
- <td><font size = "1" align = "right" style="font-weight:bold;">Due Date: </font></td>
- <td><font size = "1" align = "right">{$dueDate}</font></td>
- </tr>
- <tr>
+ <td><font size = "1" align = "right" style="font-weight:bold;">Amount Due:</font></td>
+ <td><font size = "1" align = "right" style="font-weight:bold;">{$amount|crmMoney:$currency}</font></td>
+ </tr>
+ {else}
+ <tr>
+ <td colspan = "2"></td>
+ <td><font size = "1" align = "right" style="font-weight:bold;">Amount Due: </font></td>
+ <td><font size = "1" align = "right" style="font-weight:bold;">{$amountDue|crmMoney:$currency}</font></td>
+ </tr>
+ {/if}
+ <tr>
+ <td colspan = "2"></td>
+ <td><font size = "1" align = "right" style="font-weight:bold;">Due Date: </font></td>
+ <td><font size = "1" align = "right">{$dueDate}</font></td>
+ </tr>
+ <tr>
<td colspan = "5" style = "color:#F5F5F5;"><hr></hr></td>
</tr>
- </table>
+ </table>
</td>
- </tr>
- </table>
-
-
+ </tr>
+ </table>
+
+
{if $contribution_status_id == $refundedStatusId}
<table style = "margin-top:2px;padding-left:7px;page-break-before: always;">
<tr>
</tr>
</table>
<center>
-
+
<table style = "padding-right:19px;font-family: Arial, Verdana, sans-serif" width = "500" height = "100" border = "0" cellpadding = "2" cellspacing = "1">
- <tr>
- <td style = "padding-left:15px;" ><b><font size = "4" align = "center">CREDIT NOTE</font></b></td>
+ <tr>
+ <td style = "padding-left:15px;" ><b><font size = "4" align = "center">CREDIT NOTE</font></b></td>
<td colspan = "1"></td>
- <td style = "padding-left:70px;"><b><font size = "1" align = "right">Date:</font></b></td>
- <td><font size = "1" align = "right">{$domain_organization}</font></td>
- </tr>
+ <td style = "padding-left:70px;"><b><font size = "1" align = "right">Date:</font></b></td>
+ <td><font size = "1" align = "right">{$domain_organization}</font></td>
+ </tr>
<tr>
{if $organization_name}
<td style = "padding-left:17px;"><font size = "1" align = "center">{$display_name} ({$organization_name})</font></td>
<td style = "padding-left:17px;"><font size = "1" align = "center">{$display_name}</font></td>
{/if}
<td colspan = "1"></td>
- <td style = "padding-left:70px;"><font size = "1" align = "right">{$invoice_date}</font></td>
- <td ><font size = "1" align = "right">
- {if $domain_street_address }
- {$domain_street_address}
- {/if}
- {if $domain_supplemental_address_1 }
- {$domain_supplemental_address_1}
- {/if}</font></td>
- </tr>
+ <td style = "padding-left:70px;"><font size = "1" align = "right">{$invoice_date}</font></td>
+ <td ><font size = "1" align = "right">
+ {if $domain_street_address }
+ {$domain_street_address}
+ {/if}
+ {if $domain_supplemental_address_1 }
+ {$domain_supplemental_address_1}
+ {/if}</font></td>
+ </tr>
<tr>
<td style = "padding-left:17px;"><font size = "1" align = "center">{$street_address} {$supplemental_address_1}</font></td>
- <td colspan = "1"></td>
- <td style = "padding-left:70px;"><b><font size = "1" align = "right">Credit Note Number:</font></b></td>
+ <td colspan = "1"></td>
+ <td style = "padding-left:70px;"><b><font size = "1" align = "right">Credit Note Number:</font></b></td>
<td><font size = "1" align = "right">{if $domain_supplemental_address_2 }
- {$domain_supplemental_address_2}
- {/if}
- {if $domain_state }
- {$domain_state}
- {/if}
- </font></td>
+ {$domain_supplemental_address_2}
+ {/if}
+ {if $domain_state }
+ {$domain_state}
+ {/if}
+ </font></td>
</tr>
<tr>
<td style = "padding-left:17px;"><font size = "1" align = "center">{$supplemental_address_2} {$stateProvinceAbbreviation}</font></td>
<td colspan="1"></td>
<td style = "padding-left:70px;"><font size = "1" align = "right">{$creditnote_id}</font></td>
- <td ><font size = "1" align = "right">{if $domain_city}
- {$domain_city}
- {/if}
- {if $domain_postal_code }
- {$domain_postal_code}
- {/if}
- </font></td>
- </tr>
- <tr>
- <td style = "padding-left:17px;"><font size = "1" align = "right">{$city} {$postal_code}</font></td>
+ <td ><font size = "1" align = "right">{if $domain_city}
+ {$domain_city}
+ {/if}
+ {if $domain_postal_code }
+ {$domain_postal_code}
+ {/if}
+ </font></td>
+ </tr>
+ <tr>
+ <td style = "padding-left:17px;"><font size = "1" align = "right">{$city} {$postal_code}</font></td>
<td colspan="1"></td>
- <td height = "10" style = "padding-left:70px;"><b><font size = "1"align = "right">Reference:</font></b></td>
- <td><font size = "1" align = "right"> {if $domain_country}
- {$domain_country}
- {/if}</font></td>
- </tr>
- <tr>
- <td></td>
+ <td height = "10" style = "padding-left:70px;"><b><font size = "1"align = "right">Reference:</font></b></td>
+ <td><font size = "1" align = "right"> {if $domain_country}
+ {$domain_country}
+ {/if}</font></td>
+ </tr>
+ <tr>
<td></td>
- <td style = "padding-left:70px;"><font size = "1"align = "right">{$source}</font></td>
- <td><font size = "1" align = "right"> {if $domain_phone}
- {$domain_phone}
- {/if}</font> </td>
- </tr>
- <tr>
- <td></td>
- <td></td>
- <td></td>
- <td><font size = "1" align = "right"> {if $domain_email}
- {$domain_email}
- {/if}</font> </td>
- </tr>
+ <td></td>
+ <td style = "padding-left:70px;"><font size = "1"align = "right">{$source}</font></td>
+ <td><font size = "1" align = "right"> {if $domain_phone}
+ {$domain_phone}
+ {/if}</font> </td>
+ </tr>
+ <tr>
+ <td></td>
+ <td></td>
+ <td></td>
+ <td><font size = "1" align = "right"> {if $domain_email}
+ {$domain_email}
+ {/if}</font> </td>
+ </tr>
</table>
<table style = "margin-top:75px;font-family: Arial, Verdana, sans-serif" width = "590" border = "0"cellpadding = "-5" cellspacing = "19" id = "desc">
- <tr>
+ <tr>
<td colspan = "2" {$valueStyle}>
<table> {* FIXME: style this table so that it looks like the text version (justification, etc.) *}
<tr>
<th style = "padding-left:28px;text-align:right;font-weight:bold;"><font size = "1">Amount {$defaultCurrency}</font></th>
</tr>
{foreach from=$lineItem item=value key=priceset name=pricevalue}
- {if $smarty.foreach.pricevalue.index eq 0}
- <tr><td colspan = "5" ><hr size="3" style = "color:#000;"></hr></td></tr>
- {else}
- <tr><td colspan = "5" style = "color:#F5F5F5;"><hr></hr></td></tr>
- {/if}
+ {if $smarty.foreach.pricevalue.index eq 0}
+ <tr><td colspan = "5" ><hr size="3" style = "color:#000;"></hr></td></tr>
+ {else}
+ <tr><td colspan = "5" style = "color:#F5F5F5;"><hr></hr></td></tr>
+ {/if}
<tr>
<td style ="text-align:left;" ><font size = "1">
- {if $value.html_type eq 'Text'}{$value.label}{else}{$value.field_title} - {$value.label}{/if} {if $value.description}<div>{$value.description|truncate:30:"..."}</div>{/if}
- </font></td>
- <td style = "padding-left:28px;text-align:right;"><font size = "1"> {$value.qty}</font></td>
- <td style = "padding-left:28px;text-align:right;"><font size = "1"> {$value.unit_price|crmMoney:$currency}</font></td>
- {if $value.tax_amount != ''}
- <td style = "padding-left:28px;text-align:right;"><font size = "1"> {$value.tax_rate}%</font></td>
+ {if $value.html_type eq 'Text'}{$value.label}{else}{$value.field_title} - {$value.label}{/if} {if $value.description}<div>{$value.description|truncate:30:"..."}</div>{/if}
+ </font></td>
+ <td style = "padding-left:28px;text-align:right;"><font size = "1"> {$value.qty}</font></td>
+ <td style = "padding-left:28px;text-align:right;"><font size = "1"> {$value.unit_price|crmMoney:$currency}</font></td>
+ {if $value.tax_amount != ''}
+ <td style = "padding-left:28px;text-align:right;"><font size = "1"> {$value.tax_rate}%</font></td>
{else}
- <td style = "padding-left:28px;text-align:right"><font size = "1" >No {$taxTerm}</font></td>
- {/if}
- <td style = "padding-left:28px;text-align:right;"><font size = "1" >{$value.subTotal|crmMoney:$currency}</font></td>
- </tr>
+ <td style = "padding-left:28px;text-align:right"><font size = "1" >No {$taxTerm}</font></td>
+ {/if}
+ <td style = "padding-left:28px;text-align:right;"><font size = "1" >{$value.subTotal|crmMoney:$currency}</font></td>
+ </tr>
{/foreach}
- <tr><td colspan = "5" style = "color:#F5F5F5;"><hr></hr></td></tr>
- <tr>
- <td colspan = "3"></td>
- <td style = "padding-left:28px;text-align:right;"><font size = "1">Sub Total</font></td>
- <td style = "padding-left:28px;text-align:right;"><font size = "1"> {$subTotal|crmMoney:$currency}</font></td>
- </tr>
- {foreach from = $dataArray item = value key = priceset}
- <tr>
- <td colspan = "3"></td>
- {if $priceset}
- <td style = "padding-left:28px;text-align:right;"><font size = "1"> TOTAL {$taxTerm} {$priceset}%</font></td>
- <td style = "padding-left:28px;text-align:right;"><font size = "1" align = "right">{$value|crmMoney:$currency}</font> </td>
+ <tr><td colspan = "5" style = "color:#F5F5F5;"><hr></hr></td></tr>
+ <tr>
+ <td colspan = "3"></td>
+ <td style = "padding-left:28px;text-align:right;"><font size = "1">Sub Total</font></td>
+ <td style = "padding-left:28px;text-align:right;"><font size = "1"> {$subTotal|crmMoney:$currency}</font></td>
+ </tr>
+ {foreach from = $dataArray item = value key = priceset}
+ <tr>
+ <td colspan = "3"></td>
+ {if $priceset}
+ <td style = "padding-left:28px;text-align:right;"><font size = "1"> TOTAL {$taxTerm} {$priceset}%</font></td>
+ <td style = "padding-left:28px;text-align:right;"><font size = "1" align = "right">{$value|crmMoney:$currency}</font> </td>
{elseif $priceset == 0}
<td style = "padding-left:28px;text-align:right;"><font size = "1">TOTAL NO {$taxTerm}</font></td>
<td style = "padding-left:28px;text-align:right;"><font size = "1" align = "right">{$value|crmMoney:$currency}</font> </td>
</tr>
- {/if}
- {/foreach}
- <tr>
- <td colspan = "3"></td>
- <td colspan = "2"><hr></hr></td>
- </tr>
+ {/if}
+ {/foreach}
+ <tr>
+ <td colspan = "3"></td>
+ <td colspan = "2"><hr></hr></td>
+ </tr>
- <tr>
- <td colspan = "3"></td>
- <td style = "padding-left:28px;text-align:right;"><b><font size = "1">TOTAL {$defaultCurrency}</font></b></td>
- <td style = "padding-left:28px;text-align:right;"><font size = "1">{$amount|crmMoney:$currency}</font></td>
- </tr>
+ <tr>
+ <td colspan = "3"></td>
+ <td style = "padding-left:28px;text-align:right;"><b><font size = "1">TOTAL {$defaultCurrency}</font></b></td>
+ <td style = "padding-left:28px;text-align:right;"><font size = "1">{$amount|crmMoney:$currency}</font></td>
+ </tr>
- {if $is_pay_later == 0}
- <tr>
- <td colspan = "3"></td>
- <td style = "padding-left:28px;text-align:right;"><font size = "1" >LESS Credit to invoice(s)</font></td>
- <td style = "padding-left:28px;text-align:right;"><font size = "1">{$amount|crmMoney:$currency}</font></td>
- </tr>
- <tr>
- <td colspan = "3"></td>
- <td colspan = "2" ><hr></hr></td>
- </tr>
- <tr>
- <td colspan = "3"></td>
- <td style = "padding-left:28px;text-align:right;"><b><font size = "1">REMAINING CREDIT</font></b></td>
- <td style = "padding-left:28px;text-align:right;"><b><font size = "1">{$amountDue|crmMoney:$currency}</font></b></td>
- <td style = "padding-left:28px;"><font size = "1" align = "right"></fonts></td>
- </tr>
- {/if}
- <br/><br/><br/>
- <tr>
- <td colspan = "3"></td>
- </tr>
- <tr>
- <td></td>
- <td colspan = "3"></td>
- </tr>
+ {if $is_pay_later == 0}
+ <tr>
+ <td colspan = "3"></td>
+ <td style = "padding-left:28px;text-align:right;"><font size = "1" >LESS Credit to invoice(s)</font></td>
+ <td style = "padding-left:28px;text-align:right;"><font size = "1">{$amount|crmMoney:$currency}</font></td>
+ </tr>
+ <tr>
+ <td colspan = "3"></td>
+ <td colspan = "2" ><hr></hr></td>
+ </tr>
+ <tr>
+ <td colspan = "3"></td>
+ <td style = "padding-left:28px;text-align:right;"><b><font size = "1">REMAINING CREDIT</font></b></td>
+ <td style = "padding-left:28px;text-align:right;"><b><font size = "1">{$amountDue|crmMoney:$currency}</font></b></td>
+ <td style = "padding-left:28px;"><font size = "1" align = "right"></fonts></td>
+ </tr>
+ {/if}
+ <br/><br/><br/>
+ <tr>
+ <td colspan = "3"></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td colspan = "3"></td>
+ </tr>
</table>
</td>
</tr>
</tr>
</table>
- <table style = "margin-top:6px;padding-right:20px;font-family: Arial, Verdana, sans-serif" width = "507" border = "0"cellpadding = "-5" cellspacing="19" id = "desc">
- <tr>
- <td width="60%"><font size = "4" align = "right"><b>CREDIT ADVICE</b><br/><br /><div style="font-size:10px;max-width:300px;">Please do not pay on this advice. Deduct the amount of this Credit Note
+ <table style = "margin-top:6px;padding-right:20px;font-family: Arial, Verdana, sans-serif" width = "507" border = "0"cellpadding = "-5" cellspacing="19" id = "desc">
+ <tr>
+ <td width="60%"><font size = "4" align = "right"><b>CREDIT ADVICE</b><br/><br /><div style="font-size:10px;max-width:300px;">Please do not pay on this advice. Deduct the amount of this Credit Note
from your next payment to us</div><br/></font></td>
- <td width="40%">
+ <td width="40%">
<table align="right" >
- <tr>
- <td colspan = "2"></td>
- <td><font size = "1" align = "right" style="font-weight:bold;">Customer: </font></td>
- <td><font size = "1" align = "right" >{$display_name}</font></td>
- </tr>
- <tr>
- <td colspan = "2"></td>
- <td><font size = "1" align = "right" style="font-weight:bold;">Credit Note#: </font></td>
- <td><font size = "1" align = "right">{$creditnote_id}</font></td>
- </tr>
- <tr><td colspan = "5"style = "color:#F5F5F5;"><hr></hr></td></tr>
- <tr>
+ <tr>
+ <td colspan = "2"></td>
+ <td><font size = "1" align = "right" style="font-weight:bold;">Customer: </font></td>
+ <td><font size = "1" align = "right" >{$display_name}</font></td>
+ </tr>
+ <tr>
+ <td colspan = "2"></td>
+ <td><font size = "1" align = "right" style="font-weight:bold;">Credit Note#: </font></td>
+ <td><font size = "1" align = "right">{$creditnote_id}</font></td>
+ </tr>
+ <tr><td colspan = "5"style = "color:#F5F5F5;"><hr></hr></td></tr>
+ <tr>
<td colspan = "2"></td>
- <td><font size = "1" align = "right" style="font-weight:bold;">Credit Amount:</font></td>
- <td width='50px'><font size = "1" align = "right" style="font-weight:bold;">{$amount|crmMoney:$currency}</font></td>
- </tr>
+ <td><font size = "1" align = "right" style="font-weight:bold;">Credit Amount:</font></td>
+ <td width='50px'><font size = "1" align = "right" style="font-weight:bold;">{$amount|crmMoney:$currency}</font></td>
+ </tr>
</table>
</td>
- </tr>
- </table>
+ </tr>
+ </table>
{/if}
</center>
</body>
-{if $title}{if $component}{if $component == 'event'} {ts}Event Registration Invoice:- {$title}{/ts}{else}{ts}Contribution Invoice :
+{if $title}{if $component}{if $component == 'event'} {ts}Event Registration Invoice:- {$title}{/ts}{else}{ts}Contribution Invoice :
{$title}{/ts}{/if}{/if} {else} {ts}Invoice {/ts} {/if}
{foreach from=$dataArray item=value key=priceset}
<tr>
{if $priceset || $priceset == 0 || $value != ''}
- <td> {$taxTerm} {$priceset|string_format:"%.2f"}%</td>
+ <td> {$taxTerm} {$priceset|string_format:"%.2f"}%</td>
<td> {$value|crmMoney:$currency}</td>
{else}
<td> {ts}No{/ts} {$taxTerm}</td>
{foreach from=$dataArray item=value key=priceset}
<tr>
{if $priceset || $priceset == 0}
- <td> {$taxTerm} {$priceset|string_format:"%.2f"}%</td>
+ <td> {$taxTerm} {$priceset|string_format:"%.2f"}%</td>
<td> {$value|crmMoney:$currency}</td>
{else}
<td> {ts}No{/ts} {$taxTerm}</td>
{/if}
{/foreach}
{/if}
-
- {if $event.is_public}
+
+ {if $event.is_public}
<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}
</td>
</tr>
{/if}
-
+
{if $email}
<tr>
<th {$headerStyle}>
{foreach from=$dataArray item=value key=priceset}
<tr>
{if $priceset || $priceset == 0}
- <td> {$taxTerm} {$priceset|string_format:"%.2f"}%</td>
+ <td> {$taxTerm} {$priceset|string_format:"%.2f"}%</td>
<td> {$value|crmMoney:$currency}</td>
{else}
<td> {ts}No{/ts} {$taxTerm}</td>
{ts}Email{/ts}: {$eventEmail.email}{/if}{/foreach}
{/if}
-{if $event.is_public}
+{if $event.is_public}
{capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture}
{ts}Download iCalendar File:{/ts} {$icalFeed}
{/if}
{/if}
{/foreach}
{/if}
-
- {if $event.is_public}
+
+ {if $event.is_public}
<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}
</td>
</tr>
{/if}
-
+
{if $event.is_share}
<tr>
<td colspan="2" {$valueStyle}>
{foreach from=$dataArray item=value key=priceset}
<tr>
{if $priceset || $priceset == 0}
- <td> {$taxTerm} {$priceset|string_format:"%.2f"}%</td>
+ <td> {$taxTerm} {$priceset|string_format:"%.2f"}%</td>
<td> {$value|crmMoney:$currency}</td>
{else}
<td> {ts}No{/ts} {$taxTerm}</td>
{ts}Email{/ts}: {$eventEmail.email}{/if}{/foreach}
{/if}
-{if $event.is_public}
+{if $event.is_public}
{capture assign=icalFeed}{crmURL p='civicrm/event/ical' q="reset=1&id=`$event.id`" h=0 a=1 fe=1}{/capture}
{ts}Download iCalendar File:{/ts} {$icalFeed}
{/if}
{foreach from=$dataArray item=value key=priceset}
<tr>
{if $priceset}
- <td> {$taxTerm} {$priceset|string_format:"%.2f"}%</td>
+ <td> {$taxTerm} {$priceset|string_format:"%.2f"}%</td>
<td> {$value|crmMoney:$currency}</td>
{elseif $priceset == 0}
<td> {ts}No{/ts} {$taxTerm}</td>
{foreach from=$dataArray item=value key=priceset}
<tr>
{if $priceset || $priceset == 0}
- <td> {$taxTerm} {$priceset|string_format:"%.2f"}%</td>
+ <td> {$taxTerm} {$priceset|string_format:"%.2f"}%</td>
<td> {$value|crmMoney:$currency}</td>
{else}
<td> {ts}NO{/ts} {$taxTerm}</td>
LEFT JOIN civicrm_price_field_value cpfv ON cpf.id = cpfv.price_field_id
LEFT JOIN civicrm_event ce ON cpse.entity_id = ce.id AND cpse.entity_table = 'civicrm_event'
LEFT JOIN civicrm_contribution_page ccg ON cpse.entity_id = ccg.id AND cpse.entity_table = 'civicrm_contribution_page'
-SET cpfv.financial_type_id = CASE
+SET cpfv.financial_type_id = CASE
WHEN ce.id IS NOT NULL
THEN ce.financial_type_id
WHEN ccg.id IS NOT NULL
THEN ccg.financial_type_id
END,
-cps.financial_type_id = CASE
+cps.financial_type_id = CASE
WHEN ce.id IS NOT NULL
THEN ce.financial_type_id
WHEN ccg.id IS NOT NULL
-- CRM-12844
-- DELETE bad data
DELETE cli FROM `civicrm_contribution` cc
-LEFT JOIN civicrm_line_item cli ON cli.entity_id = cc.id
-LEFT JOIN civicrm_financial_item cfi ON cfi.entity_id = cli.id AND cfi.entity_table = 'civicrm_line_item'
+LEFT JOIN civicrm_line_item cli ON cli.entity_id = cc.id
+LEFT JOIN civicrm_financial_item cfi ON cfi.entity_id = cli.id AND cfi.entity_table = 'civicrm_line_item'
LEFT JOIN civicrm_price_field cpf ON cpf.id = cli.price_field_id
LEFT JOIN civicrm_price_set cps ON cps.id = cpf.price_set_id
-WHERE cc.contribution_recur_id IS NOT NULL
+WHERE cc.contribution_recur_id IS NOT NULL
AND cli.entity_table = 'civicrm_contribution' AND cfi.id IS NULL
AND cps.is_quick_config = 1;
UPDATE `civicrm_contribution` cc
LEFT JOIN civicrm_entity_financial_trxn ceft ON ceft.entity_id = cc.id
LEFT JOIN civicrm_financial_trxn cft ON cft.id = ceft.financial_trxn_id
-LEFT JOIN civicrm_entity_financial_trxn ceft1 ON ceft1.financial_trxn_id = ceft.financial_trxn_id
+LEFT JOIN civicrm_entity_financial_trxn ceft1 ON ceft1.financial_trxn_id = ceft.financial_trxn_id
LEFT JOIN civicrm_financial_item cfi ON cfi.id = ceft1.entity_id
LEFT JOIN civicrm_entity_financial_account cefa ON cefa.entity_id = cft.payment_processor_id
SET cft.from_financial_account_id = NULL
SELECT 'civicrm_financial_type', cft.id, @option_value_rel_id_exp, @financialAccountId
FROM civicrm_financial_type cft
LEFT JOIN civicrm_entity_financial_account ceft
-ON ceft.entity_id = cft.id AND ceft.account_relationship = @option_value_rel_id_exp AND ceft.entity_table = 'civicrm_financial_type'
+ON ceft.entity_id = cft.id AND ceft.account_relationship = @option_value_rel_id_exp AND ceft.entity_table = 'civicrm_financial_type'
WHERE ceft.entity_id IS NULL;
UPDATE civicrm_financial_trxn cft
SELECT 'civicrm_financial_type', cft.id, @option_value_rel_id_cg, @financialAccountId
FROM civicrm_financial_type cft
LEFT JOIN civicrm_entity_financial_account ceft
-ON ceft.entity_id = cft.id AND ceft.account_relationship = @option_value_rel_id_cg AND ceft.entity_table = 'civicrm_financial_type'
-WHERE ceft.entity_id IS NULL;
\ No newline at end of file
+ON ceft.entity_id = cft.id AND ceft.account_relationship = @option_value_rel_id_cg AND ceft.entity_table = 'civicrm_financial_type'
+WHERE ceft.entity_id IS NULL;
UPDATE civicrm_navigation SET url = 'http://civicrm.org/what/whatiscivicrm' WHERE name = 'About';
-- CRM-13968
-SELECT @inprogressstatus := value FROM civicrm_option_value cov
+SELECT @inprogressstatus := value FROM civicrm_option_value cov
LEFT JOIN civicrm_option_group cg ON cov.option_group_id = cg.id
WHERE cg.name = 'contribution_status' AND cov.name = 'In Progress';
-SELECT @financialstatus := value FROM civicrm_option_value cov
+SELECT @financialstatus := value FROM civicrm_option_value cov
LEFT JOIN civicrm_option_group cg ON cov.option_group_id = cg.id
WHERE cg.name = 'financial_item_status' AND cov.name = 'Unpaid';
WHERE ceft.entity_table = 'civicrm_contribution' AND ceft_financial_item.entity_table = 'civicrm_financial_item' AND cft.status_id = @inprogressstatus AND cfi.status_id IS NULL;
{* CRM-14167 *}
-ALTER TABLE civicrm_activity_contact ADD INDEX index_record_type ( activity_id, record_type_id );
\ No newline at end of file
+ALTER TABLE civicrm_activity_contact ADD INDEX index_record_type ( activity_id, record_type_id );
SELECT @option_group_id_batch_status := max(id) from civicrm_option_group where name = 'batch_status';
SELECT @weight := MAX(value) FROM civicrm_option_value WHERE option_group_id = @option_group_id_batch_status;
-UPDATE civicrm_option_value
+UPDATE civicrm_option_value
SET value = (Select @weight := @weight +1),
weight = @weight
WHERE option_group_id = @option_group_id_batch_status AND name IN ('Data Entry', 'Reopened', 'Exported') AND value = 0 ORDER BY id;
SELECT @option_group_id_batch_modes := max(id) from civicrm_option_group where name = 'batch_mode';
SELECT @weights := MAX(value) FROM civicrm_option_value WHERE option_group_id = @option_group_id_batch_modes;
-UPDATE civicrm_option_value
+UPDATE civicrm_option_value
SET value = (Select @weights := @weights +1),
weight = @weights
WHERE option_group_id = @option_group_id_batch_modes AND name IN ('Manual Batch', 'Automatic Batch') AND value = 0;
INNER JOIN civicrm_option_group cog ON cog.id = cov.option_group_id
WHERE cog.name = 'activity_type' AND cov.name = 'Export Accounting Batch';
-UPDATE civicrm_batch cb
+UPDATE civicrm_batch cb
INNER JOIN civicrm_activity ca ON ca.source_record_id = cb.id
-SET cb.status_id = @exported_status_id
-WHERE cb.status_id = 0 AND ca.activity_type_id = @export_activity_type;
\ No newline at end of file
+SET cb.status_id = @exported_status_id
+WHERE cb.status_id = 0 AND ca.activity_type_id = @export_activity_type;
{* file to handle db changes in 4.5.beta7 during upgrade *}
-UPDATE civicrm_contribution SET net_amount = total_amount - fee_amount WHERE net_amount = 0 OR net_amount IS NULL;
+UPDATE civicrm_contribution SET net_amount = total_amount - fee_amount WHERE net_amount = 0 OR net_amount IS NULL;
$difference = 2;
$quarter = ceil($now['mon'] / 3);
$quarter = $quarter - $difference;
- $subtractYear = 0;
+ $subtractYear = 0;
if ($quarter <= 0) {
$subtractYear = 1;
$quarter += 4;
case 'earlier':
$quarter = ceil($now['mon'] / 3) - 1;
- $subtractYear = 0;
+ $subtractYear = 0;
if ($quarter <= 0) {
$subtractYear = 1;
$quarter += 4;
$from['Y'] = $now['year'];
unset($to);
break;
-
+
case 'greater_previous':
$quarter = ceil($now['mon'] / 3) - 1;
- $subtractYear = 0;
+ $subtractYear = 0;
if ($quarter <= 0) {
$subtractYear = 1;
$quarter += 4;
$escapeSmarty
);
}
-
+
// check if there are still any unevaluated tokens
$remainingTokens = self::getTokens($tokenString);
- // contact related $greetingTokens not empty, there are customized or hook tokens to replace
+ // contact related $greetingTokens not empty, there are customized or hook tokens to replace
if (!empty($remainingTokens['contact']) ) {
// Fill the return properties array
$greetingTokens = $remainingTokens['contact'];
.on('click', 'a.button, a.action-item[href*="action=update"], a.action-item[href*="action=delete"]', CRM.popup)
.on('crmPopupFormSuccess', 'a.button, a.action-item[href*="action=update"], a.action-item[href*="action=delete"]', function() {
// Refresh datatable when form completes
- var $context = $('#crm-main-content-wrapper');
+ var $context = $('#crm-main-content-wrapper');
$('table.crm-group-selector', $context).dataTable().fnDraw();
});
<div class="messages help">{$priceSet.help_pre}</div>
{/if}
- {assign var='adminFld' value=false}
- {if call_user_func(array('CRM_Core_Permission','check'), 'administer CiviCRM') }
- {assign var='adminFld' value=true}
- {/if}
+ {assign var='adminFld' value=false}
+ {if call_user_func(array('CRM_Core_Permission','check'), 'administer CiviCRM') }
+ {assign var='adminFld' value=true}
+ {/if}
{foreach from=$priceSet.fields item=element key=field_id}
{* Skip 'Admin' visibility price fields WHEN this tpl is used in online registration unless user has administer CiviCRM permission. *}
{if $element.is_display_amounts && $element.html_type eq 'Text'}
<span class="price-field-amount">
{foreach item=option from=$element.options}
- {if ($option.tax_amount || $option.tax_amount == "0") && $displayOpt && $invoicing}
- {assign var="amount" value=`$option.amount+$option.tax_amount`}
- {if $displayOpt == 'Do_not_show'}
- {$amount|crmMoney}
- {elseif $displayOpt == 'Inclusive'}
- {$amount|crmMoney}
- <span class='crm-price-amount-label'> (includes {$taxTerm} of {$option.tax_amount|crmMoney})</span>
- {else}
- {$option.amount|crmMoney}
- <span class='crm-price-amount-label'> + {$option.tax_amount|crmMoney} {$taxTerm}</span>
- {/if}
- {else}
- {$option.amount|crmMoney}
- {/if}
- {/foreach}
+ {if ($option.tax_amount || $option.tax_amount == "0") && $displayOpt && $invoicing}
+ {assign var="amount" value=`$option.amount+$option.tax_amount`}
+ {if $displayOpt == 'Do_not_show'}
+ {$amount|crmMoney}
+ {elseif $displayOpt == 'Inclusive'}
+ {$amount|crmMoney}
+ <span class='crm-price-amount-label'> (includes {$taxTerm} of {$option.tax_amount|crmMoney})</span>
+ {else}
+ {$option.amount|crmMoney}
+ <span class='crm-price-amount-label'> + {$option.tax_amount|crmMoney} {$taxTerm}</span>
+ {/if}
+ {else}
+ {$option.amount|crmMoney}
+ {/if}
+ {/foreach}
</span>
{/if}
{if $element.help_post}<br /><span class="description">{$element.help_post}</span>{/if}
{if !$quickConfig and !$dontInclCal}
{include file="CRM/Price/Form/Calculate.tpl"}
{/if}
-</div>
\ No newline at end of file
+</div>
<td>{if $row.tax_rate != '' && $row.html_type eq "Text / Numeric Quantity"}
{$taxTerm} ({$row.tax_rate|string_format:"%.2f"}%)
{/if}
- </td>
+ </td>
<td>{if $row.html_type eq "Text / Numeric Quantity" }{$row.tax_amount|crmMoney}{/if}</td>
{/if}
<td class="field-action">{$row.action|replace:'xx':$row.id}</td>
{if $context NEQ "Membership"}
<td class="right">{$line.qty}</td>
<td class="right">{$line.unit_price|crmMoney}</td>
- {else}
+ {else}
<td class="right">{$line.line_total|crmMoney}</td>
{/if}
- {if !$getTaxDetails && $context NEQ "Membership"}
- <td class="right">{$line.line_total|crmMoney}</td>
- {/if}
- {if $getTaxDetails}
- <td class="right">{$line.line_total|crmMoney}</td>
- {if $line.tax_rate != "" || $line.tax_amount != ""}
- <td class="right">{$taxTerm} ({$line.tax_rate|string_format:"%.2f"}%)</td>
- <td class="right">{$line.tax_amount|crmMoney}</td>
- {else}
- <td></td>
- <td></td>
- {/if}
- <td class="right">{$line.line_total+$line.tax_amount|crmMoney}</td>
- {/if}
+ {if !$getTaxDetails && $context NEQ "Membership"}
+ <td class="right">{$line.line_total|crmMoney}</td>
+ {/if}
+ {if $getTaxDetails}
+ <td class="right">{$line.line_total|crmMoney}</td>
+ {if $line.tax_rate != "" || $line.tax_amount != ""}
+ <td class="right">{$taxTerm} ({$line.tax_rate|string_format:"%.2f"}%)</td>
+ <td class="right">{$line.tax_amount|crmMoney}</td>
+ {else}
+ <td></td>
+ <td></td>
+ {/if}
+ <td class="right">{$line.line_total+$line.tax_amount|crmMoney}</td>
+ {/if}
{if $pricesetFieldsCount}
<td class="right">{$line.participant_count}</td>
{/if}