PageRenderTime 26ms CodeModel.GetById 15ms RepoModel.GetById 1ms app.codeStats 0ms

/media/civicrm/templates_c/en_US/%%6F/6F7/6F7BB438%%Contribution.tpl.php

https://github.com/finchiefin/olympian
PHP | 770 lines | 715 code | 46 blank | 9 comment | 97 complexity | cc57702b729a42e3e13b9a26217f5c30 MD5 | raw file
Possible License(s): GPL-2.0, Apache-2.0, LGPL-2.1, BSD-3-Clause, JSON

Large files files are truncated, but you can click here to view the full file

  1. <?php /* Smarty version 2.6.27, created on 2014-06-17 16:10:22
  2. compiled from CRM/Contribute/Form/Contribution.tpl */ ?>
  3. <?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
  4. smarty_core_load_plugins(array('plugins' => array(array('block', 'crmScope', 'CRM/Contribute/Form/Contribution.tpl', 1, false),array('block', 'ts', 'CRM/Contribute/Form/Contribution.tpl', 37, false),array('function', 'crmURL', 'CRM/Contribute/Form/Contribution.tpl', 74, false),array('function', 'help', 'CRM/Contribute/Form/Contribution.tpl', 101, false),array('modifier', 'crmAddClass', 'CRM/Contribute/Form/Contribution.tpl', 113, false),array('modifier', 'crmDate', 'CRM/Contribute/Form/Contribution.tpl', 151, false),array('modifier', 'crmReplace', 'CRM/Contribute/Form/Contribution.tpl', 216, false),)), $this); ?>
  5. <?php $this->_tag_stack[] = array('crmScope', array('extensionKey' => "")); $_block_repeat=true;smarty_block_crmScope($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>
  6. <?php if ($this->_tpl_vars['cdType']): ?>
  7. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  8. $this->_smarty_include(array('smarty_include_tpl_file' => "CRM/Custom/Form/CustomData.tpl", 'smarty_include_vars' => array()));
  9. $this->_tpl_vars = $_smarty_tpl_vars;
  10. unset($_smarty_tpl_vars);
  11. ?>
  12. <?php elseif ($this->_tpl_vars['priceSetId']): ?>
  13. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  14. $this->_smarty_include(array('smarty_include_tpl_file' => "CRM/Price/Form/PriceSet.tpl", 'smarty_include_vars' => array('context' => 'standalone','extends' => 'Contribution')));
  15. $this->_tpl_vars = $_smarty_tpl_vars;
  16. unset($_smarty_tpl_vars);
  17. ?>
  18. <?php elseif ($this->_tpl_vars['showAdditionalInfo'] && $this->_tpl_vars['formType']): ?>
  19. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  20. $this->_smarty_include(array('smarty_include_tpl_file' => "CRM/Contribute/Form/AdditionalInfo/".($this->_tpl_vars['formType']).".tpl", 'smarty_include_vars' => array()));
  21. $this->_tpl_vars = $_smarty_tpl_vars;
  22. unset($_smarty_tpl_vars);
  23. ?>
  24. <?php else: ?>
  25. <?php if ($this->_tpl_vars['contributionMode']): ?>
  26. <h3><?php if ($this->_tpl_vars['ppID']): ?><?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Credit Card Pledge Payment<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?><?php else: ?><?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Credit Card Contribution<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?><?php endif; ?></h3>
  27. <?php elseif ($this->_tpl_vars['context'] != 'standalone'): ?>
  28. <h3><?php if ($this->_tpl_vars['action'] == 1 || $this->_tpl_vars['action'] == 1024): ?><?php if ($this->_tpl_vars['ppID']): ?><?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Pledge Payment<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?><?php else: ?><?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>New Contribution<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?><?php endif; ?><?php elseif ($this->_tpl_vars['action'] == 8): ?><?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Delete Contribution<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?><?php else: ?><?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Edit Contribution<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?><?php endif; ?></h3>
  29. <?php endif; ?>
  30. <div class="crm-block crm-form-block crm-contribution-form-block">
  31. <?php if ($this->_tpl_vars['contributionMode'] == 'test'): ?>
  32. <?php $this->assign('contribMode', 'TEST'); ?>
  33. <?php elseif ($this->_tpl_vars['contributionMode'] == 'live'): ?>
  34. <?php $this->assign('contribMode', 'LIVE'); ?>
  35. <?php endif; ?>
  36. <?php if (! $this->_tpl_vars['email'] && $this->_tpl_vars['action'] != 8 && $this->_tpl_vars['context'] != 'standalone'): ?>
  37. <div class="messages status no-popup">
  38. <div class="icon inform-icon"></div>&nbsp;<?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>You will not be able to send an automatic email receipt for this contribution because there is no email address recorded for this contact. If you want a receipt to be sent when this contribution is recorded, click Cancel and then click Edit from the Summary tab to add an email address before recording the contribution.<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?>
  39. </div>
  40. <?php endif; ?>
  41. <?php if ($this->_tpl_vars['contributionMode']): ?>
  42. <div id="help">
  43. <?php if ($this->_tpl_vars['contactId']): ?>
  44. <?php $this->_tag_stack[] = array('ts', array('1' => $this->_tpl_vars['displayName'],'2' => $this->_tpl_vars['contribMode'])); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Use this form to submit a new contribution on behalf of %1. <strong>A %2 transaction will be submitted</strong> using the selected payment processor.<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?>
  45. <?php else: ?>
  46. <?php $this->_tag_stack[] = array('ts', array('1' => $this->_tpl_vars['displayName'],'2' => $this->_tpl_vars['contribMode'])); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Use this form to submit a new contribution. <strong>A %2 transaction will be submitted</strong> using the selected payment processor.<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?>
  47. <?php endif; ?>
  48. </div>
  49. <?php endif; ?>
  50. <?php if ($this->_tpl_vars['action'] == 8): ?>
  51. <div class="messages status no-popup">
  52. <div class="icon inform-icon"></div>
  53. <?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>WARNING: Deleting this contribution will result in the loss of the associated financial transactions (if any).<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?> <?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Do you want to continue?<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?>
  54. </div>
  55. <?php else: ?>
  56. <div class="crm-submit-buttons">
  57. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  58. $this->_smarty_include(array('smarty_include_tpl_file' => "CRM/common/formButtons.tpl", 'smarty_include_vars' => array()));
  59. $this->_tpl_vars = $_smarty_tpl_vars;
  60. unset($_smarty_tpl_vars);
  61. ?>
  62. <?php if ($this->_tpl_vars['newCredit'] && $this->_tpl_vars['action'] == 1 && $this->_tpl_vars['contributionMode'] == null): ?>
  63. <?php if ($this->_tpl_vars['contactId']): ?>
  64. <?php ob_start(); ?><?php echo CRM_Utils_System::crmURL(array('p' => 'civicrm/contact/view/contribution','q' => "reset=1&action=add&cid=".($this->_tpl_vars['contactId'])."&context=".($this->_tpl_vars['context'])."&mode=live"), $this);?>
  65. <?php $this->_smarty_vars['capture']['default'] = ob_get_contents(); $this->assign('ccModeLink', ob_get_contents());ob_end_clean(); ?>
  66. <?php else: ?>
  67. <?php ob_start(); ?><?php echo CRM_Utils_System::crmURL(array('p' => 'civicrm/contact/view/contribution','q' => "reset=1&action=add&context=standalone&mode=live"), $this);?>
  68. <?php $this->_smarty_vars['capture']['default'] = ob_get_contents(); $this->assign('ccModeLink', ob_get_contents());ob_end_clean(); ?>
  69. <?php endif; ?>
  70. <span class="action-link crm-link-credit-card-mode">&nbsp;<a href="<?php echo $this->_tpl_vars['ccModeLink']; ?>
  71. ">&raquo; <?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>submit credit card contribution<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></a>
  72. <?php endif; ?>
  73. </div>
  74. <?php if ($this->_tpl_vars['isOnline']): ?><?php $this->assign('valueStyle', " class='view-value'"); ?><?php else: ?><?php $this->assign('valueStyle', ""); ?><?php endif; ?>
  75. <table class="form-layout-compressed">
  76. <?php if ($this->_tpl_vars['context'] != 'standalone'): ?>
  77. <tr>
  78. <td class="font-size12pt label"><strong><strong><?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Contributor<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></strong></td><td class="font-size12pt"><strong><?php echo $this->_tpl_vars['displayName']; ?>
  79. </strong></td>
  80. </tr>
  81. <?php else: ?>
  82. <?php if (! $this->_tpl_vars['contributionMode'] && ! $this->_tpl_vars['email'] && $this->_tpl_vars['outBound_option'] != 2): ?>
  83. <?php $this->assign('profileCreateCallback', 1); ?>
  84. <?php endif; ?>
  85. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  86. $this->_smarty_include(array('smarty_include_tpl_file' => "CRM/Contact/Form/NewContact.tpl", 'smarty_include_vars' => array('blockNo' => 1,'prefix' => '')));
  87. $this->_tpl_vars = $_smarty_tpl_vars;
  88. unset($_smarty_tpl_vars);
  89. ?>
  90. <?php endif; ?>
  91. <?php if ($this->_tpl_vars['contributionMode']): ?>
  92. <tr class="crm-contribution-form-block-payment_processor_id"><td class="label nowrap"><?php echo $this->_tpl_vars['form']['payment_processor_id']['label']; ?>
  93. <span class="marker"> * </span></td><td><?php echo $this->_tpl_vars['form']['payment_processor_id']['html']; ?>
  94. </td></tr>
  95. <?php endif; ?>
  96. <tr class="crm-contribution-form-block-contribution_type_id crm-contribution-form-block-financial_type_id">
  97. <td class="label"><?php echo $this->_tpl_vars['form']['financial_type_id']['label']; ?>
  98. </td><td<?php echo $this->_tpl_vars['valueStyle']; ?>
  99. ><?php echo $this->_tpl_vars['form']['financial_type_id']['html']; ?>
  100. &nbsp;
  101. <?php if ($this->_tpl_vars['is_test']): ?>
  102. <?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>(test)<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?>
  103. <?php endif; ?> <?php echo smarty_function_help(array('id' => "id-financial_type"), $this);?>
  104. </td>
  105. </tr>
  106. <?php if ($this->_tpl_vars['action'] == 2 && $this->_tpl_vars['lineItem'] && ! $this->_tpl_vars['defaultContribution']): ?>
  107. <tr>
  108. <td class="label"><?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Contribution Amount<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></td>
  109. <td><?php $_smarty_tpl_vars = $this->_tpl_vars;
  110. $this->_smarty_include(array('smarty_include_tpl_file' => "CRM/Price/Page/LineItem.tpl", 'smarty_include_vars' => array('context' => 'Contribution')));
  111. $this->_tpl_vars = $_smarty_tpl_vars;
  112. unset($_smarty_tpl_vars);
  113. ?></td>
  114. </tr>
  115. <?php else: ?>
  116. <tr class="crm-contribution-form-block-total_amount">
  117. <td class="label"><?php echo $this->_tpl_vars['form']['total_amount']['label']; ?>
  118. </td>
  119. <td <?php echo $this->_tpl_vars['valueStyle']; ?>
  120. >
  121. <span id='totalAmount'><?php echo ((is_array($_tmp=$this->_tpl_vars['form']['currency']['html'])) ? $this->_run_mod_handler('crmAddClass', true, $_tmp, 'eight') : smarty_modifier_crmAddClass($_tmp, 'eight')); ?>
  122. &nbsp;<?php echo ((is_array($_tmp=$this->_tpl_vars['form']['total_amount']['html'])) ? $this->_run_mod_handler('crmAddClass', true, $_tmp, 'eight') : smarty_modifier_crmAddClass($_tmp, 'eight')); ?>
  123. </span>
  124. <?php if ($this->_tpl_vars['hasPriceSets']): ?>
  125. <span id='totalAmountORPriceSet'> <?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>OR<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></span>
  126. <span id='selectPriceSet'><?php echo $this->_tpl_vars['form']['price_set_id']['html']; ?>
  127. </span>
  128. <div id="priceset" class="hiddenElement"></div>
  129. <?php endif; ?>
  130. <?php if ($this->_tpl_vars['ppID']): ?><?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?><a href='#' onclick='adjustPayment();'>adjust payment amount</a><?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?><?php echo smarty_function_help(array('id' => "adjust-payment-amount"), $this);?>
  131. <?php endif; ?>
  132. <br /><span class="description"><?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Actual amount given by contributor.<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?><?php if ($this->_tpl_vars['hasPriceSets']): ?> <?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Alternatively, you can use a price set.<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?><?php endif; ?></span>
  133. </td>
  134. </tr>
  135. <?php if ($this->_tpl_vars['buildRecurBlock'] && ! $this->_tpl_vars['ppID']): ?>
  136. <tr id='recurringPaymentBlock' class='hiddenElement'>
  137. <td></td>
  138. <td>
  139. <strong><?php echo $this->_tpl_vars['form']['is_recur']['html']; ?>
  140. <?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>every<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?>
  141. &nbsp;<?php echo $this->_tpl_vars['form']['frequency_interval']['html']; ?>
  142. &nbsp;<?php echo $this->_tpl_vars['form']['frequency_unit']['html']; ?>
  143. &nbsp;
  144. <?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>for<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?>
  145. &nbsp;<?php echo $this->_tpl_vars['form']['installments']['html']; ?>
  146. &nbsp;<?php echo $this->_tpl_vars['form']['installments']['label']; ?>
  147. </strong>
  148. <br />
  149. <span class="description">
  150. <?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Your recurring contribution will be processed automatically for the number of installments you specify. You can leave the number of installments blank if you want to make an open-ended commitment. In either case, you can choose to cancel at any time. You will receive an email receipt for each recurring contribution. The receipts will include a link you can use if you decide to modify or cancel your future contributions.<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?>
  151. </span>
  152. </td>
  153. </tr>
  154. <?php endif; ?>
  155. <tr id="adjust-option-type" class="crm-contribution-form-block-option_type">
  156. <td class="label"></td><td <?php echo $this->_tpl_vars['valueStyle']; ?>
  157. ><?php echo $this->_tpl_vars['form']['option_type']['html']; ?>
  158. </td>
  159. </tr>
  160. <?php endif; ?>
  161. <?php if ($this->_tpl_vars['contributionMode'] && $this->_tpl_vars['processorSupportsFutureStartDate']): ?>
  162. <tr id='start_date' class="crm-contribution-form-block-receive_date">
  163. <td class="label"><?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Start Date<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></td>
  164. <td <?php echo $this->_tpl_vars['valueStyle']; ?>
  165. ><?php if ($this->_tpl_vars['hideCalender'] != true): ?><?php $_smarty_tpl_vars = $this->_tpl_vars;
  166. $this->_smarty_include(array('smarty_include_tpl_file' => "CRM/common/jcalendar.tpl", 'smarty_include_vars' => array('elementName' => 'receive_date')));
  167. $this->_tpl_vars = $_smarty_tpl_vars;
  168. unset($_smarty_tpl_vars);
  169. ?><?php else: ?><?php echo ((is_array($_tmp=$this->_tpl_vars['receive_date'])) ? $this->_run_mod_handler('crmDate', true, $_tmp) : smarty_modifier_crmDate($_tmp)); ?>
  170. <?php endif; ?><br />
  171. <span class="description"><?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>You can set a start date for recurring contributions and the first payment will be on that date. For a single post-dated contribution you must select recurring and choose one installment<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></span>
  172. </td>
  173. </tr>
  174. <?php endif; ?>
  175. <tr class="crm-contribution-form-block-source">
  176. <td class="label"><?php echo $this->_tpl_vars['form']['source']['label']; ?>
  177. </td>
  178. <td <?php echo $this->_tpl_vars['valueStyle']; ?>
  179. ><?php echo ((is_array($_tmp=$this->_tpl_vars['form']['source']['html'])) ? $this->_run_mod_handler('crmAddClass', true, $_tmp, 'huge') : smarty_modifier_crmAddClass($_tmp, 'huge')); ?>
  180. <?php echo smarty_function_help(array('id' => "id-contrib_source"), $this);?>
  181. </td>
  182. </tr>
  183. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  184. $this->_smarty_include(array('smarty_include_tpl_file' => "CRM/Campaign/Form/addCampaignToComponent.tpl", 'smarty_include_vars' => array('campaignTrClass' => "crm-contribution-form-block-campaign_id")));
  185. $this->_tpl_vars = $_smarty_tpl_vars;
  186. unset($_smarty_tpl_vars);
  187. ?>
  188. <?php if ($this->_tpl_vars['contributionMode']): ?>
  189. <?php if ($this->_tpl_vars['email'] && $this->_tpl_vars['outBound_option'] != 2): ?>
  190. <tr class="crm-contribution-form-block-is_email_receipt">
  191. <td class="label"><?php echo $this->_tpl_vars['form']['is_email_receipt']['label']; ?>
  192. </td>
  193. <td><?php echo $this->_tpl_vars['form']['is_email_receipt']['html']; ?>
  194. &nbsp; <span class="description"><?php $this->_tag_stack[] = array('ts', array('1' => $this->_tpl_vars['email'])); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Automatically email a receipt for this contribution to %1?<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></span>
  195. </td>
  196. </tr>
  197. <?php elseif ($this->_tpl_vars['context'] == 'standalone' && $this->_tpl_vars['outBound_option'] != 2): ?>
  198. <tr id="email-receipt" style="display:none;" class="crm-contribution-form-block-is_email_receipt"><td class="label"><?php echo $this->_tpl_vars['form']['is_email_receipt']['label']; ?>
  199. </td><td><?php echo $this->_tpl_vars['form']['is_email_receipt']['html']; ?>
  200. <span class="description"><?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Automatically email a receipt for this contribution to <?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?><span id="email-address"></span>?</span></td></tr>
  201. <?php endif; ?>
  202. <tr id="fromEmail" style="display:none;" >
  203. <td class="label"><?php echo $this->_tpl_vars['form']['from_email_address']['label']; ?>
  204. </td>
  205. <td><?php echo $this->_tpl_vars['form']['from_email_address']['html']; ?>
  206. </td>
  207. </tr>
  208. <tr id="receiptDate" class="crm-contribution-form-block-receipt_date">
  209. <td class="label"><?php echo $this->_tpl_vars['form']['receipt_date']['label']; ?>
  210. </td>
  211. <td><?php $_smarty_tpl_vars = $this->_tpl_vars;
  212. $this->_smarty_include(array('smarty_include_tpl_file' => "CRM/common/jcalendar.tpl", 'smarty_include_vars' => array('elementName' => 'receipt_date')));
  213. $this->_tpl_vars = $_smarty_tpl_vars;
  214. unset($_smarty_tpl_vars);
  215. ?><br />
  216. <span class="description"><?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Date that a receipt was sent to the contributor.<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></span>
  217. </td>
  218. </tr>
  219. <?php endif; ?>
  220. <?php if (! $this->_tpl_vars['contributionMode']): ?>
  221. <tr class="crm-contribution-form-block-contribution_status_id">
  222. <td class="label"><?php echo $this->_tpl_vars['form']['contribution_status_id']['label']; ?>
  223. </td>
  224. <td><?php echo $this->_tpl_vars['form']['contribution_status_id']['html']; ?>
  225. <?php if ($this->_tpl_vars['contribution_status_id'] == 2): ?><?php if ($this->_tpl_vars['is_pay_later']): ?>: <?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Pay Later<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?> <?php else: ?>: <?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Incomplete Transaction<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?><?php endif; ?><?php endif; ?>
  226. </td>
  227. </tr>
  228. <tr id="cancelInfo" class="crm-contribution-form-block-cancelInfo">
  229. <td>&nbsp;</td>
  230. <td><fieldset><legend><?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Cancellation or Refund Information<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></legend>
  231. <table class="form-layout-compressed">
  232. <tr id="cancelDate" class="crm-contribution-form-block-cancel_date">
  233. <td class="label"><?php echo $this->_tpl_vars['form']['cancel_date']['label']; ?>
  234. </td>
  235. <td>
  236. <?php if ($this->_tpl_vars['hideCalendar'] != true): ?>
  237. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  238. $this->_smarty_include(array('smarty_include_tpl_file' => "CRM/common/jcalendar.tpl", 'smarty_include_vars' => array('elementName' => 'cancel_date')));
  239. $this->_tpl_vars = $_smarty_tpl_vars;
  240. unset($_smarty_tpl_vars);
  241. ?>
  242. <?php else: ?>
  243. <?php echo ((is_array($_tmp=$this->_tpl_vars['form']['cancel_date']['html'])) ? $this->_run_mod_handler('crmDate', true, $_tmp) : smarty_modifier_crmDate($_tmp)); ?>
  244. <?php endif; ?>
  245. </td>
  246. </tr>
  247. <tr id="cancelDescription" class="crm-contribution-form-block-cancel_reason">
  248. <td class="label">&nbsp;</td>
  249. <td class="description"><?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Enter the cancellation or refunded date, or you can skip this field and the cancellation date or refunded date will be automatically set to TODAY.<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></td>
  250. </tr>
  251. <tr id="cancelReason">
  252. <td class="label" style="vertical-align: top;"><?php echo $this->_tpl_vars['form']['cancel_reason']['label']; ?>
  253. </td>
  254. <td><?php echo ((is_array($_tmp=$this->_tpl_vars['form']['cancel_reason']['html'])) ? $this->_run_mod_handler('crmReplace', true, $_tmp, 'class', 'huge') : smarty_modifier_crmReplace($_tmp, 'class', 'huge')); ?>
  255. </td>
  256. </tr>
  257. </table>
  258. </fieldset>
  259. </td>
  260. </tr>
  261. <?php endif; ?>
  262. </table>
  263. <!-- start of soft credit -->
  264. <div class="crm-accordion-wrapper crm-accordion_title-accordion crm-accordion-processed" id="softCredit">
  265. <div class="crm-accordion-header">
  266. <?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Soft Credit<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?>&nbsp;<?php echo smarty_function_help(array('id' => "id-soft_credit"), $this);?>
  267. </div>
  268. <div class="crm-accordion-body">
  269. <table class="form-layout-compressed">
  270. <?php if ($this->_tpl_vars['siteHasPCPs']): ?>
  271. <tr class="crm-contribution-pcp-block-link">
  272. <td colspan="2">
  273. <div id="showPCP">
  274. <a href='#'><?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>credit this contribution to a personal campaign page<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></a>
  275. </div>
  276. </td>
  277. </tr>
  278. <tr class="crm-contribution-pcp-block crm-contribution-form-block-pcp_made_through_id hiddenElement">
  279. <td class="label"><?php echo $this->_tpl_vars['form']['pcp_made_through']['label']; ?>
  280. </td>
  281. <td>
  282. <?php echo $this->_tpl_vars['form']['pcp_made_through']['html']; ?>
  283. &nbsp;
  284. <span class="showSoftCreditLink">
  285. <a href="#" id="showSoftCredit"><?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>unlink from personal campaign page<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></a>
  286. </span><br/>
  287. <span class="description"><?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Search for the Personal Campaign Page by the fund-raiser's last name or
  288. email address.<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></span>
  289. <div class="spacer"></div>
  290. <div class="crm-contribution-form-block-pcp_details">
  291. <table class="crm-contribution-form-table-credit_to_pcp">
  292. <tr id="pcpDisplayRollID" class="crm-contribution-form-block-pcp_display_in_roll">
  293. <td class="label"><?php echo $this->_tpl_vars['form']['pcp_display_in_roll']['label']; ?>
  294. </td>
  295. <td><?php echo $this->_tpl_vars['form']['pcp_display_in_roll']['html']; ?>
  296. </td>
  297. </tr>
  298. <tr id="nickID" class="crm-contribution-form-block-pcp_roll_nickname">
  299. <td class="label"><?php echo $this->_tpl_vars['form']['pcp_roll_nickname']['label']; ?>
  300. </td>
  301. <td><?php echo ((is_array($_tmp=$this->_tpl_vars['form']['pcp_roll_nickname']['html'])) ? $this->_run_mod_handler('crmAddClass', true, $_tmp, 'big') : smarty_modifier_crmAddClass($_tmp, 'big')); ?>
  302. <br/>
  303. <span class="description"><?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Name or nickname contributor wants to be displayed in the Honor
  304. Roll. Enter "Anonymous" for anonymous contributions.<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></span>
  305. </td>
  306. </tr>
  307. <tr id="personalNoteID" class="crm-contribution-form-block-pcp_personal_note">
  308. <td class="label" style="vertical-align: top"><?php echo $this->_tpl_vars['form']['pcp_personal_note']['label']; ?>
  309. </td>
  310. <td>
  311. <?php echo $this->_tpl_vars['form']['pcp_personal_note']['html']; ?>
  312. <span
  313. class="description"><?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Personal message submitted by contributor for display in the Honor Roll.<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></span>
  314. </td>
  315. </tr>
  316. </table>
  317. </div>
  318. </td>
  319. </tr>
  320. <?php endif; ?>
  321. <tr class="crm-contribution-form-block-soft_credit_to">
  322. <td colspan="2">
  323. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  324. $this->_smarty_include(array('smarty_include_tpl_file' => "CRM/Contribute/Form/SoftCredit.tpl", 'smarty_include_vars' => array()));
  325. $this->_tpl_vars = $_smarty_tpl_vars;
  326. unset($_smarty_tpl_vars);
  327. ?>
  328. </td>
  329. </tr>
  330. </table>
  331. </div>
  332. </div>
  333. <!-- end of soft credit -->
  334. <?php if (! $this->_tpl_vars['contributionMode']): ?>
  335. <div class="crm-accordion-wrapper crm-accordion_title-accordion crm-accordion-processed" id="paymentDetails_Information">
  336. <div class="crm-accordion-header">
  337. <?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Payment Details<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?>
  338. </div>
  339. <div class="crm-accordion-body">
  340. <table class="form-layout-compressed" >
  341. <tr class="crm-contribution-form-block-receive_date">
  342. <td class="label"><?php echo $this->_tpl_vars['form']['receive_date']['label']; ?>
  343. </td>
  344. <td <?php echo $this->_tpl_vars['valueStyle']; ?>
  345. ><?php $_smarty_tpl_vars = $this->_tpl_vars;
  346. $this->_smarty_include(array('smarty_include_tpl_file' => "CRM/common/jcalendar.tpl", 'smarty_include_vars' => array('elementName' => 'receive_date')));
  347. $this->_tpl_vars = $_smarty_tpl_vars;
  348. unset($_smarty_tpl_vars);
  349. ?><br />
  350. <span class="description"><?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>The date this contribution was received.<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></span>
  351. </td>
  352. </tr>
  353. <tr class="crm-contribution-form-block-payment_instrument_id">
  354. <td class="label"><?php echo $this->_tpl_vars['form']['payment_instrument_id']['label']; ?>
  355. </td>
  356. <td <?php echo $this->_tpl_vars['valueStyle']; ?>
  357. ><?php echo $this->_tpl_vars['form']['payment_instrument_id']['html']; ?>
  358. <?php echo smarty_function_help(array('id' => 'payment_instrument_id'), $this);?>
  359. </td>
  360. </td>
  361. </tr>
  362. <?php if ($this->_tpl_vars['showCheckNumber'] || ! $this->_tpl_vars['isOnline']): ?>
  363. <tr id="checkNumber" class="crm-contribution-form-block-check_number">
  364. <td class="label"><?php echo $this->_tpl_vars['form']['check_number']['label']; ?>
  365. </td>
  366. <td><?php echo ((is_array($_tmp=$this->_tpl_vars['form']['check_number']['html'])) ? $this->_run_mod_handler('crmReplace', true, $_tmp, 'class', 'six') : smarty_modifier_crmReplace($_tmp, 'class', 'six')); ?>
  367. </td>
  368. </tr>
  369. <?php endif; ?>
  370. <tr class="crm-contribution-form-block-trxn_id">
  371. <td class="label"><?php echo $this->_tpl_vars['form']['trxn_id']['label']; ?>
  372. </td>
  373. <td <?php echo $this->_tpl_vars['valueStyle']; ?>
  374. ><?php echo ((is_array($_tmp=$this->_tpl_vars['form']['trxn_id']['html'])) ? $this->_run_mod_handler('crmReplace', true, $_tmp, 'class', 'twelve') : smarty_modifier_crmReplace($_tmp, 'class', 'twelve')); ?>
  375. <?php echo smarty_function_help(array('id' => "id-trans_id"), $this);?>
  376. </td>
  377. </tr>
  378. <?php if ($this->_tpl_vars['email'] && $this->_tpl_vars['outBound_option'] != 2): ?>
  379. <tr class="crm-contribution-form-block-is_email_receipt">
  380. <td class="label">
  381. <?php echo $this->_tpl_vars['form']['is_email_receipt']['label']; ?>
  382. </td><td><?php echo $this->_tpl_vars['form']['is_email_receipt']['html']; ?>
  383. &nbsp;
  384. <span class="description"><?php $this->_tag_stack[] = array('ts', array('1' => $this->_tpl_vars['email'])); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Automatically email a receipt for this payment to %1?<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></span>
  385. </td>
  386. </tr>
  387. <?php elseif ($this->_tpl_vars['context'] == 'standalone' && $this->_tpl_vars['outBound_option'] != 2): ?>
  388. <tr id="email-receipt" style="display:none;" class="crm-contribution-form-block-is_email_receipt">
  389. <td class="label"><?php echo $this->_tpl_vars['form']['is_email_receipt']['label']; ?>
  390. </td>
  391. <td><?php echo $this->_tpl_vars['form']['is_email_receipt']['html']; ?>
  392. <span class="description"><?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Automatically email a receipt for this payment to <?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?><span id="email-address"></span>?</span>
  393. </td>
  394. </tr>
  395. <?php endif; ?>
  396. <tr id="receiptDate" class="crm-contribution-form-block-receipt_date">
  397. <td class="label"><?php echo $this->_tpl_vars['form']['receipt_date']['label']; ?>
  398. </td>
  399. <td><?php $_smarty_tpl_vars = $this->_tpl_vars;
  400. $this->_smarty_include(array('smarty_include_tpl_file' => "CRM/common/jcalendar.tpl", 'smarty_include_vars' => array('elementName' => 'receipt_date')));
  401. $this->_tpl_vars = $_smarty_tpl_vars;
  402. unset($_smarty_tpl_vars);
  403. ?><br />
  404. <span class="description"><?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Date that a receipt was sent to the contributor.<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?></span>
  405. </td>
  406. </tr>
  407. <tr id="fromEmail" class="crm-contribution-form-block-receipt_date" style="display:none;">
  408. <td class="label"><?php echo $this->_tpl_vars['form']['from_email_address']['label']; ?>
  409. </td>
  410. <td><?php echo $this->_tpl_vars['form']['from_email_address']['html']; ?>
  411. </td>
  412. </tr>
  413. </table>
  414. </div>
  415. </div>
  416. <?php endif; ?>
  417. <div id="customData" class="crm-contribution-form-block-customData"></div>
  418. <?php $_smarty_tpl_vars = $this->_tpl_vars;
  419. $this->_smarty_include(array('smarty_include_tpl_file' => "CRM/common/customData.tpl", 'smarty_include_vars' => array()));
  420. $this->_tpl_vars = $_smarty_tpl_vars;
  421. unset($_smarty_tpl_vars);
  422. ?>
  423. <?php echo '
  424. <script type="text/javascript">
  425. cj( function( ) {
  426. '; ?>
  427. CRM.buildCustomData( '<?php echo $this->_tpl_vars['customDataType']; ?>
  428. ' );
  429. <?php if ($this->_tpl_vars['customDataSubType']): ?>
  430. CRM.buildCustomData( '<?php echo $this->_tpl_vars['customDataType']; ?>
  431. ', <?php echo $this->_tpl_vars['customDataSubType']; ?>
  432. );
  433. <?php endif; ?>
  434. <?php if ($this->_tpl_vars['buildPriceSet']): ?><?php echo 'buildAmount( );'; ?>
  435. <?php endif; ?>
  436. <?php echo '
  437. });
  438. // bind first click of accordion header to load crm-accordion-body with snippet
  439. // everything else taken care of by cj().crm-accordions()
  440. cj(function() {
  441. cj(\'#adjust-option-type\').hide();
  442. cj(\'.crm-ajax-accordion .crm-accordion-header\').one(\'click\', function() {
  443. loadPanes(cj(this).attr(\'id\'));
  444. });
  445. cj(\'.crm-ajax-accordion:not(.collapsed) .crm-accordion-header\').each(function(index) {
  446. loadPanes(cj(this).attr(\'id\'));
  447. });
  448. });
  449. // load panes function calls for snippet based on id of crm-accordion-header
  450. function loadPanes( id ) {
  451. var url = "'; ?>
  452. <?php echo CRM_Utils_System::crmURL(array('p' => 'civicrm/contact/view/contribution','q' => 'snippet=4&formType=','h' => 0), $this);?>
  453. <?php echo '" + id;
  454. '; ?>
  455. <?php if ($this->_tpl_vars['contributionMode']): ?>
  456. url = url + "&mode=<?php echo $this->_tpl_vars['contributionMode']; ?>
  457. ";
  458. <?php endif; ?>
  459. <?php if ($this->_tpl_vars['qfKey']): ?>
  460. url = url + "&qfKey=<?php echo $this->_tpl_vars['qfKey']; ?>
  461. ";
  462. <?php endif; ?>
  463. <?php echo '
  464. if (! cj(\'div.\'+id).html()) {
  465. var loading = \'<img src="'; ?>
  466. <?php echo $this->_tpl_vars['config']->resourceBase; ?>
  467. i/loading.gif<?php echo '" alt="'; ?>
  468. <?php $this->_tag_stack[] = array('ts', array('escape' => 'js')); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>loading<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?><?php echo '" />&nbsp;'; ?>
  469. <?php $this->_tag_stack[] = array('ts', array('escape' => 'js')); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Loading<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?><?php echo '...\';
  470. cj(\'div.\'+id).html(loading);
  471. cj.ajax({
  472. url : url,
  473. success: function(data) { cj(\'div.\'+id).html(data); }
  474. });
  475. }
  476. }
  477. var url = "'; ?>
  478. <?php echo $this->_tpl_vars['dataUrl']; ?>
  479. <?php echo '";
  480. '; ?>
  481. <?php if ($this->_tpl_vars['context'] == 'standalone' && $this->_tpl_vars['outBound_option'] != 2): ?>
  482. <?php echo '
  483. cj( function( ) {
  484. cj("#contact_1").blur( function( ) {
  485. checkEmail( );
  486. });
  487. checkEmail( );
  488. showHideByValue( \'is_email_receipt\', \'\', \'receiptDate\', \'table-row\', \'radio\', true);
  489. showHideByValue( \'is_email_receipt\', \'\', \'fromEmail\', \'table-row\', \'radio\', false );
  490. });
  491. function checkEmail( ) {
  492. var contactID = cj("input[name=\'contact_select_id[1]\']").val();
  493. if (contactID) {
  494. var postUrl = "'; ?>
  495. <?php echo CRM_Utils_System::crmURL(array('p' => 'civicrm/ajax/checkemail','h' => 0), $this);?>
  496. <?php echo '";
  497. cj.post( postUrl, {contact_id: contactID},
  498. function (response) {
  499. if (response) {
  500. cj("#email-receipt").show( );
  501. cj("#email-address").html(response);
  502. }
  503. else {
  504. cj("#email-receipt").hide( );
  505. }
  506. }
  507. );
  508. }
  509. else {
  510. cj("#email-receipt").hide( );
  511. }
  512. }
  513. function profileCreateCallback( blockNo ) {
  514. checkEmail( );
  515. }
  516. '; ?>
  517. <?php endif; ?>
  518. </script>
  519. <div class="accordion ui-accordion ui-widget ui-helper-reset">
  520. <?php $_from = $this->_tpl_vars['allPanes']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
  521. foreach ($_from as $this->_tpl_vars['paneName'] => $this->_tpl_vars['paneValue']):
  522. ?>
  523. <div class="crm-accordion-wrapper crm-ajax-accordion crm-<?php echo $this->_tpl_vars['paneValue']['id']; ?>
  524. -accordion <?php if ($this->_tpl_vars['paneValue']['open'] != 'true'): ?>collapsed<?php endif; ?>">
  525. <div class="crm-accordion-header" id="<?php echo $this->_tpl_vars['paneValue']['id']; ?>
  526. ">
  527. <?php echo $this->_tpl_vars['paneName']; ?>
  528. </div><!-- /.crm-accordion-header -->
  529. <div class="crm-accordion-body">
  530. <div class="<?php echo $this->_tpl_vars['paneValue']['id']; ?>
  531. "></div>
  532. </div><!-- /.crm-accordion-body -->
  533. </div><!-- /.crm-accordion-wrapper -->
  534. <?php endforeach; endif; unset($_from); ?>
  535. </div>
  536. <?php endif; ?>
  537. <br />
  538. <div class="crm-submit-buttons"><?php $_smarty_tpl_vars = $this->_tpl_vars;
  539. $this->_smarty_include(array('smarty_include_tpl_file' => "CRM/common/formButtons.tpl", 'smarty_include_vars' => array('location' => 'bottom')));
  540. $this->_tpl_vars = $_smarty_tpl_vars;
  541. unset($_smarty_tpl_vars);
  542. ?></div>
  543. </div>
  544. <?php echo '
  545. <script type="text/javascript">
  546. function verify( ) {
  547. if (cj(\'#is_email_receipt\').attr( \'checked\' )) {
  548. var ok = confirm( \''; ?>
  549. <?php $this->_tag_stack[] = array('ts', array('escape' => 'js')); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->

Large files files are truncated, but you can click here to view the full file